HTTP Error Drilldown Functionality


AWStats reports include an HTTP Status Codes section. It lists the number of errors for each error code. For the error 404, it lists the URL’s and the last referrers that caused the error. For the other errors, no details are available.

The extra section below lists the URL’s that return any error code of your choice. The number of error hits and the date and time of the last error are also reported.

You can add the Extra Section below at the end of your awstats.your-domain-name.conf configuration file.

New Report

AWStats, detailed error report
This AWStats screen has been simulated for better readability.

Extra Section

ExtraSectionName1="Internal Server Errors (500)"
ExtraSectionCodeFilter1="500"
ExtraSectionCondition1="URL,^.*$"
ExtraSectionFirstColumnTitle1="URL"
ExtraSectionFirstColumnValues1="URL,^(.*)$"
ExtraSectionFirstColumnFormat1="<A HREF='http://www.your_site.com%s' TARGET='_blank'>%s</A>"
ExtraSectionStatTypes1=HBL
ExtraSectionAddSumRow1=1
MaxNbOfExtra1=10
MinHitExtra1=1

The ExtraSectionCodeFilter1 and the ExtraSectionName1 can be replaced by any other error number and title.

Replace www.your_site.com by the address of your site.

MaxNbOfExtra1 is the number of lines that will be listed. Use the most convenient value.

Leave a Reply

You must be logged in to post a comment.