Products
Webtrends Analytics 9.x
Webtrends Analytics 8.x
Issue
How do I capture standard or custom 400 and 500 return codes in SmartSource Data Collector log files?
Resolution
A web site includes standard or custom error pages but hits to the error pages count as successful page views, resulting in server error reports which display no content.
This solution applies to customers using the SmartSource Data Collector (SDC) as their logging server.
In the web server error page(s), in addition to the Webtrends JavaScript tag, add a line of code similar to the following:
<META name=”DCS.dcssta” content=”404″></META>
In this example, when a hit is received on the page in question, the Webtrends tag will send a hit to the data collection server with an override for the sc-status field, assigning it a value of “404”. For each custom error page, change the content parameter value to match the corresponding return code intended. After analysis of web logs containing these entries has completed, Webtrends’ default Errors reports will populate with data for the error pages.
For multi-homed domain web servers, create new error files for each web site, then tag each one with the appropriate dcsid notated SDC tag to ensure the errors for each site will be added to the SDC logs specific to the site in question.