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.
E84e93646376def3fbed0907fe9335e1?d=identicon&s=25 Max (Guest)
on 2009-03-01 15: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
Fda08117336cfde6562315df04b976e8?d=identicon&s=25 Dave Cheney (Guest)
on 2009-03-01 21: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
E84e93646376def3fbed0907fe9335e1?d=identicon&s=25 Max (Guest)
on 2009-03-02 15: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.