How can I setup chrooted DHCPD with Syslog-NG ?
John Hascall
john at iastate.edu
Fri Jul 13 15:08:28 UTC 2007
What Operating System?
On the system we're using (NetBSD) the syslog command
has options (-p and/or -P) to cause syslog to use
additional sockets. For example:
/usr/sbin/syslogd -s -p /var/run/log -p /var/chroot/dhcpd/var/run/log
Check your man pages, you may have similar options.
John
> Hello,
>
> To check my issue with lease I need to setup my sylog-ng.
> My DhcpD is chrooted to /var/lib/dhcp3
>
> I've test with the conf below but unfortunately doesn't works ...
>
> any tips ?
>
>
> --- dhcpd.conf ---
>
> ...
> log-facility local7;
> ...
>
> --- syslog-ng.cobf ---
> source s_chrooted_dhcpd {
> unix-stream("/var/lib/dhcp3/dev/log");
> };
>
> filter f_local7 {
> facility(local7);
> };
>
> destination d_local7 {
> file("/var/log/dhcpd.log");
> };
>
> log {
> source(s_chrooted_dhcpd);
> filter(f_local7);
> destination(d_local7);
> };
>
>
More information about the dhcp-users
mailing list