peek.pl - look up URLs in Cache Digests
echo http://www.w3.org | dpeek.pl -duv reboot.wwwcache.ja.net 3128 dpeek.pl -h saved-digest < old-access-log zcat old-access-log.gz | dpeek.pl -v saved-digest
This program lets you look up URLs (the HTTP 'GET' method is assumed) in Cache Digests which are either fetched via HTTP or loaded from a file. The list of URLs should be supplied via STDIN, and can be in Squid log file format (the default), or simply a list of URLs (when the -u argument is supplied).
Debug mode - causes helpful debugging messages to be printed
Print the Digest header details out, e.g. version number and number of URLs in Digest, then exit.
Input is a list of URLs rather than Squid log file format.
Verbose mode - causes each URL being looked up to be printed to STDOUT, along with a hit/miss indicator.
Copyright (c) 1999, Martin Hamilton. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
It was developed by the JANET Web Cache Service, which is funded by the Joint Information Systems Committee (JISC) of the UK Higher Education Funding Councils.
Martin Hamilton <firstname.lastname@example.org>