I do the following:

zcat `find /logs/  -name "$1*.gz" -mtime -1` |grep " 404 " |sed 's/\"\([a-z][^
"]*\) \([^"][a-z]*\)\"/\"\1.\2\"/i' |cut -d " " -f 7,11|grep -v " 
\"-\""|uniq|sort|uniq >log.4
04
SED="s/^/http:\/\/www.$1/g"
cat log.404 |sed $SED |sed 's/ \"\(.*\)"/<br> <a href="\1">\1<\/a><p>/g' >> /apache/h
tdocs/stats/incl_www.$1.404s.html

Then I refine it lots, include it in pretty html, and call the script with the
name of the site I'm checking for... Rudimentary, but gets the job done without
needing to get a link checker to clog up the logs. :)

Ale

On Thu, 01 Jun 2000, you wrote:
>[EMAIL PROTECTED] wrote:
>
>> The Analog "failure report" shows a .gif file being called for that is
>> incorrectly spelled.
>> We would like to correct the error but don't know what page it's being
>> referenced from.
>> What would be a good way to tell what page(s) are referencing the incorrect gif 
>name?
>> thanks
>
>Look in your Failed Referrer report for local referrers.
>
>
>Jeremy Wadsack
>Wadsack-Allen Digital Group
>
>
>------------------------------------------------------------------------
>This is the analog-help mailing list. To unsubscribe from this
>mailing list, send mail to [EMAIL PROTECTED]
>with "unsubscribe" in the main BODY OF THE MESSAGE.
>List archived at http://www.mail-archive.com/[email protected]/
>------------------------------------------------------------------------
--
Alejandro Fernandez
Webmaster
Sift Group plc., 100 Victoria Street, BRISTOL, BS1 6HZ
tel:+44 117 915 9600  fax:+44 117 915 9630    http://www.sift.co.uk
------------ "Vertical B2B Communities"
------------------------------------------------------------------------
This is the analog-help mailing list. To unsubscribe from this
mailing list, send mail to [EMAIL PROTECTED]
with "unsubscribe" in the main BODY OF THE MESSAGE.
List archived at http://www.mail-archive.com/[email protected]/
------------------------------------------------------------------------

Reply via email to