After NGINX access logs are collected and sent to Log Service, you can execute a query statement in Log Service to query the numbers of page views (PVs) per minute. You can add a filter of the Filter type to query the numbers of PVs for each request method by using dynamic list items. This topic describes how to add a filter of the Filter type to query the numbers of PVs for each request method based on NGINX access logs.
Prerequisites
- NGINX access logs are collected. For more information, see Collect logs in NGINX mode.
- Indexes are configured. For more information, see Configure indexes.
Procedure
The following figure shows the operations that you need to perform to add a filter of the Filter type.

Step 1: Query and analyze data
To query the numbers of PVs per minute by using a query statement, perform the following operations:
- Log on to the Log Service console.
- In the Projects section, click the name of the project that you want to view.
- Choose . On the Logstores tab, click the Logstore that you want to view.
- Query and analyze data.
Step 2: Add the chart to a dashboard
To add the chart that displays the numbers of PVs per minute to the NGINX Access Log dashboard, perform the following operations:
Step 3: Add a filter
To add a filter of the Filter type to query the numbers of PVs for a request method, perform the following operations:
Step 4: Verify the results
In the Request Method Filter section of the NGINX Access Log page, set method to DELETE.
(*) and (request_method: DELETE) | SELECT date_format(__time__ - __time__ % 60, '%H:%i:%s') as time, count(1) as count GROUP BY time ORDER BY time
The NGINX Access Log dashboard displays the numbers of PVs per minute for the DELETE method.
