happy7228194 发表于 2019-12-2 16:30:22

关于awstats解析nginx日志格式的问题

各位大侠,小弟最近做awstats的时候出现一个问题,希望有知道的大神帮忙指教一下

nginx 日志格式
log_format my_format '"$time_iso8601" "$http_x_forwarded_for" "$remote_addr" "$remote_user" "$request" "$status" "$body_bytes_sent" "$request_time" "$http_host" "$http_referer" "$http_user_agent" "$request_body"';

awstat日和定义格式

其中$time_iso8601 对应awstats中的那个时间,
#   %time1            Date and time with format: or
   #   %time2            Date and time with format: yyyy-mm-dd hh:mm:ss
   #   %time3            Date and time with format: Mon dd hh:mm:ss or Mon dd hh:mm:ss yyyy
   #   %time4            Date and time with unix timestamp format: dddddddddd
   #   %time5            Date and time with format iso: yyyy-mm-ddThh:mm:ss

我试过 都不行,求大侠帮忙指教 谢谢



页: [1]
查看完整版本: 关于awstats解析nginx日志格式的问题