Specifying a Custom Metric Filter
LTS extracts specified keywords from logs, so that you can use Cloud Eye to monitor key metrics in logs.
Prerequisites
- LTS has been used, a filter has been created in LTS, and the log monitoring data can be viewed.
- A log group and a log topic have been created. For details, see Creating a Log Group and Creating a Log Topic.
- You have interconnected with resources and configured log collection setting. For details, see Configuring Log Collection Settings.
Procedure
- Log in to the management console. Under Management & Deployment, select Log Tank Service.
- In the navigation pane on the left, choose Log Management.
- In the log group list, click the name of the target log group.
- In the Operation column, click More and choose Create Custom Counter Filter.
Set the parameters based on Table 1.
Table 1 Custom metric filter parameters Parameter
Description
Filter Name
Specifies the name of the filter you set.
Filter Keyword
Specifies the specified keywords extracted from the log, for example, Error.
- Only filtering by a single keyword is supported.
- Filtering is case-sensitive and only logs meeting a certain condition can be filtered, such as Error or Warning.
Example Log
You are advised to paste a complete log to match the filter keywords.
Metric Name
You are advised to specify the metric name for each filter keyword.
Example: Error_metric
- Click OK.
Last Article: Introduction to Log Monitoring
Next Article: Viewing Log Monitoring Data
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.