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

Torch Log Service

Copy page
Download PDF
Getting Started
Query and analyze logs
Copy page
Download PDF
Query and analyze logs
Torch Log Service (TLS) offers log query and analysis functions. Through query and analysis statements, you can filter and screen log data. You can also conduct statistical analysis and calculations on filtered results. The analysis results can be displayed as statistical charts.​
Notice​
  • The log storage period of log project determines data storage period in TLS. Logs that have expired and been deleted can not be queried or analyzed.​
  • Only log data that is collected after enabling the statistical function can be involved in statistical analysis.​
Prerequisites​
  • The log project and log topic are created.​
  • Log data is collected via LogCollector or other methods.​
  • The index is correctly configured. For detailed instructions, refer to Configure indexes.​
Steps​
  1. After configuring the collection rules, go to the project tab.​
  • If you have already created collection rules, log in to the TLS console. On the top navigation bar, select the North China 2 (Beijing) region where TLS is located. In the left navigation panel, select Resource management > project.​
  1. Click the project name, such as project_a, to enter project detail page.​
  1. In the Topic section, locate the log topic that needs be queried and analyzed, such as topic_a.​
  1. Click the log topic name or click Action and select query and analysis to access the log topic query and analysis page.​
  1. Enter the query and analysis statement, select a time range, and click Search.​
  • ​
    Parameters​
    Example value​
    Description​
    Query and analysis statement​
    status:OK | SELECT COUNT(*) AS PV​
    The query and analysis statement consists of a query syntax and an analysis syntax. The two syntaxes are separated by a pipe (​
    Query accuracy​
    Millisecond​
    Set the accuracy for query results. Milliseconds and nanoseconds are supported​
    Query time range​
    Last 5 minutes​
    Set the query time range​
    The default is 5 minutes. Custom time ranges are supported. If the specified time range exceeds the log data storage period, expired data can not be retrieved.​
    ​
  1. View the query results.​
  • ​
    Parameters​
    Description​
    Query result area​
    Displays basic information about the current log search and analysis, including total log entries, number of result rows, and time consumed.​
    ​Image​​
    Raw Log tab​
    When searching with only a query statement, the Raw log tab highlights the query results by default.​
    ​Image​​
    Chart analysis tab​
    When analyzing with a query and analysis statement, the chart analysis tab displays the analysis results in a table by default.​
    You can also select other chart types and add corresponding chart settings.​
    ​Image​​
    ​
​
Last updated: 2025.12.02 16:56:21