这里是我的日志
180.76.15.143 - - [09/Oct/2016:07:43:04 +0700] "GET / HTTP/1.1" 301 193 "-" "Mozilla/5.0 (compatible; Baiduspider/2.0; +http://www.baidu.com/search/spider.htm$
180.76.15.160 - - [09/Oct/2016:07:44:15 +0700] "GET / HTTP/1.1" 301 193 "-" "Mozilla/5.0 (compatible; Baiduspider/2.0; +http://www.baidu.com/search/spider.htm$
180.76.15.154 - - [09/Oct/2016:08:39:45 +0700] "GET / HTTP/1.1" 301 193 "-" "Mozilla/5.0 (compatible; Baiduspider/2.0; +http://www.baidu.com/search/spider.htm$我使用这些格式,但不起作用
time-format %H:%M:%S
date-format %d/%b/%Y
log-format %h - %^ [%d:%t %^] "%r" %s %b "%R" "%u" %T "%^"谢谢。
发布于 2016-10-12 23:08:37
NCSA组合日志格式:
time-format %H:%M:%S
date-format %d/%b/%Y
log-format %h %^[%d:%t %^] "%r" %s %b "%R" "%u"https://stackoverflow.com/questions/39996328
复制相似问题