How to use specific log file rather than syslog?
Barry Margolin
barmar at bbnplanet.com
Thu Jan 27 23:40:38 UTC 2000
In article <20000127155003.COQU25012.mail.rdc1.il.home.com at mercury.snydernet.lan>,
Steve Snyder <swsnyder at home.com> wrote:
>I want to direct all BIND (v8.2.2P5) log entries to its own log file
>rather than to the system log.
>
>The description of the logging{} statement is pretty daunting. I'd
>rather not have to specify debug levels and create channels. All I
>want is that the log entries that are currently sent to the system log
>be sent instead to "/var/log/named.log".
>
>Can someone advise me on a simple way to redirect BIND's logging?
We put the following in named.conf:
channel syslog_info {
syslog local7; // send to syslog's local7 facility
severity info; // only send priority info and higher
};
channel syslog_notice {
syslog local7; // send to syslog's local7 facility
severity notice; // only send priority notice and higher
};
This causes named's log messages to be sent using facility code "local7",
rather than the default of "daemon". Then our syslog.conf contains:
local7.debug /var/log/named.log
--
Barry Margolin, barmar at bbnplanet.com
GTE Internetworking, Powered by BBN, Burlington, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.
More information about the bind-users
mailing list