Adding a Dashboard Filter
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.
Adding a Filter
- Log in to the LTS console, choose Dashboards in the navigation pane, and select a dashboard.
- Click the dashboard name to go to the details page.
- Click . On the Filter page, set the filter parameters.
Fields of the numeric type cannot be filtered.
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.
- SQL Engine Version: Select Pipe character or Non-pipe character. The default SQL query syntax of the pipe character version is * | select *, and that of the non-pipe character version is select *.
- 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.
- Click OK.
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