log files

Darin Perusich Darin.Perusich at cognigencorp.com
Mon Feb 16 11:40:05 EST 2004


you can also tell dhcpd what log-level to send it's message to. add 
"log-facility local7;" to /etc/dhcpd.conf in any section you'd like.

if you wanted to you could log message from different subnets to 
different levels by placing log-facility with different levels into 
subnet declarations.

Cyber Source wrote:
> Thanks Mark
> 
> Mark Musone wrote:
> 
>> You can change what log messages go where by editing the
>> /etc/syslog.conf file.
>>
>> If you look at the file, it's fairly self-explanatory and you usually
>> only need to uncomment a few lines that’s already there to change the
>> behavior of syslog.
>> Note, you need to stop and restart syslogd in order for the changes to
>> take effect..
>> (man syslog.conf)
>>
>>
>> The long answer of this is that applications use two different parts for
>> logging, one is a "facility" and the other is a "priority"
>>
>> A "facility" in syslog land is essentially just a category, and a
>> "priority" is exactly that, a piority.
>>
>>
>> The man page of the particular application will usually tell you what
>> facility and priority they log under..
>>
>> -Mark
>>
>>
>>
>> -----Original Message-----
>> From: owner-nflug at nflug.org [mailto:owner-nflug at nflug.org] On Behalf Of
>> Cyber Source
>> Sent: Monday, February 16, 2004 9:29 AM
>> To: nflug at nflug.org
>> Subject: log files
>>
>> Anyone know of an easy way to have certain services send there log 
>> messages to a different place. For instance, to send DHCP messages to 
>> a different file other than the standard /var/log/messages. Or for any 
>> other service like PPP. It would make reading the log files much better.
>>
>> ---
>> Incoming mail is certified Virus Free.
>> Checked by AVG anti-virus system (http://www.grisoft.com).
>> Version: 6.0.576 / Virus Database: 365 - Release Date: 1/30/2004
>>
>>
>> ---
>> Outgoing mail is certified Virus Free.
>> Checked by AVG anti-virus system (http://www.grisoft.com).
>> Version: 6.0.576 / Virus Database: 365 - Release Date: 1/30/2004
>>
>>
>>  
>>
> 
> 

-- 
Darin Perusich
Unix Systems Administrator
Cognigen Corp.
darinper at cognigencorp.com





More information about the nflug mailing list