Updated on 2024-08-01 GMT+08:00

Creating Statistical Rules

Logs contain information such as system performance and services. For example, the number of the ERROR keywords indicates the system health, and the number of the BUY keywords indicates the service volume. You can create statistical rules to find such information. After statistical rules are created, AOM periodically counts keywords and generates metric data so that you can monitor system performance and service information in real time.

Precautions

A statistical rule takes effect by log bucket. Before creating a statistical rule, ensure that at least one log bucket has been created. A maximum of 5 statistical rules can be created for a log bucket.

Procedure

  1. Log in to the AOM console. In the navigation pane, choose Log > Statistical Rules.
  2. Click Create Statistical Rule in the right corner of the page. Then, select a rule type, set a rule name and keyword, select the created log bucket, and click OK, as shown in the following figure.

    A statistical rule takes effect by log bucket. AOM will periodically count the number of keywords in log files of a log bucket and generate log metrics.

    Figure 1 Creating a statistical rule

    After a statistical rule is created, a metric named after the rule will be generated.

More Operations

After creating a statistical rule, perform the operations listed in More Operations if needed.

Table 1 Related operations

Operation

Description

Viewing a statistical rule

Click a statistical rule in the Rule Name column to view its details.

Modifying a statistical rule

Click Edit in the Operation column.

Deleting a statistical rule

  • To delete a statistical rule, click Delete in the Operation column.
  • To delete one or more statistical rules, select them and click Delete above the rule list.
NOTE:

Deleting a statistical rule will not delete your log buckets or files.