Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive

Creating a Log Metric Rule

Updated on 2024-09-06 GMT+08:00

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.

Creating a Log Metric Rule

  1. Log in to the AOM 2.0 console.
  2. In the navigation pane, choose Business Monitoring (Beta) > Business Metrics. Then click Back to Old Version in the upper right corner of the page.
  3. Click next to Log Metric Rules.
  4. 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.

  5. Click Next.
  6. Set metric information.

    1. 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.

    2. Click OK.
    3. (Optional) Click Add Metric to add more metrics for the rule.

  7. 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.

Table 3 Related operations

Operation

Description

Querying a log metric rule

  1. In the log metric rule list on the left, click a rule name.
  2. In the right pane, view the enabling status, log type, and metric of the rule.

Disabling a log metric rule

  1. In the log metric rule list on the left, click a rule name.
  2. In the upper right corner of the page, click Disable.

Editing a log metric rule

  1. In the log metric rule list on the left, click a rule name.
  2. In the upper right corner of the page, choose > Edit. For details, see Creating a Log Metric Rule.

Deleting a log metric rule

  1. In the log metric rule list on the left, click a rule name.
  2. In the upper right corner of the page, choose > Delete.

Adding a metric

  1. In the log metric rule list on the left, click a rule name.
  2. In the right pane, click Add Metric. For details, see 6.

Editing a metric

  1. In the log metric rule list on the left, click a rule name.
  2. In the right pane, select a metric access card and click . For details, see 6.

Deleting a metric

  1. In the log metric rule list on the left, click a rule name.
  2. In the right pane, select a metric access card and click .

Searching for a metric

  1. In the log metric rule list on the left, click a rule name.
  2. On the right of the page, enter a rule name keyword in the search box next to Add Metric and click .

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback