This topic describes how to configure a table to display query results.
Background information
Tables are used to sort and display data for quick reference and analysis. All query results that match specified query statements can be rendered into visualized charts. By default, the query results are displayed in a table.
Each table consists of the following elements:
- Table header
- Row
- Column
where:
- The number of columns can be specified by using a
SELECT
statement. - The number of rows is calculated based on the number of log entries in a specified
time range. The default clause is
LIMIT 100
.
Procedure
Examples
You can filter fields in raw log entries. The following figure shows a raw log entry.

-
To filter the request_method, request_uri, and request_time fields in the latest 10 log entries, execute the following query statement:
* | SELECT request_method, request_uri, request_time GROUP BY request_method, request_uri, request_time LIMIT 10
- To query the average of the request_time field values (the average request time) in a specified time range and round the average
to three decimal places, execute the following query statement:
* | SELECT round(avg(request_time), 3) as average_request
- To group the values of the remote_addr field in a specified time range and sort the values in descending order, execute
the following query statement:
* | SELECT remote_addr, count(*) as count GROUP BY remote_addr ORDER BY count DESC