Search squid archive

someone was asking about logging scripts,

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





I got curious and took a quick look at the log I have just for personal usage on this machine.
Really I'm not sure what you need much beyond one liners. For example, hit rate:

 more  /var/log/squid/access.log | awk '{print $4}' | sort | uniq -c | sort -g -r
   7873 TCP_MISS/200
   2376 TCP_REFRESH_HIT/304
   1150 TCP_HIT/200
    885 TCP_MISS/302
    772 TCP_IMS_HIT/304
    608 TCP_REFRESH_MISS/200
    243 TCP_MISS/301
    198 TCP_REFRESH_HIT/200
    194 TCP_MISS/204
    158 TCP_MEM_HIT/200
     96 TCP_MISS/404
     93 TCP_NEGATIVE_HIT/404
     88 TCP_NEGATIVE_HIT/403
     62 TCP_MISS/304
     40 TCP_MISS/403
     24 TCP_HIT/302
     20 TCP_NEGATIVE_HIT/204
      9 TCP_MISS/502
      8 TCP_MISS/503
      2 TCP_MISS/504
      1 TCP_MISS/500

general domain frequencies,
more  /var/log/squid/access.log | awk '{print $7}' | sed -e 's/http...//' | sed -e 's/\/.*//'  | sort | uniq -c | sort -g -r | more
   1005 ad.yieldmanager.com
    629 bl113w.blu113.mail.live.com
    627 blog.ostp.gov
    542 l.yimg.com
    444 supportforums.blackberry.com
    440 images.bloomberg.com
    428 bloomberg.com
    403 view.atdmt.com
    401 ad.doubleclick.net
    385 h.msn.com
    367 cdn.images.bloomberg.com
   
It is interesting that largest hit count is for ads LOL.


etc

I'm sure you can make up your own quite easily.



note new address
Mike Marchywka
1975 Village Round
Marietta GA 30064
415-264-8477 (w)<- use this
404-788-1216 (C)<- leave message
989-348-4796 (P)<- emergency only
marchywka@xxxxxxxxxxx
Note: If I am asking for free stuff, I normally use for hobby/non-profit
information but may use in investment forums, public and private.
Please indicate any concerns if applicable.



 		 	   		  
_________________________________________________________________
Hotmail: Trusted email with Microsoft’s powerful SPAM protection.
http://clk.atdmt.com/GBL/go/177141664/direct/01/

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux