Nginx
1 | 格式 = $remote_addr - $remote_user [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent" "$http_x_forwarded_for" |
Apache(httpd) 配置文件中有三种访问日志格式
1 | common 格式 = %h %l %u %t "%r" %>s %b |
Tomcat
1 | 格式 = "%h %l %u %t "%r" %s %b" |
Resin
1 | 格式 = %h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i" |
IIS 有三种访问日志格式
1 | W3C 样例 = 2018-11-09 08:12:41 172.22.255.255 GET /images/picture.jpg - 8080 - 172.30.255.255 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/70.0.3538.77+Safari/537.36 http://localhost/ 404 0 2 1 |
Jboss
1 | 样例 = 127.0.0.1 - - [13/Nov/2018:10:58:27 +0800] "GET /site_test HTTP/1.1" 404 986 |
Wildfly 有两种访问日志格式
1 | common 样例 = 127.0.0.1 - - [13/Nov/2018:10:08:39 +0800] "GET /site_test/ HTTP/1.1" 200 52 |
Weblogic(注意 Weblogic access 日志最后会有一个空格)
1 | 样例 = 127.0.0.1 - - [13/十一月/2018:17:44:01 +0800] "GET /testweb/index.jsp HTTP/1.1" 200 52 |