Welcome! Log In Create A New Profile

Advanced

Incorrect log being generated?

December 29, 2011 08:36AM
Using the following,

log_format main '$remote_addr - $remote_user [$time_local] '
'"$request" $status $body_bytes_sent '
'"$http_referer" "$http_user_agent"';

access_log logs/access.log main;


Notice the extra "-"'s..

::ffff:173.175.52.41 - - [29/Dec/2011:07:29:57 -0600] "GET /text.txt
HTTP/1.1" 200 14457 "-" "Mozilla/5.0 (Windows NT 5.1; rv:8.0)
Gecko/20100101 Firefox/8.0"
::ffff:83.108.225.71 - - [29/Dec/2011:07:29:57 -0600] "GET /text.txt
HTTP/1.1" 200 130968 "-" "Mozilla/5.0 (X11; U; Linux i686; nb-NO;
rv:1.9.2.18) Gecko/20110628 Ubuntu/10.10 (maverick) Firefox/3.6.18"
::ffff:31.47.127.66 - - [29/Dec/2011:07:29:57 -0600] "-" 400 0 "-" "-"
::ffff:81.184.25.193 - - [29/Dec/2011:07:29:57 -0600] "GET /text.txtt
HTTP/1.1" 200 130968 "-" "Mozilla/5.0 (Windows NT 6.1; rv:8.0)
Gecko/20100101 Firefox/8.0"
::ffff:211.128.160.26 - - [29/Dec/2011:07:29:57 -0600] "GET /text.txt
HTTP/1.1" 200 5068 "-" "Mozilla/5.0 (Windows NT 5.1; rv:2.0)
Gecko/20100101 Firefox/4.0"
::ffff:61.5.222.223 - - [29/Dec/2011:07:29:57 -0600] "GET /text.txt
HTTP/1.1" 200 130968 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64;
rv:8.0.1) Gecko/20100101 Firefox/8.0.1"
::ffff:81.182.240.97 - - [29/Dec/2011:07:29:57 -0600] "GET /text.txt
HTTP/1.1" 200 130968 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0)
Gecko/20100101 Firefox/8.0"


(nginx compiled)
nginx version: nginx/1.1.11
built by gcc 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3)
TLS SNI support enabled
configure arguments:
--with-openssl=/root/openssl-1.0.1-stable-SNAP-20111218
--with-http_gzip_static_module --with-http_ssl_module --with-ipv6
--without-mail_pop3_module --without-mail_imap_module
--without-mail_smtp_module --without-http_charset_module
--without-http_ssi_module --without-http_userid_module
--without-http_autoindex_module --without-http_rewrite_module
--without-http_limit_zone_module --without-http_limit_req_module

nginx config: http://pastebin.com/raw.php?i=k3PWs45H

Restarting nginx hasn't helped either. Have I disabled a module or
haven't enabled a module I needed?

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

Incorrect log being generated?

fanboy December 29, 2011 08:36AM

Re: Incorrect log being generated?

Maxim Dounin December 29, 2011 08:44AM

Re: Incorrect log being generated?

fanboy December 29, 2011 09:10AM

Re: Incorrect log being generated?

fanboy December 29, 2011 09:26AM

Re: Incorrect log being generated?

Maxim Dounin December 29, 2011 09:32AM

Re: Incorrect log being generated?

Maxim Dounin December 29, 2011 09:30AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 113
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