Apache::LogIgnore - mod_perl log handler to ignore connections
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
PerlSetVar IgnoreFrom foo@bar.com
#Dont log connections from Agents with certain E-Mail addresses set
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
PerlSetVar IgnoreStatus 403
#Dont log status code
</Location>
This mod_perl log handler can be used to ignore connections which match the criteria.
Use the following settings in your apache config file.
This option disables the logging of requests from the specified host.
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.
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.
This option disables the logging of requests which send the specified E-Mail address as part of the From tag in the HTTP header.
This option disables the logging of requests which size is below a number of bytes.
This option disables the logging of requests which size is above a number of bytes.
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.
This option disables the logging of requests resulting in a certain status code.
Set this to true to get debug information in your error log.
You can negate all of the above values with a ! (except DebugFlag).
Example would be :
IgnoreStatus !200
Don't log any request beside the ones resulting in a 200 status.
None by default.
This is Apache::LogIgnore 0.03.
Hendrik Van Belleghem <lt> beatnik - at - quickndirty - dot - org<t>
To install Apache::LogIgnore, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Apache::LogIgnore
CPAN shell
perl -MCPAN -e shell install Apache::LogIgnore
For more information on module installation, please visit the detailed CPAN module installation guide.