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
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" ';
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.
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.