Help Center> Cloud Eye> User Guide> Log Monitoring> Specifying a Custom Metric Filter

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

Procedure

  1. Log in to the management console. Under Management & Deployment, select Log Tank Service.
  2. In the navigation pane on the left, choose Log Management.
  3. In the log group list, click the name of the target log group.

    The log topic list page is displayed.

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

  5. Click OK.