I installed awstats 6.9 on win2k3 Standard Edition R2 SP2 a non web server by following this link http://www.ihsen.com/support/I…..OnIIS6.pdf . let call this server A
i would like to monitor a Win2k3 web server in DMZ zone. the internet web URL of this web server is http://www.abc.com . let call this server B
i copied one of the log file from this server B to server A. I ran “awstats.pl -config=abc.com -update”. Here is the output
Create/Update database for config “C:\\Inetpub\\wwwroot\\awstats\\cgi-bin/awstats.abc.com.conf” by AWStats version 6.9 (build 1.925) From data in log file “C:\\Logs\\ex090401.log “… Phase 1 : First bypass old records, searching new record… Searching new records from beginning of log file… Jumped lines in file: 0 Parsed lines in file: 6345 Found 6342 dropped records, Found 3 corrupted records, Found 0 old records, Found 0 new qualified records.
Then i launch IE and input on the address bar as follow
http://abc.com/cgi-bin/awstats.pl?config=abc.com inside server A but nothing appear..
1. Please paste here the line starting with #Fields: and a few other lines from your log file and the LogFormat you defined in the AWStats config file.
2. What error message do you get when you enter http://abc.com/cgi-bin/awstats.pl?config=abc.com in the address bar of Internet Explorer ?
In order to get the "real time update in the browser", set this option in the AWStats config file :
AllowToUpdateStatsFromBrowser=1
The PDF from Ihsen that you mentioned above explains how to install AWStats within IIS. Did you follow these instructions ? At what point in these instructions does a problem appear ? Please give more details.
You wrote that you managed to install AWStats on CentOS 5.2. After you made AWStats work on the system, you can make some changes to your setup as you specify in your points 1, 2 and 3. I do not understand what you mean with point 4 as there is no need to compile anything when adding a new config file.
The LogFile directive understands any path that is understood by your operating system, with the limitation that spaces are not allowed in the path. Not sure I understood your question though.
About which setup are you talking here : is it AWStats on Windows with the log file on Linux ?
The files on server B must have been mounted on server A. There is a Linux mount command that you can compare to smbmount that you use when combining Windows and Linux.
If the files on server B are not directly available (not mounted) in server A, you have to transfer them with FTP or with another file transfer program before you use them in AWStats.
good new..finally i managed to mount a window shared folder inside CentOS 5.2 and able to generate web statistic for month of April….there are web log files for month of march 09 but it didnt show on the graph…pls assist..
in the meantime,i will continue to figure out how to mount Linux folder inside CentOS 5.2.
Statistics have to be generated in chronological order, ie. the oldest month first, than the next month, and so on till the current month. As you already generated April, you need to move all files from the DirData directory to a temporary directory before you can generate the stats for March. When the March statistics have been calculated, you can restore the April data file in the DirData directory.
the web server logs from Win2k3 are from last year(oct) till this year
i followed ur steps but it didnt generated march.txt file..it generated back ex042009.txt
i changed the logfile location to ex%YY03%DD.log…it is able to generate march but not for feb ,jan and etc..
here is the output when i change to ex%YY02%DD.log
From data in log file "/mnt/log/W3SVC722622/ex090202.log"… Phase 1 : First bypass old records, searching new record… Direct access to last remembered record has fallen on another record. So searching new records from beginning of log file… Jumped lines in file: 0 Parsed lines in file: 34496 Found 1 dropped records, Found 3 corrupted records, Found 34492 old records, Found 0 new qualified records.
just to confirm that it is correct…for Apache,the log file is store at /var/log/httpd right?
As I wrote in the previous message, the updates must be done in chronological order, ie. the oldest month first, than the next month, and so on till the current month. You have to remove all files from the DirData directory and start with the October 2008 update, then November 2008,…
On April 2, 2009, ex%YY02%DD.log is the log file of February 2, 2009. You might want to use logresolvemerge.pl for previous months, as described in the AWStats Documentation – Other Utilities.
finally i managed to mount another Linux web server
under /var/log/httpd, there are a few log called access_log,access_log1,access_log2 till log4…now i'm using access_log for logfile but this file only contain log from 29th mar till today..
so if i want to generate data for other log files such as access_log2,i need to do as what you suggested in previous post?