System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

syslog.conf facility customization

Pedro Cirne
Esteemed Contributor

syslog.conf facility customization

Hi,

Is there a way to configure aditional 'facility'is syslog.conf or it's only possible to use the 'facility' mentioned in syslog man pages?

Thks

Pedro
4 REPLIES
Abdul Rahiman
Esteemed Contributor

Re: syslog.conf facility customization

Hello,

You can use the site customizable syslog facilities local0...local7 to send syslog messages via scripts and processes.
#man logger for more details.
An eg: would be, (provided u made an entry in /etc/syslog.conf as,
local0.notice /var/adm/log/test.log
# echo "this is test" | logger -i -p local0.notice -t abc


hth,
Abdul.
No unix, no fun
Pedro Cirne
Esteemed Contributor

Re: syslog.conf facility customization

Hi,

I know I can use the standard 'locale0-7' facility, but is there a way to configure additional categories of 'facility'


Thks

Pedro
Abdul Rahiman
Esteemed Contributor

Re: syslog.conf facility customization

From the man pages of syslogd,
"Known facilities and levels recognized by the syslogd daemon are those listed in /usr/include/sys/syslog_pri.h without the leading LOG_.".
so I don't think you can use additional facilites without modifying the Kernel .. I don't even know if that would be supported anyway..

Just my 2 cents,

regds,
Abdul.
No unix, no fun
Pedro Cirne
Esteemed Contributor

Re: syslog.conf facility customization

Hi,

Thanks!

Enjoy :)

Pedro