tencent cloud

Feedback

Adding a Chart

Last updated: 2022-04-25 17:10:37

    CLS supports visual chart statistics of search and analysis results, and saves statistical charts to dashboards for continuous monitoring and viewing. A dashboard also provides an entry for creating statistical charts, supporting simple chart creation and custom chart creation.

    Directions

    Adding a chart via the Search and Analysis page

    Note:

    In this mode, you need to search for data to generate chart content. For more information, see here.

    1. Log in to the CLS console.
    2. On the left sidebar, click Search and Analysis to go to the search and analysis management page.
    3. Click the Chart Analysis tab and click Add to Dashboard.
    4. In the pop-up window, enter information and click OK.
      ParameterDescription
      Chart NameName of the chart.
      Target DashboardType of the dashboard to which the chart is to be added.
      • If you select an existing dashboard, the chart will be added to an existing dashboard.
      • If you choose to create a dashboard, you need to create a dashboard and add the chart to it.
      DashboardName of the dashboard.

    Adding a chart via the Dashboard page

    1. Log in to the CLS console.
    2. In the left sidebar, click Dashboard to go to the dashboard management page.
    3. Click the ID/name of the target dashboard to go to the dashboard details page.
      Note:

      If you do not have a dashboard, please create one.

    4. Click Create and select a chart type as needed to create a chart.
    • Quick Chart: you can drag and drop to easily create charts. However, this mode supports weaker statistical and analytical features.
      Chart ElementDescription
      Field listA list of log topic fields. You can click or drag and drop a field to add it to the condition input boxes on the right.
      MetricA metric is a parameter that measures a certain characteristic of an item, generally a numeric field. You can drag and drop a field from the field list on the left or click the "+" icon to display a drop-down list to select a field. After adding a field, you can click the settings icon next to the field to modify the field's aggregate calculation mode, which is **AVG** by default.
      DimensionA dimension is perspective for analyzing a metric. It is generally a string-type field describing the attributes of an item. You can drag and drop a field from the field list on the left or click the "+" icon to display a drop-down list to select a field.
      FilterA filter field is used to filter the attributes of data. You can drag and drop a field from the field list on the left or click the "+" icon to display a drop-down list to select a field. After adding a field, you can click the settings icon next to the field to modify the field filter mode, which is **Exist** by default.
      SortA sorting field is used to sort statistical results. Only specified condition fields (metrics) can be sorted. You are advised to click the "+" icon to display a drop-down list to select a field. After adding a field, you can click the settings icon next to the field to modify the sorting mode, which is **Ascending** by default.
      Max RowsThis row limit is used for quantitative filtering of statistical results. After a number is specified, the specified number of (or less) rows of statistical results will be displayed in ascending order. This parameter supports values ranging from 1 to 1,000 and defaults to **1000**.
    • Custom Chart: you can customize a search statement to create charts. This mode supports all statistical and analytical features.

      Enter the search and analysis statement and click Generate Chart.
    1. Check whether the data configuration meets your requirements. The system automatically fills the data according to the chart data structure requirements. You can manually adjust the data structure if necessary.
    2. Click Save.

    FAQs

    What should I do if no chart is generated when I click Generate Chart or switch the chart type after completing the configuration?

    When the structure of the searched data matches the data structure required by the chart, the system automatically populates data by default. If the data structures are inconsistent, the chart will not be generated due to missing necessary fields (for example, the time field is missing in the case shown in the figure below). When this happens, check whether data meets requirements.

    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support