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
- ELB logs have been collected. For details, see Ingesting ELB Logs to LTS.
- Log structuring has been configured. For details, see Setting Cloud Structuring Parsing.
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
- Use SQL statements to query and analyze logs.
- Log in to the LTS console. In the navigation pane, choose Log Management.
- In the log group list, click
on the left of a group, and click the desired log stream to go to its details page.
- 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.
- Create a chart.
- Click Create.
You can also click Save to save the current query result as a new chart.
- On the Create Chart page, set parameters as required.
You can enable Add to Dashboard to add the new chart to a dashboard group.
- Click OK.
- Click Create.
- 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:
- 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.
- In the dialog box displayed, select the target dashboard.
- Click OK.
Method 2:
- Create a dashboard.
- In the navigation pane, choose Dashboards.
- On the page displayed, select a dashboard group under Dashboards.
- Click Add Dashboard. On the Create Dashboard page, set parameters as required.
For details about dashboard parameters, see Visualizing Logs in Dashboards.
- Add a chart to the dashboard.
- On the Create Dashboard page, click Add Chart. On the page displayed, select the desired chart.
- Click OK.
Adding a Filter
To add a filter based on the configured variables, perform the following steps:
- In the navigation pane, choose Dashboards.
- On the page displayed, select a dashboard group under Dashboards.
- Click the name of the desired dashboard. Its details page is displayed.
- Click
. On the Filter page, set parameters and click OK.
For details about filter parameters, see Adding a Filter.
- Adjust the page layout and click Save.
- Check the filtering result.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot