Skip to main content

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​

  1. Run a query that lists events.
  2. Select a value in a row, for example the host name in host.hostname = ws-01. A menu opens.
  3. Choose an action.
ActionWhat it does
Add to searchAdds a condition that keeps events with this value.
Exclude from searchAdds a condition that removes events with this value.
Aggregate by fieldAdds 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 searchStarts 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.

ButtonWhat it does
Filter for valueSame as Add to search.
Filter out valueSame as Exclude from search.
Copy valueCopies the value to the clipboard.
ExpandOpens 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:

ButtonWhat it does
Copy field nameCopies the name, for pasting into a query.
Aggregate by fieldGroups 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.

PartWhat it shows or does
Top valuesThe 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 valueAdds the value to the query (Filter for) or excludes it (Filter out).
Filter for field presentAdds a condition that keeps events where the field has a value.
VisualizeCharts the field's top ten values as a bar chart.
Calculated from N recordsHow 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​