The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]
FreeBSD Support
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Newer Topic  |  Older Topic 
 manage DHCLIENT log
Author: Shupez 
Date:   05-12-02 13:31

Hi,

I have an xDSL modem at home with DHCP from my ISP.
I want to put the info from DHCLIENT in a separate logfile (like dhclient.log in /var/log/ ) but in SYSLOG.CONF i cant get it to work.. what should I type there ?

The reason...Every 9th minute I get a broadcast from DHCLIENT in /VAR/LOG/messages... kind of annoying.

Iīve tried something like this in "syslog.conf" but then it didnīt put a single log in "/var/log/messages"


#!dhclient.* /var/log/dhclient

Help please !

/shupez

Reply To This Message
 
 Re: manage DHCLIENT log
Author: .daniel.schrock 
Date:   05-12-02 16:34

you need to fnd out what which log facility and priority it is using, then adjust your syslog.conf to fileter them out.

here is an example, using dhcpd. Dhcpd logs to facility local7 for all prioritys. i want this to go to /var/log/dhcpd.log, not var/log/messages. the syslog.conf to do this would be:

*.notice;auth.*;<b>local7.none</b> /var/log/messages

[..skip..]

# dhcpd logs to its own log
<b>local7.*</b> /var/log/dhcpd.log


/var/log/messages gets a lot of crap that should be filtered out and put somewhere else.
to find out the facilities of other apps, give run syslogd with '-vv' flag. This will print the facility and priority on the line. It helps greatly when trying to organize your logs.

Reply To This Message
 Forum List  |  Threaded View   Newer Topic  |  Older Topic 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum

phorum.org