LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   what is LOCAL0 through LOCAL7 ? (https://www.linuxquestions.org/questions/linux-security-4/what-is-local0-through-local7-310637/)

mrpc_cambodia 04-07-2005 03:16 AM

what is LOCAL0 through LOCAL7 ?
 
hey, can somebody here explain me what is LOCAL0 through LOCAL7?

Thanks,

ddaas 04-07-2005 07:55 AM

man syslog.conf

mrpc_cambodia 04-07-2005 10:18 PM

hey, i checked syslog.conf already, but i don't see any mention to LOCAL.

mrpc_cambodia 04-07-2005 10:20 PM

Oh! another thing that need an explaination again.

what is named pipes? i saw somewhere FIFO is refered to as named pipes?

what is that?

sigsegv 04-08-2005 03:36 PM

That's a tough one ... Named Pipes

mrpc_cambodia 04-08-2005 09:39 PM

anyway, can somebody help me with the LOCAL?


Thanks,

elmohandesRagab 12-20-2010 03:53 AM

rsyslog.conf file
 
the /etc/rsyslog.conf file exists in the BSD and linux distributions
in contrast to the SYSV-driven systems such as HP-UX and Solaris which use the file /etc/syslog.conf

the rsyslog.conf is the configuration file of /sbin/rsyslogd
you can find out about local0 to 7 by

man rsyslog.conf

elmohandesRagab 12-20-2010 05:01 AM

local0-local7
 
another thing is that :
local0-local7 are local facilities defined by the user, to log specific deamons

for example:
you can change the sshd_config file ( which is the configuration file of the sshd deamon )
from
Syslogfacility authpriv
to
Syslogfacility local7

and add the following line in the /etc/rsyslog.conf file
local7.* /var/log/sshd.log
after restarting rsyslogd and sshd, any ssh sessions to the server will be logged in the /var/log/sshd.log file

StarMagus 07-17-2015 05:50 PM

Local0 to local7 can be personalized as above
 
But the default is already included in /etc/rsyslog.conf

# Save boot messages also to boot.log
local7.* /var/log/boot.log


All times are GMT -5. The time now is 06:08 PM.