LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-26-2011, 07:00 AM   #1
parashuram2011
LQ Newbie
 
Registered: Mar 2011
Posts: 11

Rep: Reputation: 0
squid cache


Hello all.

I am running squid on local host. access.log has following data logged into it.

----------
1314343099.283 661 192.168.0.1 TCP_MISS/302 354 GET http://www.linuxquestions.org/questions/search.php - DIRECT/75.126.162.205 text/html
1314343101.383 2090 192.168.0.1 TCP_MISS/200 13292 GET http://www.linuxquestions.org/questions/search.php? - DIRECT/75.126.162.205 text/html
1314343102.133 1871 192.168.0.1 TCP_MISS/200 7484 GET http://d1.openx.org/spc.php? - DIRECT/173.241.250.2 application/x-javascript
1314343102.373 2120 192.168.0.1 TCP_MISS/200 199 GET http://account.thequestionsnetwork.org/? - DIRECT/75.126.162.205 text/html
1314343103.223 621 192.168.0.1 TCP_MISS/200 414 GET http://www.google-analytics.com/__utm.gif? - DIRECT/74.125.236.42 image/gif
1314343103.493 781 192.168.0.1 TCP_MISS/200 506 GET http://d1.openx.org/lg.php? - DIRECT/173.241.250.2 image/gif
1314343103.703 931 192.168.0.1 TCP_MISS/200 506 GET http://d1.openx.org/lg.php? - DIRECT/173.241.250.2 image/gif
1314343103.713 500 192.168.0.1 TCP_MISS/200 506 GET http://d1.openx.org/lg.php? - DIRECT/173.241.250.2 image/gif
1314343103.823 600 192.168.0.1 TCP_MISS/200 2630 GET http://googleads.g.doubleclick.net/pagead/ads? - DIRECT/74.125.236.58 text/html
1314343103.873 650 192.168.0.1 TCP_MISS/200 2470 GET http://googleads.g.doubleclick.net/pagead/ads? - DIRECT/74.125.236.58 text/html
1314343103.893 670 192.168.0.1 TCP_MISS/200 2465 GET http://googleads.g.doubleclick.net/pagead/ads? - DIRECT/74.125.236.58 text/html
1314343244.245 0 192.168.0.1 TCP_DENIED/403 3598 CONNECT aus2.mozilla.org:443 - NONE/- text/html
1314343596.791 210 192.168.0.1 TCP_MISS/200 944 POST http://safebrowsing.clients.google.c...ing/downloads? - DIRECT/74.125.236.33 application/vnd.google.safebrowsing-update
1314343844.334 10 192.168.0.1 TCP_DENIED/403 3604 CONNECT addons.mozilla.org:443 - NONE/- text/html
1314343844.744 0 192.168.0.1 TCP_DENIED/403 3643 CONNECT versioncheck.addons.mozilla.org:443 - NONE/- text/html
1314345354.277 160 192.168.0.1 TCP_MISS/200 953 POST http://safebrowsing.clients.google.c...ing/downloads? - DIRECT/74.125.236.47 application/vnd.google.safebrowsing-update
1314346703.478 2280 192.168.0.1 TCP_MISS/200 569 POST http://www.linuxquestions.org/questions/ajax.php - DIRECT/75.126.162.205 text/xml
1314347098.934 1520 192.168.0.1 TCP_MISS/200 1097 POST http://safebrowsing.clients.google.c...ing/downloads? - DIRECT/74.125.236.41 application/vnd.google.safebrowsing-update
1314348187.050 221 192.168.0.1 TCP_MISS/200 15875 GET http://www.google.co.in/webhp? - DIRECT/74.125.236.48 text/html
1314349322.367 0 127.0.0.1 TCP_MISS/200 1654 GET cache_object://localhost/ipcache - NONE/- text/plain
1314350602.076 7761 127.0.0.1 TCP_MISS/200 1448 GET http://www.squid-cache.com/ - DIRECT/69.43.160.159 text/html
1314350662.497 701 127.0.0.1 TCP_MISS/200 1448 GET http://www.squid-cache.com/ - DIRECT/69.43.160.159 text/html
1314351156.455 2390 192.168.0.1 TCP_MISS/200 10218 GET http://www.facebook.com/ - DIRECT/69.171.229.14 text/html
1314351195.125 681 192.168.0.1 TCP_MISS/200 10211 GET http://www.facebook.com/ - DIRECT/69.171.229.14 text/html
1314351230.676 0 192.168.0.1 TCP_DENIED/403 3595 CONNECT mail.google.com:443 - NONE/- text/html
1314351231.316 0 192.168.0.1 TCP_DENIED/403 3595 CONNECT mail.google.com:443 - NONE/- text/html
1314351237.286 1190 192.168.0.1 TCP_MISS/302 543 GET http://www.google.com/ - DIRECT/74.125.236.49 text/html
1314351238.896 1600 192.168.0.1 TCP_MISS/200 15856 GET http://www.google.co.in/ - DIRECT/74.125.236.50 text/html
1314351260.956 0 192.168.0.1 TCP_DENIED/403 3595 CONNECT mail.google.com:443 - NONE/- text/html
1314351260.976 0 192.168.0.1 TCP_DENIED/403 3595 CONNECT mail.google.com:443 - NONE/- text/html
1314351271.966 620 192.168.0.1 TCP_MISS/503 4109 GET http://www.google.ocm/ - DIRECT/www.google.ocm text/html
1314351277.897 10 192.168.0.1 TCP_MISS/503 4142 GET http://www.google.ocm/favicon.ico - DIRECT/www.google.ocm text/html
1314351280.617 1320 192.168.0.1 TCP_MISS/302 543 GET http://www.google.com/ - DIRECT/74.125.236.51 text/html
1314351281.607 981 192.168.0.1 TCP_MISS/200 15851 GET http://www.google.co.in/ - DIRECT/74.125.236.52 text/html
1314351320.337 0 192.168.0.1 TCP_DENIED/403 3595 CONNECT mail.google.com:443 - NONE/- text/html
1314351320.357 0 192.168.0.1 TCP_DENIED/403 3595 CONNECT mail.google.com:443 - NONE/- text/html
1314351326.017 161 192.168.0.1 TCP_MISS/302 543 GET http://www.google.com/ - DIRECT/74.125.236.49 text/html
1314351326.367 340 192.168.0.1 TCP_MISS/200 15852 GET http://www.google.co.in/ - DIRECT/74.125.236.50 text/html
1314351367.508 0 192.168.0.1 TCP_DENIED/403 3595 CONNECT mail.google.com:443 - NONE/- text/html
1314351439.009 0 192.168.0.1 TCP_DENIED/403 3595 CONNECT mail.google.com:443 - NONE/- text/html
1314351439.029 0 192.168.0.1 TCP_DENIED/403 3595 CONNECT mail.google.com:443 - NONE/- text/html
1314351446.169 851 127.0.0.1 TCP_MISS/200 1448 GET http://www.squid-cache.com/ - DIRECT/69.43.160.159 text/html
1314351457.599 791 127.0.0.1 TCP_MISS/200 1448 GET http://www.squid-cache.com/ - DIRECT/69.43.160.159 text/html
1314352201.050 1961 127.0.0.1 TCP_MISS/200 1448 GET http://www.squid-cache.com/ - DIRECT/69.43.160.159 text/html
1314352209.701 991 127.0.0.1 TCP_MISS/200 1448 GET http://www.squid-cache.com/ - DIRECT/69.43.160.159 text/html
1314353472.530 1591 127.0.0.1 TCP_MISS/200 1448 GET http://www.squid-cache.com/ - DIRECT/69.43.160.159 text/html
1314353477.560 560 127.0.0.1 TCP_MISS/200 1448 GET http://www.squid-cache.com/ - DIRECT/69.43.160.159 text/html
1314355846.255 1561 192.168.0.1 TCP_MISS/200 15852 GET http://www.google.co.in/ - DIRECT/74.125.236.50 text/html
1314355933.227 271 192.168.0.1 TCP_MISS/302 543 GET http://www.google.com/ - DIRECT/74.125.236.48 text/html

Can anyone tell whether response is from cache or origin server??? and how to check cached objects??

Thanks
 
Old 08-26-2011, 07:58 AM   #2
tpe
Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Suse Linux
Posts: 98

Rep: Reputation: 16
What exactly do you want to know? I suppose that you talk about the TCP_MISS/XXX and TCP_DENIED, right?
If yes, it is from squid.
 
Old 08-26-2011, 09:55 AM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,936

Rep: Reputation: 8017Reputation: 8017Reputation: 8017Reputation: 8017Reputation: 8017Reputation: 8017Reputation: 8017Reputation: 8017Reputation: 8017Reputation: 8017Reputation: 8017
Quote:
Originally Posted by parashuram2011 View Post
Hello all.
I am running squid on local host. access.log has following data logged into it.

Can anyone tell whether response is from cache or origin server??? and how to check cached objects??
Thanks
Essentially the same question posted in TWO OTHER PLACES. Don't triple-post the same question. And did you try to look this up??? From the Squid documentation:
http://wiki.squid-cache.org/SquidFaq/SquidLogs
http://wiki.squid-cache.org/SquidFaq/InnerWorkings

Those should explain what you're looking for. And again, if you tried to look, you'd also find many Squid log analysis tools, like Sarg, which may also help you. They're also listed on the Squid website.
 
1 members found this post helpful.
Old 08-28-2011, 11:27 PM   #4
parashuram2011
LQ Newbie
 
Registered: Mar 2011
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by tpe View Post
What exactly do you want to know? I suppose that you talk about the TCP_MISS/XXX and TCP_DENIED, right?
If yes, it is from squid.
Yes thats what exactly I want to know..
Exact meaning of TCP_MISS..

Thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
squid cache amartlk Linux - Newbie 2 09-27-2010 06:44 AM
squid cache qwertyjjj Linux - Software 3 08-14-2009 08:09 PM
Using Active directory Authentication of parent non-squid cache to child squid cache espiya7 Linux - Server 0 05-05-2009 08:04 AM
squid cache JJX Linux - Server 2 07-01-2007 10:12 AM
Squid Cache I think it is AJones Linux - Security 1 07-03-2005 06:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration