Current User: Guest Login
Please consider registering


Lost Your Password?

Search Forums:


 






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

awstats log problem!pls help

Reply to Post Add a New Topic
UserPost

7:11 am
December 8, 2009


Cosmin Pana

Guest

Hello all,

 I have installed awstats on Solaris Unix. The version of awstats is 6.95.

  I have encountered a small problem maybe you can help me in solving it.

 When i'm trying to update Awstats statics from the browser i'm receiving this error. Also i have encountered this when i'm trying to update it  with the command:

awstats.pl -config=mysite -update

 Before i had another similar error but instead of the .png was a gif extension.

 I modified the Log format in awstats conf like this and after this modification i have received the error with the .png.

LogFormat=”%host %other %logname %time2 %methodurl %code %bytesd %other %other %other %other %other %refererquot”

 The Windchill and awstats are installed on a Solaris machine. I have deleted the access_log file from Apache and restarted it. The permissions for awstats.mysite.comf are set.

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   /d01/opt/ptc/Windchill_9.0/Apache/logs/access_log must have a bad format or LogFormat parameter setup does not match this format.

Your AWStats LogFormat parameter is: %host %other %logname %time2 %methodurl %code %bytesd %other %other %other %other %other %refererquot
This means each line in your web server log file need to have the following personalized log format:
%host %other %logname %time2 %methodurl %code %bytesd %other %other %other %other %other %refererquot

And this is an example of records AWStats found in your log file (the record number 50 in your log):
Setup ('/etc/awstats/awstats.first.ptc.com.conf' file, web server or permissions) may be wrong.
Check config file, permissions and AWStats documentation (in 'docs' directory).

132.253.120.68 – – [04/Dec/2009:05:34:3
1 -0500] “GET /d01/opt/ptc/Windchill_9.
0/awstats/wwwroot/icon/other/awstats_lo
go6.png HTTP/1.1″ 404 268 1021 404 268
1021

 Can I have your help on this?!

Thank you!

8:07 am
December 8, 2009


Jean-Luc

Admin

posts 1125

Hi,

The date and time are according to %time1 .

I am not sure about all these %other  fields at the end of your LogFormat. this does not exactly match your example, but this could be coming from a partially missed copy-and-paste.

7:58 am
December 9, 2009


Cosmin Pana

Guest

Hi Jean-Luc,

Thank you for your quick answer:

I have modified the time2 to time1.

LogFormat=”%host %other %logname %time1 %methodurl %code %bytesd %other %other % other %other %other %refererquot”

Still i'm having the same error!

And this is an example of records AWStats found in your log file (the record number 50 in your log):

132.253.120.68 – - [04/Dec/2009:05:34:3
1 -0500] "GET /d01/opt/ptc/Windchill_9.
0/awstats/wwwroot/icon/other/awstats_lo
go6.png HTTP/1.1"

Any new opinion?!

Thank you

Best regards,

Cosmin

8:16 am
December 9, 2009


Jean-Luc

Admin

posts 1125

The “record number 50″ you pasted here is not complete. Please double check and paste a complete record from your log file.

9:29 am
December 9, 2009


Cosmin Pana

Guest

Hi Jean-Luc,

 Here it is the line 50 from the access_log file of Apache

132.253.120.68 – – [04/Dec/2009:05:34:3
1 -0500] “GET /d01/opt/ptc/Windchill_9.
0/awstats/wwwroot/icon/other/awstats_lo
go6.png HTTP/1.1″ 404 268 1021

all the best,

Cosmin

9:30 am
December 9, 2009


Cosmin Pana

Guest

this site it's taking the last part of the line as us phone number. So 404 268 is part of that line log.

9:43 am
December 9, 2009


Jean-Luc

Admin

posts 1125

I am not sure if you mean that 1021 is the last field or if it is 268.

If the record was

132.253.120.68 – – [04/Dec/2009:05:34:3
1 -0500] "GET /d01/opt/ptc/Windchill_9.
0/awstats/wwwroot/icon/other/awstats_lo
go6.png HTTP/1.1" 404 268 1021

try :

LogFormat="%host %other %logname %time1 %methodurl %code %bytesd %other"

If the record was

132.253.120.68 – – [04/Dec/2009:05:34:3
1 -0500] "GET /d01/opt/ptc/Windchill_9.
0/awstats/wwwroot/icon/other/awstats_lo
go6.png HTTP/1.1" 404 268

try :

LogFormat="%host %other %logname %time1 %methodurl %code %bytesd"

2:33 am
December 10, 2009


Cosmin Pana

Guest

Hi Jean-Luc,

It seems that the first option was the solution. I have data and i will look more into it.

Thank you very much!

Also the AWstats Website logo it's not displayed on the page. I hope i don't have any other problems.

Again Thanks.

All the best,

Cosmin

2:45 am
December 10, 2009


cosminpana

Romania – Bucharest

Member

posts 20

Hi Jean-Luc,

i have a problem now with display of the icons on the page.

The  icons/images are not displayed for the menus and inside the pages.

Any opinion?!

Thank you.

Cosmin 

4:47 am
December 10, 2009


Jean-Luc

Admin

posts 1125

Hi Cosmin,

This is controlled by the path defined in DirIcons  in the AWStats config file. Note that the path here is the path in the web site (not the Linux path).

7:24 am
December 10, 2009


cosminpana

Romania – Bucharest

Member

posts 20

Hi Jean-Luc,

I have consulted the awstats help pdf manual, i have made some modifications but still without any effect.

This is the section from my awstats config file related to icon. Also the icon folder resides in /d01/opt/ptc/Windchill_9.0/awstats/wwwroot/icon. I tried to add directly this path.

# Relative or absolute web URL of your awstats icon directory.
# If you build static reports ("… -output > outputpath/output.html"), enter
# path of icon directory relative to the output directory 'outputpath'.
# Example: "/awstatsicons"
# Example: "../icon"
# Default: "/icon" (means you must copy icon directories in "/mywwwroot/icon")
#
DirIcons="/icon"

And below is the configuration from httpd.conf file of Apache:

#
# Directives to allow use of AWStats as a CGI
#
Alias /awstatsclasses "/d01/opt/ptc/Windchill_9.0/awstats/wwwroot/classes/"
Alias /awstatscss "/d01/opt/ptc/Windchill_9.0/awstats/wwwroot/css/"
Alias /icon "/d01/opt/ptc/Windchill_9.0/awstats/wwwroot/icon/"
Alias /traffic "/d01/opt/ptc/Windchill_9.0/awstats/reports"

Alias /awstatsicon "/d01/opt/ptc/Windchill_9.0/awstats/wwwroot/icon/"
Alias /pathtotools "/d01/opt/ptc/Windchill_9.0/awstats/tools/"

ScriptAlias /awstats/ "/d01/opt/ptc/Windchill_9.0/awstats/wwwroot/cgi-bin/"

#
# This is to permit URL access to scripts/files in AWStats directory.
#
<Directory "/d01/opt/ptc/Windchill_9.0/awstats/wwwroot">
    Options None
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

Thank you!

7:33 am
December 10, 2009


Jean-Luc

Admin

posts 1125

Right-click one of the icons in the report and select properties. This will show you where awstats.pl expects to find the icon according to your settings.

8:01 am
December 10, 2009


cosminpana

Romania – Bucharest

Member

posts 20

In the properties i have only the URL links, like below. This means that the icon folder should be set in the cgi-bin folder?

http://first.ptc.com/icon/other/awstats_logo6.png

http://first.ptc.com/icon/browser/unknown.png

http://first.ptc.com/icon/mime/notavailable.png

3:23 am
December 11, 2009


Jean-Luc

Admin

posts 1125

Alias /icon "/d01/opt/ptc/Windchill_9.0
/awstats/wwwroot/icon/"

seems okay. The URL's of the icons look good to me, but I cannot access them. Is this due to a firewall or other protections of your server ?

The icons must not be in the cgi-bin directory.

3:38 am
December 11, 2009


Jean-Luc

Admin

posts 1125

There might be an issue related to the use of the trailing slash. I would try

Alias /icon "/d01/opt/ptc/Windchill_9.0
/awstats/wwwroot/icon"

Not sure it will change anything though.

1:08 am
December 14, 2009


cosminpana

Romania – Bucharest

Member

posts 20

Hi Jean-Luc,

I have managed to solve the problem since Friday night before the end of my work hours. Sorry for the late response from me but i was out for the weekend.

It seems that a restart of the server did the job. I don't know why, but first i had restarted Apache and still the icons weren't there and after that i restarted the server for maintenance pourposes and it did the trick.

Thank you again.

Best regards,

Cosmin

Reply to Post

Reply to Topic:
awstats log problem!pls help

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:
6 + 9
   


About the InternetOfficer.com Forum

Forum Timezone: UTC 1

Most Users Ever Online: 302

Currently Online:
13 Guests

Currently Browsing this Topic:
1 Guest

Forum Stats:

Groups: 2
Forums: 9
Topics: 639
Posts: 2710

Membership:

There are 257 Members
There have been 304 Guests

There is 1 Admin
There is 1 Moderator

Top Posters:

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

Recent New Members: raju, todd2taylor, sbdcunha, mansigill1987, ThomasDuh, ThomasKic

Administrators: Jean-Luc (1125 Posts)

Moderators: Jean-Luc (1125 Posts)