2

I'd like to redirect all messages from dhcpd to their own log file, rather than having them appear in /var/log/messages.

Here is the configuration on /etc/syslog.conf:

!dhcpd
*.*                     /var/log/dhcpd.log

The messages are redirected to dhcpd.log, but they're also going to /var/log/messages.

What's the configuration to exclude them from /var/log/messages?

PatrikN
  • 155
Dave
  • 143

1 Answers1

3

`!-prog' specification will match any message but the ones from that program:

!-dhcpd
*.err;kern.*;auth.notice;authpriv.none;mail.crit         /dev/console
*.info;mail.none;authpriv.none       /var/log/messages
......

!dhcpd
*.*                     /var/log/dhcpd.log
alvosu
  • 8,595