Re: Squid Non-cacheable HTTP Object Reporting

From: Henrik Nordstrom <hno@dont-contact.us>
Date: 01 Aug 2003 15:17:35 +0200

fre 2003-08-01 klockan 06.50 skrev Atit Jariwla:
> Hello Squid Developers & Users,
> I am usnig squid 2.5 stable 2 on redhat linux 7.x. There are certain HTTP
> Tags that cause cache-engine not to cache the objects such as Cache-Control:
> not cacheable, Http Response with Vary headers
> I want to have reporting of such total no of objects and total no of bytes
> hourly, daily,monthly basis.
> Can any one give me idea of how to achieve it in Squid.
> What Data Structure i should refer to achieve it?

No coding required.

There is two possible approaches

a) log_mime_hdrs

b) Use of custom log formats (squid-3, or patch to squid-2.5) to log the
related headers only.

Then parse your access.log to extract the information you want to have.

-- 
Donations welcome if you consider my Free Squid support helpful.
https://www.paypal.com/xclick/business=hno%40squid-cache.org
Please consult the Squid FAQ and other available documentation before
asking Squid questions, and use the squid-users mailing-list when no
answer can be found. Private support questions is only answered
for a fee or as part of a commercial Squid support contract.
If you need commercial Squid support or cost effective Squid and
firewall appliances please refer to MARA Systems AB, Sweden
http://www.marasystems.com/, info@marasystems.com
Received on Fri Aug 01 2003 - 07:17:56 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:20:25 MST