Welcome! Log In Create A New Profile

Advanced

Re: NGINX Access Logs

January 10, 2015 06:02PM
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

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

NGINX Access Logs

exilemirror January 10, 2015 09:50AM

Re: NGINX Access Logs

GreenGecko January 10, 2015 06:02PM

Re: NGINX Access Logs

exilemirror January 11, 2015 03:11AM

Re: NGINX Access Logs

B.R. January 11, 2015 09:02AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 192
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready