After you use Log Service in WAF to initiate log query and analysis, you can create a dashboard based on the SQL statement. By default, the dashboard contains the chart generated based on the SQL statements.

Prerequisites

  • You have added your domain name to WAF for protection. For more information, see Website configuration.
  • You have enabled Log Service for your domain name in the WAF console. For more information, see Activate WAF Log Service.

Procedure

  1. Log on to the WAF console.
  2. Go to the advanced management page of Log Service.
    1. In the upper part of the page, set the region to Mainland China or International. In the left-side navigation pane, choose App Market > App Management.
    2. In Real-time Log Query and Analysis Service, click Configure.
    3. In the upper-right corner of the Log Service page, click Advanced Settings.
    4. In the dialog box that appears, click OK.
  3. In the project list, find the target log project, and click the project name.
  4. Enter SQL statements, and click Search & Analyze.
  5. After the query is complete, click Add to New Dashboard on the Graph tab.Add a chart to a new dashboard
  6. In the Add to New Dashboard dialog box, set the following parameters, and click OK.
    Add to New Dashboard
    Parameter Description
    Operation Select Create Dashboard.
    Dashboard Name Enter a dashboard name.
    Chart Name Enter a name for the chart generated based on the SQL statements.

Result

After the dashboard is created, you are redirected to the new dashboard. By default, the dashboard contains the chart generated based on the SQL statements entered in step 4. You can edit the charts or create more charts on the dashboard.

What to do next

Step 2: configure log charts