Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
syslog-ng: параметр facility в filter
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Russian
View previous topic :: View next topic  
Author Message
deval
n00b
n00b


Joined: 24 Dec 2004
Posts: 21

PostPosted: Sat Mar 04, 2006 4:51 pm    Post subject: syslog-ng: параметр facility в filter Reply with quote

Кто-то может дать ссылку или объяснить в двух словах параметр facility у параметра filter
А то в документации по syslog-ng я ничего не понял по нему.
Back to top
View user's profile Send private message
viy
Veteran
Veteran


Joined: 03 Jul 2004
Posts: 1580
Location: Riga, Latvia

PostPosted: Sat Mar 04, 2006 5:16 pm    Post subject: Reply with quote

http://www.balabit.com/products/syslog_ng/reference-2.0/syslog-ng.html/index.html#id2483852 wrote:
...
There are 12+8 (12 real and 8 local) predefined facilities (mail, news, auth etc.), and 8 different priorities (ranging from alert to debug).
...

По сути это название софтины (postgresql), либо ее клас (mail).
Back to top
View user's profile Send private message
Bash[DevNull]
Guru
Guru


Joined: 10 Oct 2003
Posts: 333

PostPosted: Mon Mar 27, 2006 11:36 pm    Post subject: Reply with quote

Code:

man 3 syslog
[...]
   facility
       The facility argument is used to specify what type of program is logging the message.  This lets
       the configuration file specify that messages from different facilities will be  handled  differ-
       ently.

       LOG_AUTH
              security/authorization messages (DEPRECATED Use LOG_AUTHPRIV instead)

       LOG_AUTHPRIV
              security/authorization messages (private)

       LOG_CRON
              clock daemon (cron and at)

       LOG_DAEMON
              system daemons without separate facility value

       LOG_FTP
              ftp daemon

       LOG_KERN
              kernel messages

       LOG_LOCAL0 through LOG_LOCAL7
              reserved for local use

       LOG_LPR
              line printer subsystem

       LOG_MAIL
              mail subsystem

       LOG_NEWS
              USENET news subsystem

       LOG_SYSLOG
              messages generated internally by syslogd

       LOG_USER (default)
              generic user-level messages

       LOG_UUCP
              UUCP subsystem
[...]



facility - это тип/класс сообщения. типы определены заранее в /usr/include/sys/syslog.h.
facility - это не название приложения (facility != postgresql), хотя часто facility совпадает с именем приложения для которого оно создавалось (ppp, uucp, ftp).
_________________
Biomechanical Artificial Sabotage Humanoid
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Russian 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