You need to enable JavaScript to run this app.
Torch Log Service

Torch Log Service

Copy page
Download PDF
Query and analysis charts
Configure data classification charts
Copy page
Download PDF
Configure data classification charts
TLS provides data conversion to process query and analysis results. Currently, only data classification is supported. The data classification feature allows you to group data by specified fields and count the number for each category.​
This topic describes how to configure data classification charts in an existing dashboard.​
Prerequisites​
When configuring data classification charts, you must meet the relevant conditions in Notice.​
Steps to configure a data classification chart​
  1. Log in to TLS console.​
  1. Select the region where log service is located from the top navigation bar.​
  1. In the left navigation bar, select Common functions > Dashboard.​
  1. Select the dashboard to add the chart, click Add chart, and then click Create chart.​
  1. Select the query time range.​
  1. On the Query and analysis tab, add data sources as needed, select the target log topic, and enter the query and analysis statement.​
  1. On the Data conversion tab, click Add conversion, and then click Data classification.​
Notice​
You can also enable data conversion below the chart analysis section on the query and analysis page to use data classification and aggregation features.​
  1. Set the following configuration items, and then click Start analyzing.​
  • ​
    Parameters​
    Description​
    Line field​
    Select a target field as the row field.​
    Column field​
    Select a field to use for classification as the column field.​
    Value field​
    Select a numeric field.​
    Null value​
    When null values appear in the data, they will be replaced with the value you specify here. The default is null.​
    ​
  1. After chart settings are complete, click Save dashboard. Or you can click Apply to dashboard and preview the results before you click Save.​
Configuration examples​
Count the number of logs with different level values every 5 minutes. By default, the line chart does not support displaying the number of logs by level value. By configuring classification rules under data conversion, the system will group query and analysis results into three categories based on level values (info, warning, error) and display the numbers for each category in the line chart.​
  • Query and analysis configuration​
  • ​Image​​
​
*| SELECT DATE_FORMAT(__time__ - __time__ % 300000, 'Y-M-d HH:mm') AS time, COUNT(*) AS count, level GROUP BY time, level ORDER BY time​
​
  • Data conversion configuration​
  • ​Image​​
  • Query and analysis results (table)​
  • After adding data classification, TLS extracts the level value (info, warning, error) as the table header and displays the log count for each level accordingly.​
  • Before data conversion​
  • ​Image​​
  • After data conversion​
  • ​Image​​
  • Query and analysis results (line chart)​
  • After adding data classification, TLS supports displaying the log count for each level value by category.​
  • Before data conversion​
  • ​Image​​
  • After data conversion​
  • ​Image​​
​
​
Last updated: 2026.01.12 18:33:54