LOGPARSER #17: Get your broken links


This script will give you site/page refers to your content though your content has moved.

SELECT
    DISTINCT cs(Referer) as Referer,
    cs-uri-stem as Url
INTO
    ReferBrokenLinks.txt
FROM
    logs\iis\ex*.log
WHERE
    cs(Referer) IS NOT NULL AND sc-status=404 AND (sc-substatus IS NULL OR sc-substatus=0)

//Anders

Skip to main content