Nginx 日志解析示例

用于测试 log-parser 工具的综合 Nginx 日志样本,包括访问日志和错误日志的各种格式和场景

📄 标准 Nginx 访问日志 nginx

🟢 simple

Combined Log Format 格式的标准 Nginx 访问日志

⏱️ 2 min 🏷️ access-log, nginx, combined-format, web-server, standard, production, beginner
📄

Standard Nginx access log in Combined Log Format with typical GET/POST requests, various status codes, and different UserAgents

Download File

File size: 1.2 KB

📄 包含各种 HTTP 状态码的访问日志 nginx

🟡 intermediate ⭐⭐

展示全面的 HTTP 状态码的访问日志

⏱️ 3 min 🏷️ access-log, nginx, status-codes, http, comprehensive, testing, 2xx, 3xx, 4xx, 5xx
📄

Nginx access log demonstrating comprehensive HTTP status codes across 2xx, 3xx, 4xx, and 5xx ranges for testing parser capabilities

Download File

File size: 2.1 KB

📄 包含爬虫机器人流量的访问日志 nginx

🟡 intermediate ⭐⭐

展示各种网络爬虫和机器人的访问日志

⏱️ 3 min 🏷️ access-log, nginx, bots, crawlers, web-crawlers, googlebot, bingbot, amazonbot, detection
📄

Nginx access log featuring various web crawlers and bots including Googlebot, Amazonbot, Bingbot, and MSNBot for bot detection testing

Download File

File size: 1.8 KB

📄 基础 Nginx 错误日志 nginx

🟡 intermediate ⭐⭐⭐

包含常见错误场景的 Nginx 错误日志

⏱️ 4 min 🏷️ error-log, nginx, errors, warnings, notices, upstream, fastcgi, debugging
📄

Nginx error log with common error scenarios including directory index forbidden, upstream timeouts, and FastCGI errors in standard error format

Download File

File size: 2.3 KB

📄 Nginx 错误日志 - Upstream 连接问题 nginx

🔴 complex ⭐⭐⭐⭐

专注于 upstream 连接问题的错误日志

⏱️ 5 min 🏷️ error-log, nginx, upstream, connection-errors, timeouts, load-balancing, backend-issues, troubleshooting
📄

Specialized Nginx error log focusing on upstream connection problems including connection refused, premature closure, timeout issues, and no live upstreams

Download File

File size: 3.2 KB

📄 混合访问和错误日志 nginx

🔴 complex ⭐⭐⭐⭐

结合访问日志和错误日志的真实场景

⏱️ 6 min 🏷️ access-log, error-log, nginx, mixed, real-world, production, comprehensive, scenario
📄

Real-world scenario combining access logs and error logs interleaved, demonstrating actual production environment with normal traffic and error conditions

Download File

File size: 2.8 KB