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

We have that nice/awesome Fogbugz tools that is running on our production server. The problem is that this server handles more than 400 domain names and more than 20 real websites.

The logs are already pretty heavy, and since we've installed Fogbugz, there's a very nice process called heartbeat that is called every 15 seconds!! Just imagine the size of our logs now... polluted with tons of lines like:

GET /fogbugz/heartbeat.asp HTTP/1.1" 302 223 "-" "FogBugz Maintenance Service 7.1"


We're running the latest Apache httpd server version. Is there any way to ignore just this specific request, and not to log it?

mod_log_config may be an option but I didn't find a good answer.

share|improve this question
up vote 4 down vote accepted

I've not tested this, but, if you set an environment variable you should be able to switch which file it logs to:

SetEnvIf Request_URI "/fogbugz/heartbeat\.asp$" is_heartbeat_request=1
CustomLog /var/log/httpd/heartbeat_log combined env=is_heartbeat_request
CustomLog /var/log/httpd/access_log combined env=!is_heartbeat_request
share|improve this answer
It did the trick thanks a lot! – Olivier Pons Dec 19 '10 at 11:41

I don't have time to dig up the configs I used to do something like this in the past, but my memory is that you can use the File directive to turn logging off for just one file. I think it would look something like this

<Directory /path/to/dir/holding/file>
  <Files heartbeat.asp>

It might be worth looking at the logging module to see if there's a command to turn off logging instead of logging to /dev/null...

share|improve this answer
Maybe this directive: "TransferLog /dev/null" ? ? – Olivier Pons Dec 17 '10 at 14:58

Look at this section from the link you provided. You can follow the log file name by a pipe and program name to receive the log requests before logging them. So, you can use grep -v heartbeat.asp to filter the matched requests

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.