1、到NGINX把日志DOWN下来
2、用命令cat xxxx.log | egrep '10/Jul/2015:01:[4-5]|2015-07-10 02:0[0-57]'>xxxx2.log将您想分析的时间段的日志剥离出来
3、安装goaccess软件
yum install goaccess
4、配置goaccess配置文件
vi ./.goaccessrc 
打入配置文件

date-format %d/%b/%Y

log-format %h %^[%d:%t %^] "%r" %s %b "%R" "%u" 
5、  goaccess -p ~/.goaccessrc -f ./xxx2.log >xxx2.html将日志分析为HTML