Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

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 am currently logging all haproxy information to local0 and loca1 facilities (depending on message level).

At the moment, logging gets properly routed to the haproxy logs 'err.log' and 'general.log', but duplicate entries also get placed in /var/log/messages

I want to turn off local0.* and local1.* messages to the /var/log/messages file, but I want to make sure no other service uses these facilities.

Is there a way find out which services use a specific facility on RHEL 5?

share|improve this question

As long as you don`t see log entries there is no way to potentially know that. There is no syslog-register or something like that.

But to achieve your goal you can fine-tune syslog by:

  1. Installing rsyslog
  2. Removing the old syslog (and don`t forget to put rsyslog into the runlevels)

The installed rsyslog-configuration file will do exactly the same at the beginning as a default syslog-configuration. BUT: You can fine-tune it - e.g. write messages sent by program X via syslog-facility Y to file Z - next rule: dont`t write these messages anywhere else.

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.