option log-facility not working inside chroot?

Daniel Feuchtinger Daniel.Feuchtinger at lrz.de
Thu Jun 28 14:13:32 UTC 2012


Solved the problem: in the file
/var/run/syslog-ng/additional-log-sockets.conf
the syslog source "chroots" is defined. That works:
log { source(chroots); filter(f_dhcpd-g1); destination(dhcpdg1); };

I still don't understand, why it works with no "log-facility" option
in a chroot, but that doesn't matter.

Best regards, Daniel



Am 28.06.2012 15:30, schrieb Daniel Feuchtinger:
> Hi all,
>
> I try to set up individual log files for some dhcpd processes.
> That's my syslog-ng filter for testing:
> filter f_dhcpd-q1   { facility(daemon) and level(emerg..debug); };
>
> Everything is working:
> - if I run dhcpd _not_ in a chroot with the option "log-facility daemon" and
> - if I run dhcpd in a chroot with no option "log-facility".
>
> But if I run dhcpd in a chroot with the option "log-facility daemon",
> logging is limited (start and stop message only)
>
> Isn't daemon the default log facility? It must be, because
> the syslog filter works without the log-facility option.
> Why changes something, if I set it, and why only in a chroot?
>
> Thanks for your help,
> Daniel
>


-- 
Daniel Feuchtinger
Leibniz-Rechenzentrum
Boltzmannstraße 1
D-85748 Garching b. München



More information about the dhcp-users mailing list