2,187
edits
(Initial creation - content from Ubuntu page) |
m (Added IIS logging fields info) |
||
Line 1: | Line 1: | ||
For further information see the AWStats website - http://awstats.sourceforge.net/ | For further information see the AWStats website - http://awstats.sourceforge.net/ | ||
= Installation = | == Installation == | ||
# Install the package | # Install the package | ||
#* <code> apt-get install awstats </code> | #* <code> apt-get install awstats </code> | ||
Line 31: | Line 31: | ||
</pre> | </pre> | ||
= Add a Web Site = | == Add a Web Site == | ||
# Create a specific config file for the site to monitor | # Create a specific config file for the site to monitor | ||
#* <code> cp /etc/awstats/awstats.conf /etc/awstats/awstats.mysite.com.conf </code> | #* <code> cp /etc/awstats/awstats.conf /etc/awstats/awstats.mysite.com.conf </code> | ||
Line 53: | Line 53: | ||
** <code> URLReferrerWithQuery=1 </code> follows on from two above | ** <code> URLReferrerWithQuery=1 </code> follows on from two above | ||
= One-off Update = | === IIS Servers === | ||
By default, IIS server logs do not contain enough fields. Make sure the following are included (those in bold are the usually omitted culprits).. | |||
* date | |||
* time | |||
* c-ip | |||
* cs-username | |||
* cs-method | |||
* cs-uri-stem | |||
* cs-uri-query | |||
* sc-status | |||
* '''sc-bytes''' | |||
* '''cs-version''' | |||
* cs(User-Agent) | |||
* '''cs(Referer)''' | |||
To change the above in IIS7, in IIS Manager | |||
# Highlight the webserver (not a web site) | |||
# Double-click the '''Logging''' feature | |||
# Click on the '''Select Fields''' button | |||
== One-off Update == | |||
To perform a one-off update from a specific log file... | To perform a one-off update from a specific log file... | ||
* <code> /usr/lib/cgi-bin/awstats.pl -config=server -LogFile=access.log </code> | * <code> /usr/lib/cgi-bin/awstats.pl -config=server -LogFile=access.log </code> |