Search

Construct a data query without writing SQL

Overview

In the Search tool in Panther, search across all of your data—including log events, rule matches, and more—without writing SQL. You can use dropdown fields to create filter expressions, and group them using AND and OR functionality. It's also possible to execute PantherFlow queries in Search.

Filter expressions can be constructed in different ways: as key/value pairs, a free text search, or a regular expression search. Each of these can also use wildcard characters. You can combine different types of filter expressions in one search.

In the Search page in Panther, there are two conditions joined by "OR" : "Source Domain is apigateway.amazonaws.com" and ".*aws:.*admin.*". Below the search conditions is a histogram, followed by a results table.

When a search is run, a results table is displayed below a histogram visualizing the distribution of result events over time. The results table is customizable—you can add or remove event fields as columns. Also from the results table, you can add inclusive/exclusive filters to your search, pivot, and look up related enrichment data. Your results set, as well as each result event, can be summarized with AI.

You can collaborate with your team by downloading the results table, or sharing a link to your specific search in Panther.

You can effectively search your data using:

Using database, table, and date range filters

Use the database, table, and date range filters to narrow the scope of your search. Using these controls is optional, but can significantly improve search performance when searching over large data sets. Learn more about each of these filters below.

The Search UI in Panther is shown. Three dropdowns in the upper-right corner are shown. The first has a selection of "Logs," the second has a selection of "All tables," and the third has a value of "Last 24 hours."

Database filter

Use the database filter to narrow your search to certain databases, such as only Logs or Rule Matches.

The default value of this filter is Logs. The options contained in the database filter are:

  • Rule Matches

  • Logs

  • Lookups

  • Monitor

  • Cloud Security

  • Rule Errors

  • Signals

Three dropdown fields are shown. The first one is open, and the checkbox next to "Logs" is selected. The middle dropdown has a selection of "All tables" made, and the third has a selection of "Last 24 hours."

Table filter

Use the table filter to narrow your search to certain tables, within the databases indicated by the database filter.

The default value of this filter is All tables, which includes all tables for each included database. You can narrow the search by selecting only certain tables in this dropdown.

Three dropdowns are shown: in the first, "Monitor" is selected. the second one is open, and the checkbox next to "Classification Failures" is checked. In the third dropdown, "Last month" is selected.

Date range filter

Use the date range filter to narrow your search to a certain period of time.

The default value of this filter is Last 20 mins. You can use one of the preset relative options (like Last hour or Last week), set your own relative window with Relative time, remove the time constraint with All time, or set a specific window with Custom range.

A dropdown field with the selection "Last 20 mins" is shown. It is expanded and multiple options are shown, including "Last 3 months" and "All time".
Two fields are shown: one is a numerical field with increase/decrease arrows, and the other is a dropdown with the value "mins" selected. At the bottom are "Cancel" and "Apply" buttons.
A date and time picker is shown. On the left-hand side there are preset relative values, like "Last hour," "Last 3 days," etc. On the right-hand side is a calendar picker, as well as dropdown fields to select the time. At the bottom are "Cancel" and "Apply" buttons.

Creating filter expressions

A filter expression is a clause containing your key/value search logic, free search terms, or match patterns. To create filter expressions, click the Add search filter bar or use the command + / keyboard shortcut.

The Search tool is shown. The search bar, which has placeholder text of "Add search filter," is empty. It is circled.

Key/value filter expression

With a key/value filter expression, you will select an event key and provide a value (if necessary).

In the Search bar is one filter expression. It reads "Emails has john.doe@email.com"

To create a key/value filter expression:

  1. Click the Add search filter bar, or press command+/.

  2. Select an event key from the dropdown list. The dropdown menu contains options grouped into the following categories:

    • Panther Fields: Includes Indicator Fields (also known as p_any fields), and Core Fields (p_udm fields), which are useful when searching across log types.

    • Multiple tables: Fields that are found in more than one log type.

    • All remaining tables with a matching field(s) are displayed in alphabetical order.

  3. Select an operator (also known as a condition) from the dropdown menu.

    • The dropdown options will be limited to those applicable to the selected field's data type.

    • See a full list of available operators on Search Filter Operators.

  4. Enter a value, if the selected operator requires one.

  5. If you would like to create another filter expression:

    • To create an AND filter, click outside the expression you just created (but within the same horizontal bar), or press TAB.

    • To create an OR filter, click + Add OR Condition.

  6. When you are ready to execute your search, click Search or press ENTER.

    • If there are more than two rows, they will collapse. To expand all filters into view, click Show +n conditions.

You can also quickly create key/value filter expressions from the results set of an initial search.

Free text filter expression

In a free text filter expression, you will enter a string.

To create a free text filter expression:

  1. Click the Add search filter bar, or press command+/.

  2. Enter the text value.

  3. If you would like to create another filter expression:

    • To create an AND filter, click outside the expression you just created (but within the same horizontal bar), or press TAB.

    • To create an OR filter, click + Add OR Condition.

  4. When you are ready to execute your search, click Search or press ENTER.

    • If there are more than two rows, they will collapse. To expand all filters into view, click Show +n conditions.

Regular expression (regex) filter expression

Using regex in Search can be powerful for dynamic text-based searches across logs. Search supports POSIX-extended regular expressions.

A single filter expression is created in the Search bar. It reads ".*aws:.*admin.*"

To create a regex filter expression:

  1. Click the Add search filter bar, or press command+/.

  2. Press command+/ to enter into regex mode.

    • To exit regex mode, you can press command+/ again.

  3. Enter the regular expression you wish to search, e.g., .*aws:.*admin.*.

  4. If you would like to create another filter expression:

    • To create an AND filter, click outside the expression you just created (but within the same horizontal bar), or press TAB.

    • To create an OR filter, click + Add OR Condition.

  5. When you are ready to execute your search, click Search or press ENTER.

    • If there are more than two rows, they will collapse. To expand all filters into view, click Show +n conditions.

Using wildcards in filter expressions

The wildcard character (*) may be used as a placeholder at the beginning, middle, or end of a string or expression. The wildcard character may be used within a key/value filter expression (only where the key has type: string and the operator is LIKE), free text filter expression, or regex filter expression.

The position of the wildcard character determines which data is returned as a match:

  • Beginning: Any character(s) at or preceding the * are considered a match.

  • Middle: Any character(s) at the * are considered a match.

  • End: Any character(s) at or following the * are considered a match.

In the Search page in Panther are three conditions: "Log Type is not Windows.EventLogs", "Log Type like AWS*Flow", and "ACCE*". Below is a histogram, followed by a results table.

Searching Indicators of Compromise

When responding to a public breach disclosure or threat hunting generally, you may need to quickly find out whether any values in a list of Indicators of Compromise (IoCs) are found across any of your organization's event logs.

To search IoCs in Search:

  1. Click the Add search filter bar, or press command+/.

  2. Type or paste in the indicator or list of indicators.

  3. From the dropdown options that appear, select the (auto-detect) option.

  4. Click Search or press ENTER.

Video walkthrough

PantherFlow is in open beta starting with Panther version 1.110, and is available to all customers. Please share any bug reports and feature requests with your Panther support team.

To execute a PantherFlow query in Search:

  1. In the left-hand navigation bar of your Panther Console, click Investigate > Search.

  2. On the left side of the database filter, click </> to toggle to PantherFlow mode.

    • This will replace the filter expression builder with a PantherFlow code editor.

  3. Enter your PantherFlow query.

  4. Click Search.

Creating a Saved Search means you can quickly reuse commonly run searches. Learn more on Saved and Scheduled Searches.

To create a Saved Search:

  1. Create a search by following the instructions in How to use Search.

  2. Under the Add search filter box, click Save As.

    The Search UI is shown, with one filter expression created ("kind is http"). Below the search bar, the "Save As" text is circled.
  3. Enter values for the fields in the popup modal:

    • Search Name: Add a descriptive name.

    • Tags (optional): Add tags. Tags can be helpful to group related searches.

    • Description (optional): Describe the purpose of the search.

  4. Click Save Search.

    • See the next section to learn how to open and reuse Saved Searches.

Open and reuse a Saved Search in the Search tool

After creating a Saved Search in the Search tool, you can view and reuse it. It can be opened from the Search page, or from the Saved Searches page.

Open a Saved Search from the Search page:

  1. In the left-hand navigation bar of your Panther Console, click Investigate > Search.

  2. In the upper right corner, click the three dots icon, then Open Saved Search.

    • An Open a Search modal will pop up, displaying previously saved search.

  3. Find the search you'd like to open, select it, then click Open Search.

    • The Saved Search will populate in Search.

Analyzing Search results

The results of a Search contain a histogram, a table of result events, and summary visualizations.

Search results histogram

The results histogram displays the distribution of events within the search's date and time window, to help quickly contextualize results.

A histogram is shown, depicting a number of bars spanning from JUN 05 20:08 to JUN 05 21:03.

After a search is run, the histogram is shown collapsed by default. You can expand it by clicking the diagonal arrows button in the upper-right corner of the chart. Clicking the button again will collapse the chart.

A histogram is shown. A double-sided arrow button in the upper-right corner, with the tooltip "Expand," is circled.

Interacting with the histogram

To see additional data insights into the counts by log type for any of the time periods, hover over a bar within the chart.

To drill down and create a new search (in a new browser tab) with a time period set to that of one of the histogram bars, click the bar.

This drill down functionality is only available for bars in the table that represent timeframes longer than one minute.

Adding, removing, and reordering fields in the results table

You can customize a search's results table by adding, removing, and reordering columns.

You can also create a new filter directly from the results table, replace filter expressions with a results table value, and explore enrichment data for a results table value.

How to add a column in the Search results table

You can add a column to the Search results table using the Available Fields list on the left-hand side of the table, or from the JSON event view.

It is only possible to add nested fields to the table from the JSON event view.

Add a column to the Search results table from the Available Fields list

  1. In the field list on the left-hand side of the results table, within the Available Fields header, locate the column you'd like to add to the results table.

    A list of event fields is displayed underneath an "Available Fields" header.
    • Only top-level fields are shown in this list. If you'd like to add a nested field to the table, you can do so from the JSON event view.

  2. To the right of the field, click + (the plus symbol).

    • The field will be added as a column in the results table, and listed on the left-hand side of the table within Selected Fields.

How to remove a column in the Search results table

You can remove a column from the Search results table using the Selected Fields list on the left-hand side of the table, from the JSON event view, or from the table header row.

Remove a column from the Search results table from the Selected Fields list

  1. In the field list on the left-hand side of the results table, within the Selected Fields header, locate the field you'd like to remove from the results table.

  2. To the right of the field, click - (the minus symbol).

    • The field's column will be removed from the results table, and listed on the left-hand side of the table within Available Fields.

How to reorder columns in the Search results table

  • Reorder the columns in the results table by clicking on a column header and dragging it to the desired position.

Viewing full result events

The results table is loaded, by default, in a compact view. This view displays all log fields, including the often sizable EVENT field, in a single row. To view the EVENT value in this view, scroll horizontally.

To more easily view the full event data, you can use detailed table view or the JSON event slide-out panel. An added benefit of using the slide-out panel is the ability to show or hide Panther fields.

Detailed results table view

The results table can alternatively display logs in a detailed view. This view displays the EVENT field value in a new row below the event's other fields, with text-wrapping.

A tooltip of a button below a histogram (and at the top of the results table) reads "Detailed view." A full event in the results table has been circled.

To enable detailed view, click the toggle button in the upper-right corner of the table:

Below a histogram (and at the top of the results table), a button's tooltip reads, "Compact view."

JSON event slide-out panel

It's possible to view the full event data, in JSON format, by clicking an event row. This will open a slide-out panel on the right side of the browser window.

In the JSON event view, Panther fields are displayed at the top of the JSON object followed by the event fields. You can hide or reveal these fields by clicking the Show Panther fields toggle.

In Search, the event JSON slide-out panel is shown. Above the event JSON, a "Show Panther fields" toggle, set to ON, is circled.

Hovering over fields in the slide-out panel will display icons with which you can perform additional actions, like adding a filter. Learn more in Iterating on a Search.

Search results summary charts

Within the results of a Search, the Visualizations tab displays bar charts for field values, which can help provide quick insights into your data. To view these charts, click Visualizations.

A "Visualizations" tab is circled. Two bar charts are shown, titled "Log Type" and "Destination Bytes."

You can also create a filter directly from a summary chart, replace filters with a value from a summary chart, and explore enrichment data for a summary chart value.

How to add or remove summary charts

Add or remove visualizations for event fields using the Available Fields and Selected Fields lists on the left-hand side of the results panel. Adding or removing a field shows or hides the field both as a chart and as a column in the results table.

To add a visualization:

  • Within the Available Fields list, to the right of a field's name, click +.

    Under an "Available Fields" header is a "Panther Fields" header, then a field called "Destination ARNs." To its right is a plus sign that's been hovered over; its tooltip reads "Add as column."

To remove a visualization:

  • Within the Selected Fields list, to the right of a field's name, click –.

    Under a "Selected Fields" header are three fields: "Log Type," "Destination Bytes," and "Destination IP." To their right is a minus sign, one has been hovered over; its tooltip reads "Remove column."

How to set the sort order of a chart

To sort results in ascending order (lowest to highest):

  • In the upper-right corner of a visualization, click the icon with an arrow pointing downward:

    An icon with an arrow pointing downward has been hovered over, its tooltip reads, "Sort Ascending"

To sort results in descending order (highest to lowest):

  • In the upper-right corner of a visualization, click the icon with an arrow pointing upward:

    An icon with an arrow pointing downward has been hovered over, its tooltip reads, "Sort Descending"

How to expand or condense the number of values shown in a chart

  • To view the first 25 values in a visualization, in its lower-right corner, click Show Top 25. If there are fewer than 25 values available, the text will read Show all <number> rows instead. To view only the first five values in a visualization, in its lower-right corner, click Hide additional rows.

Panther AI is in open beta starting with Panther version 1.112, and is available to all customers. Please share any bug reports and feature requests with your Panther support team.

Use of Panther AI features is subject to the AI disclaimer found on the Legal page.

After running a search that generates results, you can view an AI-generated summary for multiple result events, as well as each individual result event.

AI event summaries are likely to describe the action(s) the log(s) represent, which may include identifying actors, naming resources accessed, making an evaluation of the security risk posed, connecting actions to MITRE ATT&CK tactics, and more.

You can control AI response length by configuring the AI prompt settings.

It's also possible to view AI event summaries in alerts.

Results table AI summary

To view an AI-generated summary for the events visible in the results table:

  • After running a search, in the upper-right corner of the results table, click Summarize with AI.

    Under a "Search" page header are various search fields, including three dropdowns and an input for filter chips. Below, at the top of the results table, a "Summarize with AI" button is circled.
    • In the AI Summary slide-out panel, see the summary below the EVENT SUMMARY FOR LATEST N SEARCH EVENTS header.

      • The events summarized are the events loaded into view in the results table, which by default is 25 events. If you scroll to the end of the results table and load more events, then click Summarize with AI, a higher number of events will be summarized.

    • In the text box below the EVENT SUMMARY FOR LATEST N SEARCH EVENTS header, you can ask questions about the data or refine the prompt.

Single-event AI summary

To view the AI summary for a single event:

  • After running a search, within the results table, click an event row.

    • In the slide-out panel, see the EVENT SUMMARY section.

    • In the text box below the EVENT SUMMARY header, you can ask questions about the data or refine the prompt.

The Search page in the Panther Console is shown, and a slide-out panel is visible. A section titled "Event Summary" is circled.

Directly from the JSON event slide-out panel and summary charts, you can create inclusive/exclusive filters, replace filter expressions with a results value, and explore enrichment data.

How to create an inclusive or exclusive filter expression from results

How to create a filter expression from the JSON event slide-out panel

  1. In the results table, locate the event row of interest, and click it.

    • The JSON event slide-out panel will be shown.

  2. In the JSON event slide-out panel, hover over the value you'd like to create an inclusive or exclusive filter expression for.

    • To create an inclusive filter, click .

    • To create an exclusive filter, click .

  3. View the new filter expression in the search bar at the top of the window.

  4. To refresh the search results, click Search.

How to replace filter expressions with a value from results

How to replace filter expressions with a value from the results table

  1. In the results table, locate the event row of interest, and click it.

    • The JSON event slide-out panel will be shown.

  2. In the JSON event slide-out panel, hover over the field on which you'd like to pivot.

  3. Click the replace icon .

    • All existing filters are replaced with a filter expression representing only the key/value you pivoted on.

  4. To refresh the search results, click Search.

How to explore enrichment data for a value from results

How to explore enrichment data for a value from the JSON event slide-out panel

  1. In the results table, locate the event row of interest, and click it.

    • The JSON event slide-out panel will be shown.

  2. In the JSON event slide-out panel, hover over the value you'd like to explore enrichment data for.

  3. Click the enrichment icon .

  4. In the Lookup Enrichment pop-up modal, use the LOOKUP TABLE column to locate the row of the enrichment source you would like to explore, then click View JSON→.

    • The enrichment entry will be shown.

While investigating or threat hunting, it may be useful to share a Search or a results set with your team. To do this:

  1. In the upper-right corner of the results table, click Share:

    The results table is shown. In the upper-right corner, the Share button's menu is open, displaying two options: Copy link to view and Download CSV. This button and its options are circled.
  2. Select one of the menu options:

    • Copy link to view: Copies a URL to this specific Search to your clipboard.

    • Download CSV: Downloads a CSV of the results table.

      • Note that the downloaded CSV file contains only the first 1,000 results. To download the full results set, use Data Explorer. (You can click Copy as SQL in Search to quickly recreate it in Data Explorer.)

Last updated

Was this helpful?

#2402: Closed beta: AI Event Summaries

Change request updated