分类: LINUX
2008-03-03 21:36:30
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 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.