Type | Description | Scope |
Filter in the drop-down list | Filter data in all charts on the dashboard by specifying the field value. If statistics is enabled in the index configuration of the log topic for the filter field, the field value can be automatically obtained as a list item. | All charts on the dashboard |
Filter by search statement | Filter data in all charts on the dashboard by entering a search statement, that is, add a filter in the query statement of the charts.Filter by search statement includes filter by range, NOT, and full text. | All charts on the dashboard |
Data source variable | A data source variable enables batch switching data sources of the charts on the dashboard. It is applicable to scenarios such as applying a dashboard to multiple log topics and comparing data in blue and green on the dashboard. | Charts that use the variable on the dashboard |
Custom variable | A custom variable can be set to a static input or a value from a dynamic query and applied to search statements, titles, and text charts for quick batch statement modification. | Charts that use the variable on the dashboard |
Form Element | Description |
Type | Different types correspond to different configuration items and application scenarios. Here, select **Filter in the drop-down list**. |
Filter alias | It is the filter name displayed on the UI, which is optional. If it is left empty, the filter field will be used automatically. |
Log topic | It is the log topic to which the filter field belongs. |
Filter field | It is the object field to be filtered. |
Dynamic option | After it is enabled, the filter field value will be obtained automatically as the filter option. |
Static option | A static option is optional, needs to be added manually, and will be always displayed. You can configure its alias. |
Default filter | It is the default filter of the dashboard and is optional. |
Support for multiple items | After it is enabled, multiple filters can be selected as the filter condition. |
Form Element | Description |
Type | Different types correspond to different configuration items and application scenarios. Here, select **Filter by search statement**. |
Filter name | It is the unique filter name. |
Filter alias | It is the filter name displayed on the UI, which is optional. |
Log topic | It is the log topic to which the filter field belongs. |
Mode | It is the mode for inputting search statements. Here, interactive and statement modes are supported. |
Default filter | It is the default filter of the dashboard and is optional. |
Form Element | Description |
Variable type | It is the variable type. Different types correspond to different configuration items and application scenarios. Here, select **Data source variable**. |
Variable name | It is the name of the variable in the search statement and can contain only letters and digits. |
Displayed name | It is the variable name displayed on the dashboard, which is optional. If it is empty, the variable name will be used automatically. |
Data source scope | It is the optional scope of the variable value and defaults to **All Log Topics**. You can select **Custom Filter** and set a filter to view only log topics that meet the condition. |
Default log topic | It is the default log topic. |
Form Element | Description |
Type | It is the variable type. Different types correspond to different configuration items and application scenarios. Here, select **Data source variable**. |
Variable name | It is the name of the variable in the search statement and can contain only letters and digits. A variable is referenced in the format of ${Variable name}. |
Variable alias | It is the variable name displayed on the dashboard, which is optional. If it is empty, the variable name will be used automatically. |
Static variable value | A static variable value needs to be added manually and will be always displayed. You can configure its alias. |
Dynamic variable value | After it is enabled, you can select a log topic, enter a search and analysis statement, and use the search and analysis result as the optional variable value. |
Default value | The default value is the variable value and is required. |
body_bytes_sent:1344client_ip:127.0.0.1host:www.example.comhttp_method:POSThttp_referer:www.example.comhttp_user_agent:Mozilla/5.0proxy_upstream_name:proxy_upstream_name_4remote_user:examplereq_id:5EC4EE87A478DA3436A79550request_length:13506request_time:1http_status:201time:27/Oct/2021:03:25:24upstream_addr:219.147.70.216upstream_response_length:406upstream_response_time:18upstream_status:200interface:proxy/upstream/example/1
* | select histogram( cast(__TIMESTAMP__ as timestamp),interval 1 minute) as analytic_time, count(*) as pv group by analytic_time order by analytic_time limit 1000
http_status:>=400 | select histogram( cast(TIMESTAMP as timestamp),interval 1 minute) as analytic_time, count(*) as pv_lost group by analytic_time order by analytic_time limit 1000
* | select histogram( cast(TIMESTAMP as timestamp),interval 1 minute) as analytic_time, avg(request_time) as response_time group by analytic_time order by analytic_time limit 1000
${env}
variable created in the previous step. Then, charts will use the value of the variable as the data source, that is, Log topic A (production environment).
Apakah halaman ini membantu?