Forum: NGINX Anyone using urchin?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Max (Guest)
on 2009-03-01 16:01
(Received via mailing list)
Hello,

I am using Urchin to process the log file. It works fine for apache log
file. But if I process nginx log file, it seems urchin can't understand
the
nginx log file format. What should I change the log format of nginx in
order
to process by urchin? I am using the default log format as follow:

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

Thanks.

Max
Dave C. (Guest)
on 2009-03-01 22:29
(Received via mailing list)
I've used this log format to produce urchin compatible log files.

   log_format urchin '$remote_addr $http_host - [$time_local]
"$request" $status $body_bytes_sent "$http_referer" "$http_user_agent"
"$http_cookie"';

Cheers

Dave
Max (Guest)
on 2009-03-02 16:39
(Received via mailing list)
Hi Dave,

Million thanks. Urchin can now process the nginx log file.

Max
This topic is locked and can not be replied to.