I'm trying to get awstats working with our Bluecoat webcaching devices. It should be straight forward, here is the #Fields from the log file;
#Fields: date time time-taken c-ip cs-username cs-auth-group x-exception-id sc-filter-result cs-categories cs(Referer) sc-s
tatus s-action cs-method rs(Content-Type) cs-uri-scheme cs-host cs-uri-port cs-uri-path cs-uri-query cs-uri-extension cs(Us
er-Agent) s-ip sc-bytes cs-bytes x-virus-id
I have tried the following in the Logformat entry in my config file
LogFormat = "%time2 %other %host %logname %other %other %other %otherquot %referer %code %other %method %other %other %virtualname %other %url %query %other %uaquot %host_r %bytesd %other %other"
and
LogFormat = "%time2 %time-taken %c-ip %cs-username %cs-auth-group %x-exception-id %sc-filter-result %cs-categories %cs(Referer) %sc-status %s-action %cs-method %rs(Content-Type) %cs-uri-scheme %cs-host %cs-uri-port %cs-uri-path %cs-uri-query %cs-uri-extension %cs(User-Agent) %s-ip %sc-bytes %cs-bytes %x-virus-id"
Neither of them work….
For case 1 above I get the following error;
Your AWStats LogFormat parameter is:
%time2 %other %host %logname %other %other %other %otherquot %referer %code %other %method %other %other %virtualname %other %url %query %other %uaquot %host_r %bytesd %other %other
This means each line in your web server log file need to have the following personalized log format:
%time2 %other %host %logname %other %other %other %otherquot %referer %code %other %method %other %other %virtualname %other %url %query %other %uaquot %host_r %bytesd %other %other
And this is an example of records AWStats found in your log file (the record number 50 in your log):
and for case 2 above I get this;
Error: Your personalized LogFormat does not include all fields required by AWStats (Add %methodurl or %url in your LogFormat string).
does anyone have any idea why I get this, I've checked and double checked the format and I am sure it is correct. I am using AWSTATS 6.9 on Debian
Steve