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

2011年(1)

2008年(183)

我的朋友

分类: LINUX

2008-03-03 21:36:30

3.8. Configuring syslog-ng options

The syslog-ng application has a number of global options governing DNS usage, the timestamp format used, and other general points. Each option may have parameters, similarly to driver specifications. To set global options, add an option statement to the syslog-ng configuration file using the following syntax:

# 注释 :syslog-ng 有一系列的全局选项,例如是否使用 DNS、时间戳格式等。

# 每个选项可以有自己的参数,就像 drivers 的定义一样。

# 选项的定义是由 options 语句实现的。可以看到多个选项可以在一个 option {} 语句中定义,彼此之间用分号隔开。

options { option1(params); option2(params); ... };
[Example] Example 3.10. Using global options

To disable domain name resolving, add the following line to the syslog-ng configuration file:

# 注释 :要禁用域名查询,将 use_dns 选项的值设置为 no

options { use_dns(no); };                

For a detailed list of the available options, see . See for important global options and recommendations on their use.


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