All Documents
Current Document

Content is empty

If you don't find the content you expect, please try another search term

Documentation

Query logs

Last updated:2020-12-28 14:55:54

Query data

Log in to the KLog console and click Projects in the left navigation pane. The Projects page appears. Click the name of a project. The project details page appears. Click Log Query in the left navigation pane. The Log Query page appears.

log query.png

Select a LogPool and the time range to query, enter a statement, and then click Query. The query result is displayed in the lower part of the page.

  • KLog supports full-text queries, key-value queries, and SQL queries. You can enter a query statement or an SQL statement to query data. If you enter a query statement, raw logs are returned. If you enter an SQL statement, an aggregated or filtered table is returned. For more information, see Query syntax.
  • For more information about the limits on the query statements, see Limits.

View query results

View raw logs

After you enter a query statement, raw logs are returned and displayed on the Raw Logs tab. Click the arrow on the left side of a log. You can display log details in the table or JSON format.

view raw log.png

View the query result in a chart

After you enter an SQL statement, the query result is returned and displayed on the Charts tab. By default, the query result is displayed in the table format. You can view the query result in a chart, such as a line chart. For more information, see Use charts.

Add a chart to a dashboard

A dashboard is used to display data analytics in real time. Click Add to Dashboard to add a chart to a dashboard. For more information, see Use dashboards.

On this page
Pure ModeNormal Mode

Pure Mode

Click to preview the document content in full screen
Feedback