Current User: Guest Login Register
Please consider registering


Register? | Lost Your Password?

Search Forums:


 






Wildcard Usage:
*    matches any number of characters
%    matches exactly one character

Unknown OS and Unknown browsers

Add a New Topic Reply to Post
UserPost

4:30 pm
March 24, 2008


cwei

Member

posts 4

I need help on Unknown OS and Unknown browsers.
I have following line in my apache Config:


LogFormat "%{X-Forwarded-For}i %h %l %u %t \\"%r\\" %>s %b \\"%{Host}i\\" \\"%{Referer}i\\" \\"%{User-agent}i\\"" combined

After I review my report, I found I have 85% Unknown OS and Unknown browsers. After I click the Unknown link, I got lots of “http://emportaluat1.lenscrafters.com/wps/wcm/connect/
f56e8a80478eb7e48bbd9f54bf84c3d3/broker_affordability.jpg?MOD=AJPERES”
under Unknown browsers (useragent field). I checked my log and I found that I do have the user agent filed.

10.80.57.17 10.80.0.24 – - [11/Mar/2008
:16:27:45 -0400] "GET /wps/themes/html/
EyeMed_Shared/images/btnSubmit.gif HTTP
/1.1" 304 – "emportaluat1.lenscrafters.
com" "http://emportaluat1.lenscrafters.
com/wps/portal/emweb" "Mozilla/5.0 (Win
dows; U; Windows NT 5.1; en-US; rv:1.8.
1.12) Gecko/20080201 Firefox/2.0.0.12"

10.80.57.17 10.80.0.24 – - [11/Mar/2008
:16:27:45 -0400] "GET /wps/wcm/connect/
6164e900478eb80d8ce69c54bf84c3d3/Vision
+Wellness+small.jpg?MOD=AJPERES HTTP/1.
1" 304 – "emportaluat1.lenscrafters.com
" "http://emportaluat1.lenscrafters.com
/wps/portal/emweb" "Mozilla/5.0 (Window
s; U; Windows NT 5.1; en-US; rv:1.8.1.1
2) Gecko/20080201 Firefox/2.0.0.12"


Looks like that it has problem to parse through the line which has “?MOD=AJPERES”…

Appreciated for any help!

cwei

2:53 am
March 25, 2008


Jean-Luc

Admin

posts 815

Hi,

The problem could come from the LogFormat and LogSeparator definitions used in your AWStats config file. Can you copy them here ?

12:33 pm
March 25, 2008


cwei

Member

posts 4

LogFormat=1

LogSeparator=" "

Thanks!

cwei

12:50 pm
March 25, 2008


Jean-Luc

Admin

posts 815

Try this:

LogFormat = "%other %host %other %logname %time1 %methodurl %code %bytesd %otherquot %refererquot %uaquot"

3:55 pm
March 27, 2008


cwei

Member

posts 4

Thanks for your help!

Now I see the OS and Broswer by using your LogFormat but lost my unique visitor which is "X-Forwarded-For" in my old LogFormat.

(LogFormat “%{X-Forwarded-For}i %h %l %u %t \\”%r\\” %>s %b \\”%{Host}i\\” \\”%{Referer}i\\” \\”%{User-agent}i\\”" )

How to combine your LogFormat and my LogFormat so that I can see the unique visitor and OS/Broswer as well.

Do
I have to match the LogFormat that I defined in Apache config? It's my
understand that LogFormat defined within apache config will determine
the log format of log file, the LogFormat that defined within AWStats
config will control how to parse the log file. Is this right?

Thanks again!

cwei

4:14 pm
March 27, 2008


Jean-Luc

Admin

posts 815

This one should be better:

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

Your descriptions of LogFormat in Apache config and in AWStats config are perfect.

7:34 am
April 1, 2008


cwei

Member

posts 4

This one is much better!!! Thanks!

After implement it, I am able to see both unique visitors and OS/Browser.

It really helps me a lot!

Thanks again!

cwei

Reply to Post

Reply to Topic:
Unknown OS and Unknown browsers

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:
3 + 11
   


About the InternetOfficer.com Forum

Most Users Ever Online: 65

Currently Online:
14 Guests

Forum Stats:

Groups: 2
Forums: 8
Topics: 375
Posts: 1849

Membership:

There are 193 Members
There have been 197 Guests

There is 1 Admin
There is 1 Moderator

Top Posters:

cssfsu – 48
albert_newton – 30
cosminpana – 20
DTNMike – 16
x-plicit2009 – 14
deepakgupta – 14

Recent New Members: stewiedv, kre8web, xlancealotx, Robert25, geemist

Administrators: Jean-Luc (815 Posts)

Moderators: Jean-Luc (815 Posts)