configure syslog prefix
Mike Hoskins (michoski)
michoski at cisco.com
Wed Jul 3 16:26:16 UTC 2013
-----Original Message-----
From: Shawn Bakhtiar <shashaness at hotmail.com>
Date: Wednesday, July 3, 2013 12:15 PM
To: "bind-users at isc.org" <bind-users at isc.org>
Subject: RE: configure syslog prefix
>hhhmmm....
>
>I have not run multiple binds on the same box, but according to the man
>pages for named.conf (assuming you have a different configuration file
>for each instance) setup each to report to a different logging facility
>ie:
>
>in named.conf:
>....
>
>logging {
> channel default_syslog {
> syslog local7;
> severity info;
> };
>
>...
>
>
>and in /etc/rsyslog.conf
>
># Save named messages firstnamedinstance.log
>local7.*
>/var/log/firstnamedinstance.log
>
>(If you have logrotate installed)....You may also want to add a file in
>/etc/logrotate.d with the following info:
>
>/var/log/firstnamedinstance.log {
> sharedscripts
> postrotate
> /bin/kill -HUP `cat /var/run/rsyslogd.pid 2> /dev/null` 2>
>/dev/null || true
> endscript
>}
Good call, and if you're running rsyslog go to rsyslog.conf/doc and read
about templates... You can rewrite anything to your heart's content with
a little effort.
More information about the bind-users
mailing list