Configuring Quick Search
If you search for logs using a same keyword frequently, you can configure the keyword as a quick search filter.
Procedure
- Log in to the LTS console and choose Log Management.
- In the log group list, click the name of a log group.
- In the log stream list, click the name of a log stream.
Alternatively, click Search in the Operation column of a log stream.
- 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*.
- Quick search names are used to distinguish different quick search filters. A quick search name:
- 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.
- Log in to the LTS console and choose Log Management.
- In the log group list, click the name of a log group.
- In the log stream list, click the name of a log stream.
Alternatively, click Search in the Operation column of a log stream.
- On the Raw Logs tab page, click View Context in the row of a log event.
The context of the log event is displayed.
Last Article: Setting Quick Analysis
Next Article: Configuring Delimiters
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.