Filtering out unsuccessful requests
Brett Simpson
simpsonb at hillsboroughcounty.org
Thu Jan 13 16:22:47 CET 2005
On Wednesday 12 January 2005 11:07, Brett Simpson wrote:
> I'm trying to configure lire 2.0.1 to filter out unsuccessful requests. In
> the www_default.xml template I see a a filters section. Could I use the
> failure code, i.e. 404, in the url_match section?
I figured it out. I had to create the following...
In my xml template "Activity Reports" section...
<param name="filters">
<param name="www:exclude-http_result">
<param name="http_result_match">(404)</param>
<param name="id">exclude-http_result.0</param>
</param>
</param>
cat /usr/share/lire/filters/www/exclude-http_result.xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE lire:global-filter-spec PUBLIC
"-//LogReport.ORG//DTD Lire Report Specification Markup Language V1.0//EN"
"http://www.logreport.org/LRSML/1.0/lrsml.dtd">
<lire:global-filter-spec xmlns:lire="http://www.logreport.org/LRSML/"
superservice="www" id="exclude-http_result">
<lire:title>Exclude HTTP Result CODE Filter</lire:title>
<lire:description>
<para>This filter specification can be used to exclude requests
with particular result codes.
</para>
</lire:description>
<lire:param-spec>
<lire:param name="http_result_match" type="string" default="(404)">
<lire:description>
<para>This parameter contains the regular expression for filtering 404
result codes
</para>
</lire:description>
</lire:param>
</lire:param-spec>
<lire:display-spec>
<lire:title>excluded requests matching "$http_result_match"</lire:title>
</lire:display-spec>
<lire:filter-spec>
<lire:not>
<lire:match value="$http_result" re="$http_result_match"
case-sensitive="false"/>
</lire:not>
</lire:filter-spec>
</lire:global-filter-spec>
--
To UNSUBSCRIBE, email to questions-request at logreport.org with a subject of
"unsubscribe". Trouble? Send an email with subject "help" to
questions-request at logreport.org
More information about the Questions
mailing list