| | 101 | The awstats config files are in {{{/etc/awstats}}}, the example file was copied: |
| | 102 | |
| | 103 | {{{ |
| | 104 | cp /etc/awstats/awstats.conf /etc/awstats/awstats.www.transitionnetwork.org.conf |
| | 105 | }}} |
| | 106 | |
| | 107 | This variable was changed, the logs should be anonomised as they are read: |
| | 108 | |
| | 109 | {{{ |
| | 110 | LogFile="cat /home/puffin/nginx/puffin-nginx-%YYYY-0%MM-0%DD-0.log | /usr/local/bin/blurAddys.pl |" |
| | 111 | }}} |
| | 112 | |
| | 113 | The log format is defined in {{{/var/aegir/config/server_master/nginx.conf}}} on wiki:PuffinServer as follows: |
| | 114 | |
| | 115 | {{{ |
| | 116 | ## Log Format |
| | 117 | log_format main '"$proxy_add_x_forwarded_for" $host [$time_local] ' |
| | 118 | '"$request" $status $body_bytes_sent ' |
| | 119 | '$request_length $bytes_sent "$http_referer" ' |
| | 120 | '"$http_user_agent" $request_time "$gzip_ratio"'; |
| | 121 | |
| | 122 | client_body_temp_path /var/lib/nginx/body 1 2; |
| | 123 | access_log /var/log/nginx/access.log main buffer=32k; |
| | 124 | error_log /var/log/nginx/error.log crit; |
| | 125 | }}} |
| | 126 | |
| | 127 | So this is how that is defined for awstats: |
| | 128 | |
| | 129 | {{{ |
| | 130 | LogFormat="%host %other %time1 %methodurl %code %bytesd %other %other %refererquot %uaquot %extra1 %gzipratio" |
| | 131 | }}} |
| | 132 | |
| | 133 | }}} |
| | 134 | |
| | 135 | |
| | 136 | |
| | 137 | |