Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am some what new to access_log and just started monitoring it for one of my new sites. The questions I have, is when viewing via -f tail, this is the average output:

000.000.000.000 - - [22/Jun/2011:08:23:11 -0500] "GET /groups/ HTTP/1.1" 200 12526 "http://www.communr.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0.1) Gecko/20100101 Firefox/4.0.1"

I wanted to know if someone could explain what the different info means. I know most of it and know - means missing info.

My question is, why are there 2 user agents listed? What do they each mean? Mozilla/5.0 and Firefox/4.0.1.

share|improve this question

2 Answers 2

up vote 1 down vote accepted

Very simple answer : Firefox reports itself as that.

http://www.useragentstring.com/pages/Firefox/

share|improve this answer
    
Oh ok, thank you. –  ATLChris Jun 22 '11 at 14:08

User agent strings are a mess. Everything between the "'s is one user agent. It's up to individual bits of software to decide how they describe themselves and some of it is there for historical reasons. So basically, you only have 1 user agent string (one thing between the last pair of "'s), it's just that the string in question is made up of multiple components. As mfinni said, that's how Firefox reports itself. Other agents use similar structures.

The site linked by mfinni can be used to break the strings up and explain the bits.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.