question about information in the log file

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
needforspeed
-


Joined: 20 Oct 2003
Posts: 69
Location: Kansas

PostPosted: Fri May 21, 2004 6:57 am    Post subject: question about information in the log file Reply with quote

in my log file, where it reports the software the client claims to be using, it says:

Mozilla/4.0 (compatible; MSIE 6.0;...

or maybe this:
Mozilla/5.0 (X11; U; Linux i6...

I can't fine a site that explains the differences very well. Does anybody know if the first one actually means Internet Explorer?

That's what it says when I access my site using IE, and the second is what it says when I use my laptop with Firefox.

What I want is a way to distinguish what browser the client is using. I'm writing a program that runs at regular time intervals and will display on my desktop the IP, date/time, file accessed, referrer, browser, and OS of the last person that went to my site. The other info in the logs I'm not worring about, right now anyway. So if it says MSIE 6.0, I'm going to have it display "Internet Explorer" instead of Mozilla/4.0 because just about every entry has something with Mozilla.
_________________
My site and forums
Back to top View user's profile Send private message Visit poster's website MSN Messenger
nquin321
-


Joined: 29 Jan 2004
Posts: 296
Location: Right Behind You

PostPosted: Fri May 21, 2004 1:28 pm    Post subject: Reply with quote

Microsoft Internet Explorer -- Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.0.3705)

Mozilla/Netscape -- 5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113

IE will have MSIE in the useragent and Mozilla/Netscape will usually have gecko.
Opera can pretend to be IE but it will always have Opera in the user agent.

Edit-- mozilla had other user agents in its past :
http://www.mozilla.org/build/user-agent-strings.html

the user agents it uses now is:
http://www.mozilla.org/build/revised-user-agent-strings.html
_________________
How many forum members does it takes to change a light bulb?
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Fri May 21, 2004 2:58 pm    Post subject: Re: question about information in the log file Reply with quote

needforspeed,

http://www.psychedelix.com/agents.html lists almost all the known user agents.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
needforspeed
-


Joined: 20 Oct 2003
Posts: 69
Location: Kansas

PostPosted: Fri May 21, 2004 5:43 pm    Post subject: Reply with quote

ok, thanks folks, I was searching for the wrong terms, should have looked for "user agents"

I'm having a lot of trouble figuring out the logic I need at this part of the program. I'm going to have to try a different implementation for reading the file because they user agent part of the log appears to be able to have several words in it, or maybe not many at all, or somewhere inbetween, not anything consistent which would be a lot easier.
_________________
My site and forums
Back to top View user's profile Send private message Visit poster's website MSN Messenger
mcwilliams132
-


Joined: 27 Jul 2003
Posts: 167
Location: Oshkosh, WI

PostPosted: Fri May 21, 2004 6:41 pm    Post subject: Reply with quote

If you want to analyze your log file...get FUNNEL WEB ANALYZER...just do a google search...

it's free, powerful weblog analizer.

You'll get a TON of information about your visitors, browsers, where their from, where they went on your site, how many hits, visits, etc...
_________________
::::::::::::::::::::::::::::::::::::::::::::::::::
:: Jon-Paul LeClair
:: http://mcwilliamsworld.com
:: "Lobster sticks to magnet!"
Back to top View user's profile Send private message Visit poster's website
needforspeed
-


Joined: 20 Oct 2003
Posts: 69
Location: Kansas

PostPosted: Fri May 21, 2004 6:46 pm    Post subject: Reply with quote

I've already got a log analyzer, but I've never heard of the one you mentioned. I might check it out. But my program isn't an analyzer, it's just going to tell me the info for the last file that was accessed, without having to open the huge log files. I have an app that prints info to my desktop, like processor usage, system temps, etc, and it can also execute programs at specified time intervals, and print their output on the desktop.
_________________
My site and forums
Back to top View user's profile Send private message Visit poster's website MSN Messenger
Anonymoose
-


Joined: 09 Sep 2003
Posts: 2192

PostPosted: Fri May 21, 2004 9:29 pm    Post subject: Reply with quote

You want the whole last line to be shown, or just the file that was accessed and no other info ? (IP, user agent etc)

If you want the whole line, use Tail. If you want parts of the line, use Tail combined with Awk...
Back to top View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group