I'm having issue with my statistic setup below is the fields for date time etc.. The problem is that when i run the perl awstats.pl -config=x.com -update, it will run through but when i view the stats online it show 0 hit 0 visit etc.. i know we have alots of traffic because the log files are 15mb . Please help!
#Fields: date time cs-method cs-uri-stem cs-uri-query cs-username c-ip cs-version cs(User-Agent) cs(Referer) sc-status sc-bytes
C:\\Inetpub\\wwwroot\\AWStats\\cgi-bin>perl awstats.pl -config=x.com -update WARNING: LastLine parameter in history file is '20090601165415' so in future. Ma y be you need to correct manually the line LastLine in some awstats*.x.com .conf files. Create/Update database for config "./awstats.x.com.conf" by AWStats versio n 6.9 (build 1.925) From data in log file "D:/Inetpub/logs/W3SVC1/ex090601.log"… Phase 1 : First bypass old records, searching new record… Direct access after last parsed record (after line 39142) Jumped lines in file: 39142 Found 39142 already parsed records. Parsed lines in file: 81001 Found 0 dropped records, Found 0 corrupted records, Found 0 old records, Found 81001 new qualified records.
The message you get at the end of the update does not show any error, but the "LastLine in future" warning. This pointless warning can disturb the reports. I would remove it by commenting out lines 10174 to 10178 in awstats.pl (6.9).
Two more questions if this does not solve the problem :
Are you dynamically generating the reports (.pl) or are using static reports (.html) ?
Are the AWStats database files created in the DirData directory ?
the dirdata directory doesn't have any files at all i dont know why it wont create the files ? i dont know if it's dynamically or static? how do i check?
When I try to run an update with DirData pointing to a write-protected DirData directory, I get :
Error: Couldn't open file “/path_to/aws tats052009.mysite.tmp.12052″ for write: Permission denied
And when I try to run an update with DirData pointing to a directory that does not exist, I get :
Error: AWStats database directory defin ed in config file by 'DirData' paramete r (/path_to) does not exist or is not w ritable.
As AWStats first writes a temporary data file in DirData , it needs to read it back to generate the final data file. I do not see how it could be doing that without detecting when DirData does not exist or when it is write protected.
WARNING: LastLine parameter in history file is '20090601165415' so in future. (…) Direct access after last parsed record (after line 39142)
Then you wrote :
the dirdata directory doesn't have any files at all i dont know why it wont create the files ?
That does not make sense !
The date stamp of the LastLine parameter and the "last parsed record" mentioned in your first post have been read by AWStats in an existing data file in the DirData directory. Your statement that there is no file in the DirData directory cannot be true.
Maybe you or another application erased the AWStats files in the DirData directory or you looked in the wrong directory. Note that, in case there are several definitions of DirData in the AWStats config file, only the last one will apply.
Ran it again and it didn't give me the same error anymore but still is not updating.
C:\\Inetpub\\wwwroot\\AWStats\\cgi-bin>perl awstats.pl -config=x.com -update Create/Update database for config "./awstats.x.com.conf" by AWStats versio n 6.9 (build 1.925) From data in log file "D:/Inetpub/logs/W3SVC1/ex090607.log"… Phase 1 : First bypass old records, searching new record… Direct access after last parsed record (after line 7199) Jumped lines in file: 7199 Found 7199 already parsed records. Parsed lines in file: 46888 Found 0 dropped records, Found 0 corrupted records, Found 0 old records, Found 46888 new qualified records.
You now get “Found 7199 already parsed records“. AWStats found these 7199 already parsed records in its data files in DirData . Thus it is clear that the database has been updated.
What you describe could happen, if you do not use the same AWStats config file when updating and when calling AWStats from the browser. The address in the address bar of your browser should be like this :
http://…/awstats.pl?config=x.com
(assuming awstats.x.com.conf is the config file as in the update command).