Hi,
I'm using AWSTAT to process Apache logs and it works fine. Now, I need to process Tomcat logs. I have updated the log format to combined in server.xml and rebooted tomcat but still AWSTAT isn't able to process.
Quote:
AWStats did not find any valid log lines that match your LogFormat parameter, in the 50th first non commented lines read of your log.
Your log file /usr/local/awstats/logresolvemerge.pl /usr/local/apache/logs/tomcat_logs_* | must have a bad format or LogFormat parameter setup does not match this format.
Your AWStats LogFormat parameter is: 1
This means each line in your web server log file need to have "combined log format" like this:
111.22.33.44 - - [10/Jan/2001:02:14:14 +0200] "GET / HTTP/1.1" 200 1234 "http://www.fromserver.com/from.htm" "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)"
And this is an example of records AWStats found in your log file (the record number 50 in your log):
update users set user_id = 'ghost001', last_goodtry_date = '2011-10-31 05:10:05', curr_goodtry_date = '2011-10-31 05:10:05' where user_id ='ghost001'
|
Here's the part from server.xml which shows tomcat logs are in combined format
Quote:
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
prefix="localhost_access_log." suffix=".txt" pattern="combined" resolveHosts="false"/>
|