We help IT Professionals succeed at work.

preventing a request from logging (or just drop the connection).

HolySpirit
HolySpirit asked
on
Medium Priority
197 Views
Last Modified: 2010-03-04
recently my log file is filled w/ those requests come from code red and some other dirty requests, is there any ways to prevent logging (or dropping the connection) of specific requests ?
Comment
Watch Question

I think that you can stop them by follwing: -

TransferLog /dev/null


CERTIFIED EXPERT
Commented:
hmm, this trashes all logs, even the good ones.
Also TransferLog is for the access logs, while ErrorLog is for error logs.
AFAIK you can pipe these messages to your own program like:

   ErrorLog "|/path/to/prog-to-filter-CodeRed"

where /path/to/prog-to-filter-CodeRed is the programm which trashes messages caused by CodeRed and alike, while all others are send to your log-file. Keep in mind that you need to make this filter multi-process-capable.

CERTIFIED EXPERT

Commented:
No comment has been added lately, so it's time to clean up this TA.

I will leave a recommendation in the Cleanup topic area with the following recommendation for this question:

Answered by ahoffmann

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

periwinkle
EE Cleanup Volunteer

Explore More ContentExplore courses, solutions, and other research materials related to this topic.