Help Center/ Log Tank Service/ Best Practices/ Log Search and Analysis/ Viewing ELB Log Analysis Results on the LTS Dashboards
Updated on 2025-02-17 GMT+08:00

Viewing ELB Log Analysis Results on the LTS Dashboards

You can run SQL statements to query and analyze ELB logs ingested to LTS in real time, save the results as charts, and view the charts in dashboards.

Prerequisites

Restrictions

  • Up to 100 charts can be created for a log stream.
  • Up to 50 charts can be added to a dashboard.
  • Up to 10 filters can be added for a dashboard.
  • Up to 100 dashboards can be created for a HUAWEI ID.
  • Up to 100 dashboard templates can be created for a HUAWEI ID.
  • Up to 200 dashboard groups can be created for a HUAWEI ID.
  • Up to 200 dashboard template groups can be created for a HUAWEI ID.

Creating a Visual Chart

  1. Use SQL statements to query and analyze logs.

    1. Log in to the LTS console. In the navigation pane, choose Log Management.
    2. In the log group list, click on the left of a group, and click the desired log stream to go to its details page.
    3. Click the Log Analysis tab. On the tab page displayed, select a time range, enter a SQL statement in the SQL search box, and click Searching Logs.
      • If the number of logs generated within the specified time range exceeds 1 billion, iterative query is triggered so you can view all logs in multiple queries. The message Query status: Results are accurate is displayed.
      • You can select various charts to display the query result.
      • For details about SQL queries, see SQL Analysis Syntax.

  2. Create a chart.

    1. Click Create.

      You can also click Save to save the current query result as a new chart.

    2. On the Create Chart page, set parameters as required.

      You can enable Add to Dashboard to add the new chart to a dashboard group.

    3. Click OK.

  3. View the chart.

    Click Show Chart to view the chart.

Adding a Chart to a Dashboard

You can add a chart to a dashboard in either of the following ways:

Method 1:

  1. Hover your cursor over a chart name, and will be displayed. Move the cursor onto the icon, and choose Add to Dashboard from the hover menu.
  2. In the dialog box displayed, select the target dashboard.
  3. Click OK.

Method 2:

  1. Create a dashboard.

    1. In the navigation pane, choose Dashboards.
    2. On the page displayed, select a dashboard group under Dashboards.
    3. Click Add Dashboard. On the Create Dashboard page, set parameters as required.

      For details about dashboard parameters, see Visualizing Logs in Dashboards.

  2. Add a chart to the dashboard.

    1. On the Create Dashboard page, click Add Chart. On the page displayed, select the desired chart.
    2. Click OK.

Adding a Filter

To add a filter based on the configured variables, perform the following steps:

  1. In the navigation pane, choose Dashboards.
  2. On the page displayed, select a dashboard group under Dashboards.
  3. Click the name of the desired dashboard. Its details page is displayed.
  4. Click . On the Filter page, set parameters and click OK.

    For details about filter parameters, see Adding a Filter.

  5. Adjust the page layout and click Save.
  6. Check the filtering result.