If you need to frequently view the result of a query statement, you can save the query statement as a saved search. Simple Log Service provides the saved search feature to save the required data query and analysis operations. You can use a saved search to quickly perform query and analysis operations.
Prerequisites
Indexes are created. For more information, see Create indexes.
Create a saved search
Log on to the Simple Log Service console.
In the Projects section, click the project that you want to manage.
In the left-side navigation pane, click Log Storage. In the Logstores list, click the Logstore that you want to manage.
Enter a query statement in the search box and click Last 15 Minutes to specify a query time range.
For more information, see Step 1: Enter a query statement.
Click the icon in the upper-right corner.
In the Saved Search Details panel, configure Saved Search Name.
Click OK.
After you create a saved search, click the icon next to the search box on the Search & Analysis page of the Logstore, and click the name of the saved search to quickly perform query and analysis operations.
Modify a saved search
In the left-side navigation pane, choose .
In the Saved Search list, click the saved search that you want to modify.
Enter a new query statement and click the icon.
Click the icon in the upper-right corner.
In the Saved Search Details panel, modify the required settings and click OK.
Obtain the ID of a saved search
After you create a saved search, you can use the ID of the saved search to embed the saved search page to a self-managed web page. For more information, see Configure the parameters related to the console pages to embed.
In the left-side navigation pane, choose .
In the Saved Search list, click the saved search from which you want to obtain the ID.
Obtain the ID of the saved search in the URL.