Updated on 2024-04-19 GMT+08:00

Adding Filters

Add filters to a dashboard so that you can filter data or replace data with variables.

Prerequisites

  • Logs have been collected.
  • Charts have been added to a dashboard.
  • Structuring rules have been configured for log streams.

Restrictions

Up to 10 filters can be added for a dashboard.

Procedure

  1. Log in to the LTS console, choose Dashboards in the navigation pane on the left, and select a dashboard.
  2. Click . On the Filter page, set the filter parameters.

    Table 1 Filter parameters

    Parameter

    Description

    Filter Name

    Name of a filter. Only letters, digits, underscores (_), hyphens (-), and periods (.) are allowed. The name cannot start with a period or underscore, or end with a period.

    Operator

    Specify the relationship between filter criteria and chart query statements. The value can be AND (default) or NOT.

    Key

    The field to be filtered. This parameter is mandatory. Only letters, digits, hyphens (-), underscores (_), and periods (.) are allowed. The key cannot start with a period or underscore, or end with a period, or contain only digits.

    Key Alias

    Alias of the key. Only letters, digits, underscores (_), hyphens (-), and periods (.) are allowed. It cannot start with a period or underscore, or end with a period.

    Static Values

    Set one or more key values. To add multiple values, click .

    Set the following parameters:

    • Value: name of a value. Only letters, digits, underscores (_), hyphens (-), and periods (.) are allowed. It cannot start with a period or underscore, or end with a period.
    • Alias: alias of the value.
    • Default Value: If you enable this parameter, the value will be set as a default value for the key.
    • Operation: Click to delete the value.

    Add Dynamic Value

    Enable this parameter to add a dynamic value for the key.

    Set the following parameters:

    • Log Group: Select the log group to be queried.
    • Log stream: Select the log stream to be queried.
    • Dynamic value source: fuzzy match and SQL query.

      Fuzzy match: Select structured fields configured in the current log stream.

      SQL query: Enter SQL query statements. Click Query to preview the value.

  3. Click OK.