$ diff -u /etc/nginx/nginx.conf{.ORIG,}
--- /etc/nginx/nginx.conf.ORIG 2014-04-13 04:15:51.907316500 +0000
+++ /etc/nginx/nginx.conf 2014-04-13 05:02:22.807316500 +0000
@@ -30,7 +30,9 @@
# Logging Settings
##
- access_log /var/log/nginx/access.log;
+ log_format vhosts '$host $remote_addr - $remote_user [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent"';
+
+ access_log /var/log/nginx/access.log vhosts;
error_log /var/log/nginx/error.log;
##
Logs can then be parsed with GoAccess
Via: https://github.com/piwik/piwik/tree/master/misc/log-analytics and http://publications.jbfavre.org/web/nginx-vhosts-automatiques-avec-SSL-et-authentification.en
I got it working, use this log format in goaccess: log-format %v %h %^[%d:%t %^] "%r" %s %b "%R" "%u"