Save and Share Log Searches
After you create and execute a search query, you can save and share your log searches as a widget for further reuse.
If you created the widget based on a fixed time range, then every time that you open the widget, it shows the results for the time range that you specified in the search. If you created the widget for a relative time range (say the last 7 days), then every time that you open the widget, it shows the up-to-date results as per the time selector (Last 7 days).
Using saved searches, other users can also access the search query.
Topics:
Related Topics:
Save a Search and Add It to a Dashboard
After you've entered a search query and displayed the results in a chart, to save the search as a widget:
-
Click Save.
-
Enter the name and description of the widget.
You can now add this widget to a custom dashboard. See Create Dashboards.
You can view the number of saved searches in your Oracle Logging Analytics instance from the Configuration page.
You can also save your search directly to a dashboard. After you've entered a search query and displayed the results in a chart, to save the search to a dashboard:
-
Click Save.
-
Click the Add to dashboard check box.
-
In the Dashboard field, click the down arrow, and select the name of the dashboard to which you want to save the search. If you want to save the search to a new dashboard, then select New Dashboard and enter the name of the new dashboard.
Click Save.
You can now access the saved search from the specified dashboard.
-
-
In the Saved Searches listing page, click the name of the saved search that you want to open. The Saved Search details page is displayed.
The saved search information and associated tags are displayed in the details page. You can perform all the saved search actions listed in the previous step here too.
The Scheduled Tasks sections displays the list and details of the scheduled tasks created for this saved search.
To create a new scheduled task, click Schedule Task. In the dialog box, enter the details like task name, target service, metric compartment, metric namespace, resource group, metric name, and interval. Alternatively, you can create a scheduled search detection rule by using the Create Detection Rule user interface. To know more about the details you must provide and steps to create the scheduled search detection rule, see Create a Schedule to Automatically Run a Saved Search Query.
Access Saved Searches
You can view the list of Oracle-defined and user-defined saved searches for Oracle Logging Analytics.
Create a Saved Search from an Existing One
To customize an Oracle-defined or user-defined saved search, use the Duplicate option.
-
Click Actions menu, and click Duplicate.
Alternatively, open the saved search that you want to duplicate. The saved search details page opens. Click Duplicate.
-
In the Duplicate Search dialog box, select the compartment for the duplicate saved search, enter a name for the duplicate saved search, and click Submit.
The new search now appears in your list of saved searches.
Use Oracle-Defined Saved Searches
Oracle Logging Analytics provides Oracle-defined saved searches for important use cases. You can know more about them through the Description column in the Saved Searches page.
Use the Oracle-defined saved searches in the following ways:
- View the queried data in the Log Explorer.
- The Oracle-defined saved search is available as a widget that you can add to the dashboard.
- Create a duplicate of the Oracle-defined saved search to move it to a different compartment, to add tags, or to create a scheduled task for the underlying query. Use the scheduled task to generate alerts for you.
To duplicate an Oracle-defined save search, see Access Saved Searches.