# log-analysis **Repository Path**: scriptfan/log-analysis ## Basic Information - **Project Name**: log-analysis - **Description**: Nginx日志分析工具 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-07-03 - **Last Updated**: 2026-07-03 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 分析今天的日志 python analyze_spider.py -f /var/log/nginx/access.log --today # 分析指定时间段 python analyze_spider.py -f access.log --start "2026-07-01" --end "2026-07-03" # 分析最近7天 python analyze_spider.py -f access.log --last 7d -o report.html # 分析昨天,指定输出路径 python analyze_spider.py -f access.log --yesterday -o yesterday_report.html # 使用自定义蜘蛛规则 python analyze_spider.py -f access.log --today --spider-file my_spiders.txt # 自动生成 sample_access.html python analyze_spider.py -f sample_access.log --today # 仍然可以通过 -o 自定义 python analyze_spider.py -f sample_access.log --today -o my_report.html