awstats for extended log format
commandline.be
24 November 2018, 18:07
looking to have some stats i installed awstats, i chose to log in extended log format
for this i wrote a custom strings which i think/hope is mostly correct
LogFormat="%host %other %other %time1 %methodurl %code %bytesd %other %uaquot"
Obviously the three fields i set as other are up for improvement, i used the below as an example string.
188.165.208.29 - - [11/Nov/2018:07:52:57 +0100] "GET / HTTP/1.1" 301 1609 "-" "Mozilla/5.0 (X11; Linux i686) AppleWebKit/534.30 (KHTML, like Gecko) Ubuntu/10.10 Chromium/12.0.742.112 Chrome/12.0.742.112 Safari/534.30"
Advice is welcome
Hugo Leisink
24 November 2018, 20:55
The format is
client IP, username for HTTP authentication, timestamp, HTTP method, URI, HTTP version, HTTP return code, bytes sent, referer, user agent
commandline.be
5 December 2018, 21:43
Thanks
commandline.be
5 December 2018, 21:50
I'm not sure, should i read the - - after the IP as username or "username" or username ...?...
Old string was LogFormat="%host %other %other %time1 %methodurl %code %bytesd %other %uaquot"
The %time1 %methodurl %uaquot seem compatible with hiawatha extended logging
the updated string now reads
LogFormat="%host %logname %other %time1 %methodurl %code %bytesd %referer %uaquot"
but may need to read
LogFormat="%host %lognamequot %other %time1 %methodurl %code %bytesd %referer %uaquot"
commandline.be
5 December 2018, 21:51
or also
LogFormat="%host %logname %time1 %methodurl %code %bytesd %referer %uaquot"
LogFormat="%host %lognamequot %time1 %methodurl %code %bytesd %referer %uaquot"
Hugo Leisink
9 December 2018, 14:38
Yes, some fields do indeed have quotes around them.
This topic has been closed.