All Products
Search
Document Center

Simple Log Service:Query and analysis

最終更新日:Aug 29, 2023

Simple Log Service can display query and analysis results in charts.

Important
  • If you use a chart (Pro), you can add multiple query statements to the chart. For more information about the charts (Pro) supported by Simple Log Service, see Chart types.

  • Each query statement has a unique ID that is represented by an uppercase letter. Examples: A and B.

Basic configurations

Before you can add a chart, you must execute query statements. You can add multiple query statements on the Search & Analysis tab. After you add the query statements, click the Apply. Simple Log Service displays the query and analysis results in the Create Chart section in real time.

Search & Analysis

Query and analysis syntax

You can execute different query statements in Logstores and Metricstores.

  • Logstore(SQL)

    Execute a query statement that follows the SQL syntax in a Logstore. For more information, see Log analysis overview.

    Query
  • Metricstore(PromQL)

    Execute a query statement that follows the PromQL syntax in a Metricstore. For more information, see Overview of query and analysis on metric data.

    Query
  • Metricstore(SQL)

    Execute a query statement that follows the SQL syntax in a Metricstore. For more information, see Overview of query and analysis on metric data.

    Query
  • Builtin

    Simple Log Service provides built-in templates to offer different display effects for query and analysis results in different scenarios.

    Built-in template

Operations

Operation

Description

Remove a query statement

You can click the Delete icon icon to remove a query statement.

Copy a query statement

You can click the Copy icon icon to copy a query statement. Then, you can process multiple similar and complex query statements at a time or make small changes to the query statement.

Adjust the order of query statements

You can drag query statements to adjust their order.