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
}
So it will rotate the logs
> Date: Tue, 2 Jul 2013 13:49:35 +0200
> From: [email protected]
> To: [email protected]
> Subject: configure syslog prefix
>
> Hi!
>
> I have several bind instances running on the same host. All of them use
> the same logging prefix, e.g:
>
> named[11926]: zone mydomain/IN: Transfer started.
> named[11926]: transfer of 'mydomain/IN' from 2.3.4.5#53: connected using
> 2.3.4.5#44224
> named[13479]: client 2.3.4.5#44224: transfer of 'mydomain/IN':
> AXFR-style IXFR started: TSIG mydomain
> named[13479]: client 2.3.4.5#44224: transfer of 'mydomain/IN':
> AXFR-style IXFR ended
>
>
> So I only have the PID to separate the different bind processes.
>
> Some software allows to configure the syslog prefix, but I couldn't find
> that for bind.
>
> Is there a workaround to get something like that?
>
> named-incoming[11926]: zone mydomain/IN: Transfer started.
> named-incoming[11926]: transfer of 'mydomain/IN' from 2.3.4.5#53:
> connected using 2.3.4.5#44224
> named-outgoing[13479]: client 2.3.4.5#44224: transfer of 'mydomain/IN':
> AXFR-style IXFR started: TSIG mydomain
> named-outgoing[13479]: client 2.3.4.5#44224: transfer of 'mydomain/IN':
> AXFR-style IXFR ended
>
> Thanks
> Klaus
> _______________________________________________
> Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe
> from this list
>
> bind-users mailing list
> [email protected]
> https://lists.isc.org/mailman/listinfo/bind-users
_______________________________________________
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe
from this list
bind-users mailing list
[email protected]
https://lists.isc.org/mailman/listinfo/bind-users