Added filter to logs query