Current User: Guest Login Register
Please consider registering


Register? | Lost Your Password?

Search Forums:


 






Minimum search word length is 3 characters – Maximum search word length is 84 characters
Wildcard Usage:
*  matches any number of characters    %  matches exactly one character

Install AWStats on Win2k3 non web server

Reply to Post Add a New Topic
UserPost

10:23 pm
March 31, 2009


ahtshun83

Member

posts 17

Hi all,

I need some assistance on AWStats.

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..

please kindly help me…am i missing any steps?? Smile

11:47 pm
March 31, 2009


Jean-Luc

Admin

posts 1063

Hi,

You are describing two problems:

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 ?

1:22 am
April 1, 2009


ahtshun83

Member

posts 17

finally i managed to generate some statistics from the server B log by following this link -> http://www.devx.com/webdev/Art…..deitemarea

i installed as a standalone..never install within IIS..

what i need now is to deploy AWStats within IIS …can view by typing the IIS address..i also need a real time update inside the browser..

can someone give me some hints where to begin…should i create a new web site under IIS or a virtual directory under IIS-default web site?

pls help..thank u!!

1:44 am
April 1, 2009


Jean-Luc

Admin

posts 1063

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.

2:35 am
April 1, 2009


ahtshun83

Member

posts 17

hi jean,

I will try again to install on IIS and seek ur assistance if need help

well,finally i managed to install AWStats on CentOS 5.2 and able to generate a test statistics ->http://www.esjeruk.org/?p=33

now i would like to use this server to monitor a web server which running on CentOS 5.2 as well..

correct me if i am wrong

1. change the Logfile location to the web server using smbmount

2. change the sitename

3. build a new conf file.

4. compile it

2:49 am
April 1, 2009


Jean-Luc

Admin

posts 1063

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.

3:18 am
April 1, 2009


ahtshun83

Member

posts 17

can u give me a hint how to point the logfile location to the web server?

IP of the webserver is 10.0.0.10/var/log/httpd/log…

thank you!!

3:41 am
April 1, 2009


Jean-Luc

Admin

posts 1063

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 ?

3:47 am
April 1, 2009


ahtshun83

Member

posts 17

i am referring to AWStats on CentOS 5.2(server A) to monitor another CentOS 5.2 web server(server B)

i need to know how do i point the logfile to the CentOS 5.2 web server(server B) from server A.

3:56 am
April 1, 2009


Jean-Luc

Admin

posts 1063

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.

5:05 am
April 1, 2009


ahtshun83

Member

posts 17

i use SSH to connect to server B for the log file…

what is the full path to input inside logfile location?

7:35 am
April 1, 2009


Jean-Luc

Admin

posts 1063

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.

10:32 pm
April 1, 2009


ahtshun83

Member

posts 17

hi jean,

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.

thank you!!

11:37 pm
April 1, 2009


Jean-Luc

Admin

posts 1063

Good to hear of progress being made !

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.

12:32 am
April 2, 2009


ahtshun83

Member

posts 17

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?

12:55 am
April 2, 2009


Jean-Luc

Admin

posts 1063

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.

1:59 am
April 2, 2009


ahtshun83

Member

posts 17

hi jean,

finally i managed to mount another Linux web server Smile

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?

can i put in this way?

logfile="/mnt/logs/access_log.1"

logfile="/mnt/logs/access_log.2"

logfile="/mnt/logs/access_log.3"

logfile="/mnt/logs/access_log.4"

logfile="/mnt/logs/access_log"

6:58 am
April 2, 2009


Jean-Luc

Admin

posts 1063

As you know, you have to begin with the oldest file. In many Apache configurations, access_log.4  is the oldest log archive.

Reply to Post

Reply to Topic:
Install AWStats on Win2k3 non web server

Guest Name (Required):

Guest Email (Required):

NOTE: New Posts are subject to administrator approval before being displayed

Smileys
Confused Cool Cry Embarassed Frown Kiss Laugh Smile Surprised Wink Yell
Post New Reply

Guest URL (required)

Math Required!
What is the sum of:
7 + 3
   


About the InternetOfficer.com Forum

Forum Timezone: UTC 1

Most Users Ever Online: 201

Currently Online:
13 Guests

Currently Browsing this Topic:
1 Guest

Forum Stats:

Groups: 2
Forums: 9
Topics: 513
Posts: 2447

Membership:

There are 4127 Members
There have been 254 Guests

There is 1 Admin
There is 1 Moderator

Top Posters:

cssfsu – 55
albert_newton – 30
deepakgupta – 28
cosminpana – 20
DTNMike – 19
ahtshun83 – 17

Recent New Members: eniko, leptserkhan, JohnnyB, dweb3d, buck, newtoawstat

Administrators: Jean-Luc (1063 Posts)

Moderators: Jean-Luc (1063 Posts)