Version:
1.0.0
OS:
Linux
Author:
justbio
apache-log-to-graph
用途
——-
把apache的access日志做成统计图
暂时只支持默认格式的日志
LogFormat:”%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i"” combined
matplotlib
pip3 install matplotlib
numpy
pip3 install numpy
Basemap
geoip2.database
shapefile
解压到任意路径 编辑conf文件
vim conf/config.ini
logpath=apache_log_path_need_to_analyze
graphpath=path_to_save_graph
如果留空 ,默认为:
logpath=/var/log/httpd/
graphpath=./pngs/
执行
python3 mk_graph.py