Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Syslog and LOCAL facilities
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
mikulus
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jun 2002
Posts: 77

PostPosted: Fri Feb 06, 2004 8:51 pm    Post subject: Syslog and LOCAL facilities Reply with quote

I have a generic question I am hoping someone can answer. What is the purpose of local0 through local7 facilities in syslog.conf file? I know that you can configure syslog to log local0 to a separate log file such as:
Code:
local0.*            /var/log/local0.log


My question is how do I assosiate particular service with a particullar facility? For example if I wanted to log all nightly backup job messages to local5, how is this done? Or, are all local* facilities already assigned to particular services? If, so where can I find information on which services it is associated with? I tred Googling but all info I could find is very generic and I couldn't find a satisfactory explanation.
_________________
"Two things are infinite - the universe and human stupidity. And I am not sure about the universe."
Back to top
View user's profile Send private message
grimm26
Guru
Guru


Joined: 23 May 2004
Posts: 313
Location: Chicagoland, IL

PostPosted: Mon Aug 09, 2004 9:24 pm    Post subject: Reply with quote

certain applications will let you specify the syslog facility that they log to (like ssh and named). Others are hard coded to what facility they use. If you have backup jobs that you have cron'd nightly, you can use the logger command to send log messages to any syslog facility that you please.
In addition, you can get even greater granularity by using something like syslog-ng with which you can filter logs based on just about anything.
_________________
"Blessed is he who finds happiness in his own foolishness, for he will always be happy".
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