Creating a Log Metric Rule
You can create log metric rules to extract ELB log data reported to LTS as metrics and monitor them on the metric browsing and dashboard pages.
Precaution
- To use business monitoring, enable this function in Menu Settings. For details, see Menu Settings.
- You can create a maximum of 100 log metric rules. The total number of metrics added to all rules cannot exceed 100.
Prerequisite
Creating a Log Metric Rule
- Log in to the AOM 2.0 console.
- In the navigation pane, choose Business Monitoring (Beta) > Business Metrics. Then click Back to Old Version in the upper right corner of the page.
- Click next to Log Metric Rules.
- Set parameters to ingest ELB logs reported to LTS to AOM. For details, see Table 1.
Figure 1 Ingesting logs
Table 1 Log ingestion parameters Parameter
Description
Ingestion Rule
Enter 1 to 100 characters and do not start with an underscore (_) or hyphen (-). Only letters, digits, hyphens, and underscores are allowed.
Log Type
ELB log is selected by default and cannot be changed.
Application
Select a created application from the drop-down list.
Log Group
Select a created log group from the drop-down list. If no log group is available, create one by referring to Collecting Logs from ELB.
Log Stream
Select a created log stream from the drop-down list. Click Preview Log to view the log data contained in the log stream.
Log Structuring
Click Structure to structure the selected logs. By default, structured fields are displayed in the list below.
- Click Next.
- Set metric information.
- Click Add Metric to add metrics for the log metric rule. For details, see Table 2.
Figure 2 Adding a metric
Table 2 Metric configuration parameters Category
Parameter
Description
Basic Info
Metric Name
The name consists of prefix aom_business_elb_ and custom content.
Metric Alias
(Mandatory) Enter an alias.
Query Metric
Search By
Only SQL query is supported.
Query Statement
Enter an SQL query statement in the text box and click to adjust the SQL statement format. Click to view the syntax of SQL statements.
Query Period
Select a period from the drop-down list. Options: Last minute, Last 10 minutes, Last 15 minutes, Last hour, Last 6 hours, Last day, and Last week.
Define Metric
Metric Value
Select a value from the drop-down list. Only numeric fields can be selected.
Metric Dimension
Select a value from the drop-down list.
- Click OK.
- (Optional) Click Add Metric to add more metrics for the rule.
- Click Add Metric to add metrics for the log metric rule. For details, see Table 2.
- Click OK.
The created log metric rule is displayed in the rule list on the left.
More Operations
After creating a log metric rule, perform the operations listed in Table 3 if needed.
Operation |
Description |
---|---|
Querying a log metric rule |
|
Disabling a log metric rule |
|
Editing a log metric rule |
|
Deleting a log metric rule |
|
Adding a metric |
|
Editing a metric |
|
Deleting a metric |
|
Searching for a metric |
|
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot