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.

Did you find the above information helpful?

Unhelpful
Mostly Unhelpful
A little helpful
Helpful
Very helpful

What might be the problems?

Insufficient
Outdated
Unclear or awkward
Redundant or clumsy
Lack of context for the complex system or functionality

More suggestions

0/200

Please give us your feedback.

Submitted

Thank you for your feedback.

问题反馈