Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1771954
  • 博文数量: 184
  • 博客积分: 10122
  • 博客等级: 上将
  • 技术积分: 5566
  • 用 户 组: 普通用户
  • 注册时间: 2005-12-08 12:32
文章存档

2011年(1)

2008年(183)

我的朋友

分类: LINUX

2008-03-03 21:22:36

2.4. Global objects

The syslog-ng application uses the following objects:

# 注释 :syslog-ng 应用程序使用下面的对象

#     -)1、souce driver :一个通信方法,用于接收日志信息。syslog-ng 能够通过 TCP/IP 从一个远程的主机接受日志,或者从一个文件读取日志

#     -)2、source  :就是一系列已经配置好的 source driver 的集合

#     -)3、Destination driver :一种通信的手段,用于发送日志消息。

#     -)4、Destination :一系列已经配置好的 destination driver 的集合

#     -)5、Filter :一个用于选择消息的表达式。

#     -)6、log path :把多个 sources、filters、destinations 组合在一起。也称为 log statement 。它对到达 souces 的所有消息进行检查,对匹配所有 filter 的消息发送到指定的 destination

#     -)7、Template :一个模版就是用户自定义的结构,它可以用于重建日志消息或者自动生成文件名。例如一个模版可以自动往每个消息中添加时间和主机名。

#    -)8、option :选先个可以用于设置 syslog-ng 的全局表现。

  • Source driver: A communication method used to receive log messages. For example, syslog-ng can receive messages from a remote host via TCP/IP, or read the messages of a local application from a file.

  • Source: A named collection of configured source drivers.

  • Destination driver: A communication method used to send log messages. For example, syslog-ng can send messages to a remote host via TCP/IP, or write the messages into a file.

  • Destination: A named collection of configured destination drivers.

  • Filter: An expression to select messages. For example, a simple filter can select the messages received from a specific host.

  • Log path: A combination of sources, filters, and destinations: syslog-ng examines all messages arriving to the sources of the log path and sends the messages matching all filters to the defined destinations. Log paths are also called log statements.

  • Template: A template is a user-defined structure that can be used to restructure log messages or automatically generate file names. For example, a template can add the hostname and the date to the beginning of every log message.

  • Option: Options set global parameters of syslog-ng, like the parameters of name resolution and timezone handling.

For details on the above objects, see .

阅读(1124) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~