I am tring to configure awstas with tomcat . Whenever i am trying to update the database i ma getting following error .
Â
     Create/Update database for config "/etc/awstats/awstats.tomcat.conf" by AWStats version 6.95 (build 1.943)
From data in log file "/var/log/Tomcat_log/localhost_access_log.2012-01-09.03.txt"…
Phase 1 : First bypass old records, searching new record…
Searching new records from beginning of log file…
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 /var/log/Tomcat_log/localhost_access_log.2012-01-09.03.txt 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):
94.76.209.6 [09/Jan/2012:03:23:54 +0000] [200 168 15] POST /win-smsgwweb/winmt HTTP/1.1
Setup ('/etc/awstats/awstats.tomcat.conf' file, web server or permissions) may be wrong.
Check config file, permissions and AWStats documentation (in 'docs' directory).
It seems that the LogFormat directive in your AWStats config file does not match the LogFormat directive of your web server. Please paste both directives here for further help.
   10.0.0.210 [09/Jan/2012:17:12:09 +0530] 304 – 0 GET /docs/images/printer.gif HTTP/1.1
Â
   server.xml – log format – <Valve className="org.apache.catalina.valves.AccessLogValve"
                  directory="logs" prefix="localhost_access_log." suffix=".txt"
                  fileDateFormat="yyyy-MM-dd.HH" pattern="%a %t %s %b %D %r" resolveHosts="false" />
Â
2) In awstats config file i use LogFormat=1
Â
     Might be for this reasome it is throughing the error . Could you please let me know the format i have to put in that config file
AWStats sections reporting browsers, operating systems, keywords and referers cannot work because of your log format. You can disable the robots detection in the AWStats config file with
So you had 111 new qualified records. Do you mean that these 111 hits are reported as "not viewed traffic" ? In a typical environment, you should have more "viewed traffic" than "not viewed traffic". After the first AWStats data update, the total should be close to the number of qualified records. How many hits do you find in the "HTTP Status Codes" section ?
When repeating tests on a new configuration, always start a new test with an empty DirData directory.
To get browsers, operating systems, keywords and referrers in the reports, you need to change the Tomcat log file format. You should use what Apache calls "combined log format". I do not know how you set this up in Tomcat.
Regarding the reporting about response times, AWStats is not very good at that. If you are not experienced with AWStats, don't try to use it for response time statistics (sorry, but I don't have any better honest answer).
The data in the sections about operating systems and user agents come all from the %ua field. It is weird that you get a correct user agent section and that the operating system section is not okay.
 Here I am pasting the Logfile and Logfile format . Please cross check once . I am getting all the details except Operating system . And All mozila browser requests ,  awsts shows that request came from Netscape Browser .
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; BTRS26718; GTB7.2)"
Â
If there are no double quotes around the user agent, the spaces that it contains must be replaced by + signs, otherwise AWStats has no way to know when the user agent field ends.