NGINX Access Logs
Steve Holdoway
steve at greengecko.co.nz
Sat Jan 10 23:00:49 UTC 2015
On Sat, 2015-01-10 at 09:50 -0500, exilemirror wrote:
> Hi guys,
>
> I'm new to nginx. Can anyone explain what does - - - "-" "-" "-" "-" -
> means in the access logs? Been getting lots of this in the log file.
> Would like to know if this is the cause of nginx to show that there's a
> spike in traffic through the nginx graph. Example of log below:
>
> [12/Feb/2014:11:25:28 +0800] "POST /...svc HTTP/1.1" 200 274 1.68 870 0.008
> 0.002 192.168.10.71:84 - - - "-" "-" "-" "-" -
>
> HTTP/1.1" 200 274 1.68 869 0.026 0.006 10.14.241.70:84 - - - "-" "-" "-" "-"
> -
>
> Posted at Nginx Forum: http://forum.nginx.org/read.php?2,256026,256026#msg-256026
>
look in your nginx.conf. I have the following line
log_format main '$remote_addr - $remote_user [$time_local] "$request
"'
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
( sorry for the wrap )
Which itemises the fields. Obviously yours is different, but it'll give
you the list.
Steve
--
Steve Holdoway BSc(Hons) MIITP
http://www.greengecko.co.nz
Linkedin: http://www.linkedin.com/in/steveholdoway
Skype: sholdowa
More information about the nginx
mailing list