tencent cloud

문서Cloud Log Service

NGINX Access Log Analysis

다운로드
포커스 모드
폰트 크기
마지막 업데이트 시간: 2026-05-27 21:44:34
NGINX is a high-performance HTTP and reverse proxy server. By analyzing NGINX logs, you can obtain various valuable results, such as data support for website diagnosis and tuning, website stability monitoring, and operations statistics. This document introduces how to use CLS to comprehensively mine NGINX log data.

Prerequisites

NGINX logs have been collected to CLS. For more information, please see Collecting and Searching NGINX Access Logs.
This document uses standard NGINX log configuration:
log_format main '$server_name $remote_addr - $remote_user [$time_local] "$request" '
'$status $uptream_status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for" ';
If you do not have Nginx logs, you can use the Demo log topic provided for free by CLS to experience this feature. For detailed steps, see Use Demo Log to Quickly Experience CLS.

Preset Dashboard

CLS has preset common Nginx log statistics as dashboards. You can quickly understand the current Nginx running status and end-user access behavior through these dashboards.
Nginx Monitoring Dashboard includes metrics such as request success rate, request status code distribution, and request latency.
Nginx Access Dashboard includes metrics such as PV, UV, and request geographic distribution.
Click Edit Dashboard in the upper right corner of the dashboard to edit based on the preset dashboard.



You can build a dashboard that is more tailored to your specific needs.





도움말 및 지원

문제 해결에 도움이 되었나요?

피드백