All Products
Search
Document Center

Simple Log Service:Display query results on a word cloud

Last Updated:Apr 09, 2024

This topic describes how to configure a word cloud to display query results.

Background information

A word cloud visualizes text data. It is a cloud-like and colored image composed of words. You can use a word cloud to display a large amount of text data. The font size or color of a word indicates the significance of the word. This allows you to recognize the most significant words in an efficient manner.

The words in a word cloud 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. Choose Log Storage > Logstores and click the Logstore that you want to manage.
  4. Enter a query statement in the search box, select a time range, and then click Search & Analyze.
  5. On the Graph tab, click the 词云-001 icon below the General Configurations tab.

  6. On the Attribute Configurations tab, configure the attributes of the word cloud.

    Parameter

    Description

    Word Column

    The category of the words that you want to display.

    Value Column

    The numeric value for each word.

    Maximum Font Size and Minimum Font Size

    The font size range of the words.

    • The minimum font size ranges from 10 to 24 pixels.

    • The maximum font size ranges from 50 to 80 pixels.

Examples

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

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

Set the Word Column parameter to hostname and the Value Column parameter to count.