Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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.

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.

share|improve this answer

Your Answer


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.