NAME

Apache::LogIgnore - mod_perl log handler to ignore connections

SYNOPSIS

in your httpd.conf file, put this in the mod_perl load block (if you have one)

<Location />

PerlLogHandler Apache::LogIgnore

PerlSetVar DebugFlag 1

#Turn Debugging on

PerlSetVar IgnoreHost 192.168.0.2

#Dont log connections from host

#Exact match

PerlSetVar IgnoreAgent Moz

#Dont log connections using agent

#Containing match, case insensitive

PerlSetVar IgnoreReferer 192.168.0.2

#Dont log connections referred by IP

#Containing match, case insensitive

PerlSetVar IgnoreFrom foo@bar.com

#Dont log connections from Agents with certain E-Mail addresses set

#Containing match, case insensitive

PerlSetVar IgnoreMinSize 100

#Dont log connections below 100 bytes

PerlSetVar IgnoreMaxSize 400000

#Dont log connections above 400000 bytes

PerlSetVar IgnoreType Image

#Dont log connections to certain mime-types

#Containing match, case insensitive

PerlSetVar IgnoreStatus 403

#Dont log status code

#Exact match

</Location>

DESCRIPTION

This mod_perl log handler can be used to ignore connections which match the criteria.

USING

Use the following settings in your apache config file.

IgnoreHost 192.168.0.1

This option disables the logging of requests from the specified host.

IgnoreAgent MSIE

This option disables the logging of requests with a specified browser. The matching is not exact, the provided keyword is used to match within the browser signature.

IgnoreReferer 192.168.0.2

This option disables the logging of requests referred by the specified host/pageowser. The matching is not exact, the provided keyword is used to match within the referrer. Some browsers (like Konqueror and Mozilla) don't send a referrer.

IgnoreFrom foo@bar.com

This option disables the logging of requests which send the specified E-Mail address as part of the From tag in the HTTP header.

IgnoreMinSize 100

This option disables the logging of requests which size is below a number of bytes.

IgnoreMaxSize 400000

This option disables the logging of requests which size is above a number of bytes.

IgnoreType Image

This option disables the logging of requests for certain mime types. The matching is not exact, the provided keyword is used to match within the mime type.

IgnoreStatus 403

This option disables the logging of requests resulting in a certain status code.

DebugFlag 1

Set this to true to get debug information in your error log.

EXPORT

None by default.

AUTHOR

Hendrik Van Belleghem <lt> beatnik - at - quickndirty - dot - org<t>

SEE ALSO