Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I want to prevent all those 408's from showing up in one of my log files. Is there a way to prevent this? I found the syntax for limiting the printing of any particular format string, but not the entire log entry.

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Check out conditional logging in apache. I am not sure it will work here unless you can filter on the URI.

http://httpd.apache.org/docs/current/logs.htm

Search for Conditional Logging.

Otherwise, look into piped logging. You can pipe your logs into a filter (grep -v " 408 ") before dumping it into a file.

May want to check on any performance hit.

http://httpd.apache.org/docs/2.4/logs.html#piped

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.