1 |
Marco Calviani wrote: |
2 |
> i would like dhcpcd to leave logs in /var/log/dhcpcd.log |
3 |
> |
4 |
> How is it possible to implement this, noting that i'm using syslog-ng? |
5 |
|
6 |
You could try the following in my /etc/syslog-ng/syslog-ng.conf |
7 |
(assuming your log source is called "src"): |
8 |
|
9 |
destination dhcpd { file("/var/log/dhcpcd.log"); }; |
10 |
filter f_dhcpcd { program("dhcpcd"); }; |
11 |
log { source(src); filter(f_dhcpcd); destination(dhcpcd); }; |
12 |
|
13 |
HTH. |
14 |
-- Remy |
15 |
|
16 |
|
17 |
Remove underscore and suffix in reply address for a timely response. |
18 |
|
19 |
-- |
20 |
gentoo-user@g.o mailing list |