2014-11-06 6 views
5

Ich verstehe alle Spalte der Zugriffsprotokoll dieser IP-IP, Datum, Anfrage, Antwort-Code und ... außer der nächsten Spalte ist, was ich nicht verstehe (im Beispiel unten, 177, 4223, 4356). Wofür steht das?Nginx Verständnis Zugriffsprotokoll Spalte

66.249.65.159 - - [06/Nov/2014:19:10:38 +0600] "GET /news/53f8d72920ba2744fe873ebc.html HTTP/1.1" 404 177 "-" "Mozilla/5.0 (iPhone; CPU iPhone OS 6_0 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10A5376e Safari/8536.25 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)" 
66.249.65.3 - - [06/Nov/2014:19:11:24 +0600] "GET /?q=%E0%A6%AB%E0%A6%BE%E0%A7%9F%E0%A6%BE%E0%A6%B0 HTTP/1.1" 200 4223 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)" 
66.249.65.62 - - [06/Nov/2014:19:12:14 +0600] "GET /?q=%E0%A6%A6%E0%A7%8B%E0%A7%9F%E0%A6%BE HTTP/1.1" 200 4356 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)" 

Edit: Ich habe gegoogelt, konnte aber keine Antwort finden.

+0

Siehe http://nginx.org/en/docs/http/ngx_http_log_module.html#log_format –

Antwort

3

Die Spalte nach "Response Code" (d. H. Status) ist "Bytes gesendet".

Das Standardprotokollformat in nginx wird "kombiniert" genannt. Es entspricht der folgenden Konfiguration.

# nginx.conf 
http { 
    ... 
    log_format combined '$remote_addr - $remote_user [$time_local] ' 
         '"$request" $status $body_bytes_sent ' 
         '"$http_referer" "$http_user_agent"'; 
    ... 
} 

Source: Module ngx_http_log_module