Unsolved

This post is more than 5 years old

Community Manager

 • 

7.5K Posts

 • 

68K Points

864

January 10th, 2017 23:00

syslogd Facility local0~7 for UNITY

HI there ..

Does anybody know what is Facility local0~7 for in Unity ?


I have checked syslog-ng.conf( see below ) in Unity but no info ....

but seems no info what meant by local0~7 ....



========================================================

@include "scl.conf"

#

# /etc/syslog-ng/syslog-ng.conf

#

# Automatically generated by SuSEconfig on Mon Aug 24 14:49:19 UTC 2009.

#

# PLEASE DO NOT EDIT THIS FILE!

#

# you can modify /etc/syslog-ng/syslog-ng.conf.in instead

#

#

#

# File format description can be found in syslog-ng.conf(5)

# and /usr/share/doc/packages/syslog-ng/syslog-ng.txt.

#

#

# Global options.

#

options { ts_format(iso) ; chain_hostnames(off); flush_lines(0); perm(0640); stats_freq(3600); log_fifo_size(500); threaded(yes); };

#

# 'src' is our main source definition. you can add

# more sources driver definitions to it, or define

# your own sources, i.e.:

#

#source my_src { .... };

#

source src {

        #

        # include internal syslog-ng messages

        # note: the internal() soure is required!

        #

        internal();

        #

        # read kernel messages directly (12.x) or

        # does klogd forward them via /dev/log?

        #

        file ("/proc/kmsg" program_override("kernel"));

        #

        # the following line will be replaced by the

        # socket list generated by SuSEconfig using

        # variables from /etc/sysconfig/syslog:

        #

        unix-dgram("/dev/log" log_fetch_limit(30));

        #

        # uncomment to process log messages from network:

        #

        #udp(ip("0.0.0.0") port(514));

};

include "/var/run/syslog-ng/additional-log-sockets.conf";

#

# Filter definitions

#

filter f_iptables   { facility(kern) and message("IN=") and message("OUT="); };

filter f_console    { level(warn) and facility(kern) and not filter(f_iptables)

                      or level(err) and not facility(authpriv); };

filter f_newsnotice { level(notice) and facility(news); };

filter f_newscrit   { level(crit)   and facility(news); };

filter f_newserr    { level(err)    and facility(news); };

filter f_news       { facility(news); };

filter f_mailinfo   { level(info)      and facility(mail); };

filter f_mailwarn   { level(warn)      and facility(mail); };

filter f_mailerr    { level(err, crit) and facility(mail); };

filter f_mail       { facility(mail); };

filter f_cron       { facility(cron); };

filter f_local      { facility(local0, local1, local2, local3,

                               local4, local5, local6, local7); };

#

# acpid messages

#

filter f_acpid_full { program('acpid'); };

filter f_acpid      { level(emerg..notice) and program('acpid'); };

# this is for the old acpid < 1.0.6

filter f_acpid_old  { program('^\[acpid\]$'); };

filter f_netmgm     { program('NetworkManager') or program('nm-dispatcher'); };

filter f_cibadmin   { not message('info: Invoked: cibadmin -o'); };

filter f_crm_res    { not message('info: Invoked: crm_resource -W -r') and not message('WARN: main: here i am - 3'); };

filter f_ptest      { not program("ptest"); };

filter f_sudo       { not program("sudo"); };

filter f_esrs       { program("run_esrs") or program("esrs_cmd"); };

filter f_snoopy     { program("snoopy"); };

filter f_logsvr     { program("LogServer"); };

filter f_messages   { not facility(news, mail) and not filter(f_iptables) and not filter(f_esrs) and not filter(f_snoopy) and not filter(f_logsvr); };

filter f_warn       { level(warn, err, crit) and not filter(f_iptables) and not filter(f_logsvr); };

filter f_alert      { level(alert); };

#

# Most warning and errors on tty10 and on the xconsole pipe:

#

destination console  { file("/dev/tty10"    suppress(30) group(tty) perm(0620)); };

log { source(src); source(chroots); filter(f_console); destination(console); };

destination xconsole { pipe("/dev/xconsole" suppress(30) group(tty) perm(0620)); };

log { source(src); source(chroots); filter(f_console); destination(xconsole); };

# Enable this, if you want that root is informed immediately,

# e.g. of logins:

#

#destination root { usertty("root"); };

#log { source(src); source(chroots); filter(f_alert); destination(root); };

#

# All messages except iptables and the facilities news and mail:

#

destination messages { file("/var/log/messages" owner("root") group("service") ); };

log { source(src); source(chroots); filter(f_messages); filter(f_ptest); filter(f_sudo); filter(f_cibadmin); filter(f_crm_res); destination(messages); };

#

# Warnings (except iptables) in one file:

#

destination warn { file("/var/log/warn" flush_lines(5) flush_timeout(1000) suppress(30) fsync(yes)); };

log { source(src); source(chroots); filter(f_warn); destination(warn); };

#

# All logs coming from run_esrs and esrs_cmd go to the esrs log:

#

destination d_esrs  { file("/var/log/esrs.log" owner("root") group("service") ); };

log { source(src); filter(f_esrs); destination(d_esrs); };

#

# Log iptables:

#

destination iptables { file("/var/log/iptables.log"); };

log { source(src); filter(f_iptables); destination(iptables); };

destination d_snoopy { file("/var/log/snoopy.log" owner("root") group("service") ); };

log { source(src); filter(f_snoopy); destination(d_snoopy); };

destination d_logsvr { file("/EMC/C4Core/log/logsvr.log" owner("root") group("service") ); };

log { source(src); filter(f_logsvr); destination(d_logsvr); };

===================================================================



No Responses!
No Events found!

Top