Updated on 2025-08-14 GMT+08:00

Saving Search and Analysis Statements

To repeatedly use a search and analysis statement, you can set and save it as a quick search statement for faster log searching and analysis.

Creating a Quick Search

  1. On the LTS console, choose Log Management in the navigation pane.
  2. In the log group list, click on the left of a log group name.
  3. In the log stream list, click the name of the target log stream.
  4. Click on the Charts tab page. Enter a name and statement for quick search.
    • A quick search name is used to distinguish multiple quick search statements. The name can be customized and must meet the following requirements:
      • Can contain only letters, digits, hyphens (-), underscores (_), and periods (.).
      • Cannot start with a period (.) or underscore (_) or end with a period (.).
      • Can contain 1 to 64 characters.
    • A quick search statement is used to repeatedly search for logs, for example, error*.
  5. Click OK.
    • To view the log search result of a quick search statement, click its name.
    • To delete a quick search statement, move the cursor to the statement and click next to it. On the Delete Quick Search dialog box displayed, click OK. Quick search cannot be performed with a deleted statement. Exercise caution when performing this operation.