Config

__http://awstats.sourceforge.net/docs/index.html__

1 Directives
----

1.1 LogFormat

1.1.1 IIS

The default setting isn't appropriate. When customized, as in here --> [Best Practices/Software/AWStats/Clients/IIS], your client config file should be;
{code:none}
...
LogFormat="date time cs-method cs-uri-stem cs-uri-query cs-username c-ip cs-version cs(User-Agent) cs(Referer) sc-status sc-bytes"
...
{code}

1.1.1 Apache

As long as you are using the Combined Format, simply setting 
{code}
LogFormat = 1
{code}

1.1 SkipFiles

To make the server skip lines for things that do not have an extention (e.g., a -javascript as opposed to a .js) use a regular expression in the SkipFiles directive like follows

{code:none}
SkipFiles="REGEX[\\\-javascript$]"
{code}

1.1 SkipHosts

If you want to know just who your customers are, you can screen out the developers hitting the box 300 times a day with this directive

{code:none}
SkipHosts="REGEX[^132\\\.235\\\.83]"
{code}

1.1 ShowAuthenticatedUsers

This is turned off by default. But if the %logname% is populated with usernames, it will generate data if you set it to
{code:none}
ShowAuthenticatedUsers=1
{code}


1 Troubleshooting
----

1.1 IIS Client submissions

The IIS LogFormat

#LogFormat = "date time cs-method cs-uri-stem cs-uri-query cs-username c-ip cs-version cs(User-Agent) cs(Referer) sc-status sc-bytes"

This looks like this in the header of the IIS Log

#Fields: date time cs-method cs-uri-stem cs-uri-query cs-username c-ip cs-version cs(User-Agent) cs(Referer) sc-status sc-bytes

And like this in the awstats.host.conf

#The AWStats Equivalant
LogFormat = "%time2 %method %url %query %logname %host %other %ua %referer %code %bytesd"






Comments