Save, share and export a search
When a search is worth keeping, you can save the query, send it to a colleague, or download what it found. The Share and Export buttons and the Save menu are in the results toolbar.
Role needed: Search: Read for Share, Export and saving a Filter Query. The other Save choices need more, as the sections below say.
Share a search
- Run the search.
- Select Share (Share this search).
- If you used a named range such as Last 24 Hours, choose how the link treats time. The switch Use absolute time range starts off for a named range. With it on, whoever opens the link sees the data from your start to your end. With it off, they see the same named range counted from when they open the link. When your range has no name, for example after you zoomed on the histogram or typed dates, the switch is on and cannot be changed.
- Select Copy link. The message Link copied confirms it.
The link opens Search with your query and time range and runs it. The link carries the query text and the range, not the results. Whoever opens it must sign in and have Search: Read, and sees only what their own role allows. They do not see your selected fields or tabs.
Export the results
- Run the search.
- Select Export, then Results as CSV or Results as JSON.
The export covers every result the search matches, up to 10,000, not only the page you are on. While it runs, the button shows Exporting and a count. The file is named search-results- followed by the date and time. A CSV file has the time column and your selected fields; if you have selected none, it has every field the results contain. A JSON file holds the whole events. Values that are lists or structures are written as JSON text in a CSV cell.
If the search matches more than 10,000 results, the export stops at 10,000 and a warning says so. Narrow the query or the time range, and export again. Export is disabled until the search has returned rows. To copy only some rows, see Search events.
Save a search
Select Save in the results toolbar. The menu has five choices. Each opens a panel, and Save in the panel completes it. A message such as Filter Query completed confirms it.
| Choice | Saves the query as | Role needed |
|---|---|---|
| Filter Query | A reusable PPL filter | Search: Read |
| Dashboard Widget | A widget on a dashboard | Dashboards: Set |
| Report | A section of a new or an existing report | Reports: Set |
| Correlation Rule | A Detection Rule, switched off | Settings access with Trigger Rules: Set |
| Lookup File | A lookup file of the loaded rows | Settings access with Correlations: Set |
Filter Query
A Filter Query is a named query you can reuse in Search, and in other places that take a query, with $filter(Name). See ThreatVIS PPL basics.
- Select Save, then Filter Query.
- Enter a Name. It is required. Optionally enter a Description.
- Select Save.
Users with a role see their own Filter Queries and the built-in ones. Administrators see every Filter Query. An administrator can rename, edit or delete a Filter Query under Settings then Filter Queries. Deleting one stops any query that refers to it with $filter(...) from running. The built-in Filter Queries are read-only.
Dashboard Widget
- Select Save, then Dashboard Widget.
- Enter a Name, which becomes the widget's title, and optionally a Description.
- Choose the Dashboard. If you have no dashboard to choose, the panel reports that a dashboard is required. Create one first in Dashboards.
- Choose the Widget type: Event List, Table, Pie Chart, Bar Chart, World Map, Gauge, Time Chart, Sankey, Scatter Chart, Single Value or Heat Map. Choose one that fits what the query returns; see Visualise results.
- Select Save.
The widget is added to the dashboard with the query as its data. Dashboards are described in Reports.
Report
This choice adds the query to a report as a section, or creates a report from it. The panel is titled Save to report.
- Select Save, then Report.
- Enter a Section title. It is required.
- Choose how to Show as it: Table, Bar chart, Pie chart, Line chart or Area chart. A search without
statslists events, so it is always shown as a table. For such a search the report keeps the columns that Search shows for it, newest first, up to 12, rather than every field. - Under Add to report, choose Existing report or New report. The first is unavailable when you have no report.
- For Existing report, choose the Report. The section is added at the end of it, and the report keeps its name, collection, layout and reporting period. For New report, enter a Report name, optionally a Description, and choose the Reporting period. The new report is landscape.
- Select Save, or Save and go to Reports to open the Reports page afterwards. A message such as Report "Name" created or Added to "Name" confirms it.
A section lists at most 100 rows when its query does not summarise the events. See Build a report.
Correlation Rule
This choice starts a Detection Rule from the query. The panel that opens is titled Detection Rule and is the Detection Rule form with the query filled in as a query rule. The rule is created switched off. Complete the form and save it. Switch it on when it is ready. See Create and edit a Detection Rule.
Lookup File
This choice saves the rows currently loaded as a lookup file. See Use lookups in a search.
Next steps
- Use lookups in a search: query a saved lookup file.
- Choose a time range and time zone: decide what a shared link covers.