Added search function for logs