Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
syslog-ng and DHCP
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
GurliGebis
Retired Dev
Retired Dev


Joined: 08 Aug 2002
Posts: 509

PostPosted: Tue Oct 26, 2004 3:40 am    Post subject: syslog-ng and DHCP Reply with quote

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
View user's profile Send private message
hegga
Apprentice
Apprentice


Joined: 04 Jun 2003
Posts: 210
Location: Norway

PostPosted: Tue Oct 26, 2004 10:03 am    Post subject: Reply with quote

can you post a couple of example log lines?
_________________
hegga
Back to top
View user's profile Send private message
tuxmin
l33t
l33t


Joined: 24 Apr 2004
Posts: 838
Location: Heidelberg

PostPosted: Tue Oct 26, 2004 10:03 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum