View previous topic :: View next topic |
Author |
Message |
GurliGebis Retired Dev
Joined: 08 Aug 2002 Posts: 509
|
Posted: Tue Oct 26, 2004 3:40 am Post subject: syslog-ng and DHCP |
|
|
Is there a way to get syslog-ng to log dhcpd things to /var/log/dhcpd.log ?
As far as I can see, there is no facility for dhcp (where do I find the facilities anyway?) _________________ Queen Rocks. |
|
Back to top |
|
|
hegga Apprentice
Joined: 04 Jun 2003 Posts: 210 Location: Norway
|
Posted: Tue Oct 26, 2004 10:03 am Post subject: |
|
|
can you post a couple of example log lines? _________________ hegga |
|
Back to top |
|
|
tuxmin l33t
Joined: 24 Apr 2004 Posts: 838 Location: Heidelberg
|
Posted: Tue Oct 26, 2004 10:03 am Post subject: |
|
|
You can configure syslog-ng to search for patterns and log matching lines in a certain file:
Example code:
Code: |
destination dhcpd_log { file("/var/log/dhcpd.log" owner("root") group("root") perm(0640)); };
filter dhcpd { match("dhcp"); };
log { source(src); filter(dhcpd); destination(dhcpd_log); };
|
Hth, Alex!!! _________________ ALT-F4 |
|
Back to top |
|
|
|