<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi gloomen,<br>
<br>
I think you need to log each virtual server to a different log file. <br>
<br>
What I suspect is happening is that that log file is getting logs from
other virtual servers<br>
or the main server, and that is inflating your figures. <br>
<br>
And I don't think your log_format command is necessary either. I don't
have a log_format command<br>
and webalizer works just fine. <br>
<br>
Regards<br>
<br>
Ian<br>
On 03/05/2010 18:04, gloomen wrote:
<blockquote
 cite="mid:2008363c61f979718c67c4d515a802c0.NginxMailingListEnglish@forum.nginx.org"
 type="cite">
  <pre wrap="">[QUOTE=mitsumoto;80948]Hello All!

Help me please.
Which format should be used to log in nginx Webalizer?
I get inflated statistics

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

[code]
#virtual host
    server {
        listen       80;
        server_name example.ru;
        access_log   /var/log/nginx.access_log  main;

        charset windows-1251;
        client_max_body_size    4m;

        location / {
            root   /usr/local/www/example.ru;
            index  index.html index.php;
        }

    }
[/code]

Thanks[/QUOTE]

Posted at Nginx Forum: <a class="moz-txt-link-freetext" href="http://forum.nginx.org/read.php?2,82125,82125#msg-82125">http://forum.nginx.org/read.php?2,82125,82125#msg-82125</a>


_______________________________________________
nginx mailing list
<a class="moz-txt-link-abbreviated" href="mailto:nginx@nginx.org">nginx@nginx.org</a>
<a class="moz-txt-link-freetext" href="http://nginx.org/mailman/listinfo/nginx">http://nginx.org/mailman/listinfo/nginx</a>
  </pre>
  <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>

No virus found in this incoming message.
Checked by AVG - <a class="moz-txt-link-abbreviated" href="http://www.avg.com">www.avg.com</a> 
Version: 9.0.814 / Virus Database: 271.1.1/2851 - Release Date: 05/03/10 07:27:00

  </pre>
</blockquote>
<br>
</body>
</html>