Configuring Quick Search

If you search for logs using a same keyword frequently, you can configure the keyword as a quick search filter.

Procedure

  1. Log in to the LTS console and choose Log Management.
  2. In the log group list, click the name of a log group.
  3. In the log stream list, click the name of a log stream.

    Alternatively, click Search in the Operation column of a log stream.

  4. On the log stream details page, click and configure the Name and Keyword parameters.
    • Quick search names are used to distinguish different quick search filters. A quick search name:
      • Can contain only letters, numbers, hyphens (-), underscores (_), and periods (.).
      • Cannot start with a period or underscore or end with a period.
      • Can contain up to 64 characters.
    • Set Keyword to a keyword that will be frequently used, for example, error*.
  5. Click OK.

    Click the name of a quick search filter to view the search results.

    Figure 1 Added quick search filters

Viewing Context of a Log Event

You can check the log events generated before and after a log event for quick fault locating.

  1. Log in to the LTS console and choose Log Management.
  2. In the log group list, click the name of a log group.
  3. In the log stream list, click the name of a log stream.

    Alternatively, click Search in the Operation column of a log stream.

  4. On the Raw Logs tab page, click View Context in the row of a log event.

    The context of the log event is displayed.