View previous topic :: View next topic |
Author |
Message |
needforspeed -
Joined: 20 Oct 2003 Posts: 69 Location: Kansas
|
Posted: Fri May 21, 2004 6:57 am Post subject: question about information in the log file |
|
|
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 |
|
 |
nquin321 -
Joined: 29 Jan 2004 Posts: 296 Location: Right Behind You
|
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
|
Back to top |
|
 |
needforspeed -
Joined: 20 Oct 2003 Posts: 69 Location: Kansas
|
Posted: Fri May 21, 2004 5:43 pm Post subject: |
|
|
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 |
|
 |
mcwilliams132 -
Joined: 27 Jul 2003 Posts: 167 Location: Oshkosh, WI
|
Posted: Fri May 21, 2004 6:41 pm Post subject: |
|
|
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 |
|
 |
needforspeed -
Joined: 20 Oct 2003 Posts: 69 Location: Kansas
|
Posted: Fri May 21, 2004 6:46 pm Post subject: |
|
|
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 |
|
 |
Anonymoose -
Joined: 09 Sep 2003 Posts: 2192
|
Posted: Fri May 21, 2004 9:29 pm Post subject: |
|
|
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 |
|
 |
|