All Products
Search
Document Center

Simple Log Service:Saved search

Last Updated:Jul 18, 2024

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

  1. Log on to the Simple Log Service console.

  2. In the Projects section, click the project that you want to manage.

    image

  3. In the left-side navigation pane, click Log Storage. In the Logstores list, click the Logstore that you want to manage.

    image

  4. 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.

  5. Click the Save Search icon in the upper-right corner. image

  6. In the Saved Search Details panel, configure Saved Search Name.

  7. Click OK.

    After you create a saved search, click the Saved search - 002 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

  1. In the left-side navigation pane, choose Resources > Saved Search.

  2. In the Saved Search list, click the saved search that you want to modify.

  3. Enter a new query statement and click the Search & Analyze icon icon.

  4. Click the Save Search icon in the upper-right corner.

  5. 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.

  1. In the left-side navigation pane, choose Resources > Saved Search.

  2. In the Saved Search list, click the saved search from which you want to obtain the ID.

  3. Obtain the ID of the saved search in the URL.

    image