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

I'm trying to understand this server log line from cache_access.log. What does each field represent, specifically why are there three IPs listed and what does each represent?

[HIT - - - -] 1.1.1.0, 1.1.1.2 (1.1.1.3) - - [25/Apr/2014:00:30:02 +0000]  "GET /page/content HTTP/1.1" 200 1721 "http://www.url.com/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.116 Safari/537.36"
share|improve this question
2  
This is the cache access log from which utility ? –  Iain May 7 '14 at 19:54
    
Varnish, maybe? It's probably the client IP, the cache server IP, and the app server IP. –  ceejayoz May 7 '14 at 19:54

1 Answer 1

From the date onwards it looks like a standard Apache combined format.

%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"

Can find what each field is here: http://httpd.apache.org/docs/current/mod/mod_log_config.html

Not sure what the cache fields at the beginning are.

share|improve this answer
    
How does %h have 3 different values in the example John has given? –  Evan May 8 '14 at 16:32

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.