[squid-users] customize logformat to see header

From: zulkarnain <sizulku_at_yahoo.com>
Date: Tue, 18 Nov 2008 09:03:29 -0800 (PST)

Hi,

I'm trying to modify logformat to display header of this folowing websites. My purpose is to be able to use the correct pattern for refresh_pattern. Here are my rules

acl googlevideo url_regex -i googlevideo\.com
acl kaspersky url_regex -i kaspersky\.com
acl kaspersky-labs url_regex -i kaspersky-labs\.com
acl metacafe url_regex -i metacafe\.com
acl apple url_regex -i phobos\.apple\.com
acl pornhub url_regex -i pornhub\.com

logformat squid %ts.%03tu %6tr %>a %Ss/%03Hs %<st %rm %ru %un %Sh/%<A %mt
logformat analisa %{%H:%M:%S}tl %-13>a %-6<st %03Hs %-17Ss %-24mt %-6tr %ru *REQ* *C:%{Cache-Control}>h *P:%"{Pragma}>h *LMS:
%"{Last-Modified}>h *REP* *C:%"{Cache-Control}<h *P:%"{Pragma}<h *LMS:%"{Last-Modified}<h *Exp:%"{Expires}<h

access_log /var/log/squid/analisa.log analisa googlevideo kaspersky kaspersky-labs metacafe apple pornhub
access_log /var/log/squid/access.log squid

The rules above did not work. The file analisa.log is empty even after I accessed several websites above. Did I miss something? Any help would be greatly appreciated.

Rgds,
Zul

      
Received on Tue Nov 18 2008 - 17:03:38 MST

This archive was generated by hypermail 2.2.0 : Wed Nov 19 2008 - 12:00:04 MST