Create a report using an SPL2 search
Save an SPL2 search as a report so that you can run the search again without having to re-enter it, share it with other users, and use it to support other knowledge objects.
A report is a saved copy of your search that you can open and run without having to re-enter the search into the Search & Reporting app. When you create a search that you would like to run again at a later point in time or share with other users in the Splunk platform deployment, you can save that search as a report. Reports are available on the Reports page in the Search & Reporting app.
You can use reports to support other knowledge objects in your Splunk platform deployment. For example, you can schedule a report to run on a regular interval to trigger alert actions, and you can use a report as a dashboard panel.
For complete information about reports, see the following documentation:
Splunk Cloud Platform
See the Reporting Manual in the Splunk Cloud Platform documentation.
Splunk Enterprise
See the Reporting Manual in the Splunk Enterprise documentation.
The exact workflow for creating a report from an SPL2 search varies depending on whether you are working with searches in the Search bar or the SPL2 module editor. For detailed instructions, see the following sections on this page:
Save a search as a report from the Search bar
After running a search, you can save the search as a report.
On the Search page of the Search & Reporting app, after running a search, you can use the Save As menu located above the Search bar to save your search as a report.
The Search & Reporting app returns a message confirming that your report has been successfully created, and displays options for next steps that you can take with your report, such as sharing your report with others by changing its permissions or scheduling the report to run on a regular interval.
To see a list of all your reports, navigate to the Reports page of the Search & Reporting app.
Save a search as a report from the SPL2 module editor
After running a search, you can save a search as a report from the SPL2 module editor.
The following instructions assume that you have already created an SPL2 module containing the search that you want to save as a report. For detailed information on how to navigate to the SPL2 module editor and create a module, see SPL2 module editor overview and Create an SPL2 module.
In the SPL2 module editor, after writing a search, you can use the options in the Outline panel to export the search and then save it as a report.
- Open your SPL2 module for editing in the SPL2 module editor.
- In the Outline panel, select the Options icon (
) beside the name of the search that you want to save as a report, and then select Export.
- Select Save to save your changes to the module.
- In the Outline panel, select the Options icon (
) beside the name of the search, and then select Use in report.
- Configure your report using the options in the Save As Report dialog box:
- Select Save.
The SPL2 module editor returns a message confirming that your report has been successfully created, and displays options for next steps that you can take with your report, such as sharing your report with others by changing its permissions or scheduling the report to run on a regular interval.
To see a list of all your reports, navigate to the Reports page of the Search & Reporting app.
See also
For more information about working with reports:
Splunk Cloud Platform
See the Reporting Manual in the Splunk Cloud Platform documentation.
Splunk Enterprise
See the Reporting Manual in the Splunk Enterprise documentation.