I've installed AWstats, but it wont read my weblogs.
My weblogs are in this format:
195.1.1.1 - - 2006/11/28 00:00:00 JST "GET / HTTP/1.0" 200 3650 "Apache=195.1.1.1.581961164639572527" "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)"
AWstats will not recognise this because the date format doesnt match $time1, $time2, $time3 or $time4. I am currently trying this logformat:
LogFormat="%host %other %other %time2 %methodurl %code %bytesd %other %refererquot %uaquot"
Can you make your own $time format? I need "yyyy/mm/dd hh:mm:ss" instead of $time2 as you can see.
(Also I dont understand which logformat config variable the "Apache=195.1.1.1.581961164639572527" part belongs to).
AWstats install - Logformat problem
Moderator: General Moderators
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
time2 is YYYY/MM/DD HH:MM:SS
The Apache= bit is the last %other you have in the format string posted.
The actual log format is "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\""
You can use custom time formats... see here: http://httpd.apache.org/docs/2.0/mod/mo ... ml#formats
The Apache= bit is the last %other you have in the format string posted.
The actual log format is "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\""
You can use custom time formats... see here: http://httpd.apache.org/docs/2.0/mod/mo ... ml#formats
Sorry, yes I did read that but it seems to be for changing the httpd.conf of apache. I dont have access to httpd.conf, I only have access to the web logs. If I had access to httpd.conf Id just set it to the 'common' format that matches LogFormat 1 in awstats config.
So I need to configure awstats to read the weird date format used on web logs of this apache install.
So I need to configure awstats to read the weird date format used on web logs of this apache install.