All Products
Search
Document Center

Simple Log Service:Display query results on a treemap chart

Last Updated:Apr 10, 2024

This topic describes how to configure a treemap chart to display query results and provides examples.

Background information

A treemap chart includes multiple rectangles that represent data sizes. A larger rectangle represents a higher proportion of categorical data.

Rectangles in a treemap chart are sorted.

Procedure

  1. Log on to the Simple Log Service console.

  2. In the Projects section, click the project that you want to manage.

    image

  3. On the Log Storage > Logstores tab, click the Logstore that you want to manage.

  4. Enter a query statement in the search box and click Last 15 Minutes to specify a query time range.

    For more information, see Step 1: Enter a query statement.

  5. On the Graph tab, click the 树图-001 icon on the General Configurations tab.

  6. On the Attribute Configurations tab, configure the attributes of the treemap chart.

    Parameter

    Description

    Category

    The categorical field.

    Value Column

    The field that contains the required numeric values. The larger the value, the larger the rectangle.

Examples

To query the distribution of hostnames in NGINX logs, execute the following query statement:

* | select host, count(1) as count group by host order by count desc limit 1000 

Set Category to host and Value Column to count.

树图