Act on a field value
You do not have to type every condition. Anywhere Search shows a value, you can add it to the query, exclude it, group by its field or copy it. Search writes the condition into the query editor, so you can see it, edit it and keep it.
Role needed: Search: Read.
Filter from a value in the event list
- Run a query that lists events.
- Select a value in a row, for example the host name in
host.hostname = ws-01. A menu opens. - Choose an action.
| Action | What it does |
|---|---|
| Add to search | Adds a condition that keeps events with this value. |
| Exclude from search | Adds a condition that removes events with this value. |
| Aggregate by field | Adds stats count() as count by <field> to the query, so that you see how many events there are for each value of the field. |
| New search | Starts a new query for this value alone, on the default source, instead of adding to the current one. |
Each action has an Open in a new tab button beside it that runs the action in a new browser tab and leaves the current search as it is. The new tab carries over the time range.
Search adds the condition to the end of the query's last where stage with and, or starts a where stage if there is none, and then runs the query. If the same condition is already there, nothing changes. If the opposite condition is there (you excluded a value that you had added), Search swaps it. If the query has no source, Search adds the default one first. See ThreatVIS PPL basics.
Use the buttons beside a value
Hold the pointer over a value, or move to it with the keyboard, to show a small toolbar.
| Button | What it does |
|---|---|
| Filter for value | Same as Add to search. |
| Filter out value | Same as Exclude from search. |
| Copy value | Copies the value to the clipboard. |
| Expand | Opens the whole value in a panel, for a long value, with the same three actions. |
The two filter buttons appear only for single values, or lists of single values. They do not appear for values that hold structured data. Copy value copies a structured value as JSON.
Use the fields of one event
Select the chevron at the start of a row to list every field of the event. Each value has the same toolbar. Hold the pointer over a field name to show:
| Button | What it does |
|---|---|
| Copy field name | Copies the name, for pasting into a query. |
| Aggregate by field | Groups the results by this field. |
Use the Filters panel
The Filters panel lists the fields in your results. Select a field name to open its panel.
| Part | What it shows or does |
|---|---|
| Top values | The ten most common values in the time range, each with its share of the matches. When the field has more than ten values, a search box above the list finds others. |
| Plus and minus beside a value | Adds the value to the query (Filter for) or excludes it (Filter out). |
| Filter for field present | Adds a condition that keeps events where the field has a value. |
| Visualize | Charts the field's top ten values as a bar chart. |
| Calculated from N records | How many events the top values were counted over. |
The plus and minus buttons at the end of a field name in the list are different: they add the field to, or remove it from, the fields shown in each row. See Search events.
Next steps
- ThreatVIS PPL examples: see the conditions these actions write, in context.
- Visualise results: what happens when you aggregate.