分类: LINUX
2008-03-03 21:31:13
The syslog-ng application is configured by editing the syslog-ng.conf
file. Use any regular text editor
application to modify the file. The precompiled syslog-ng packages include
sample configuration files as well.
# 注释 :syslog-ng 应用程序的配置文件是 syslog-ng.conf ,如果是二进制的 rpm 包的话,应该含有预先配置好的文件。
All identifiers, option names and attributes, and any other strings used in the syslog-ng configuration file are case sensitive. Objects must be defined before they are referenced in another statement.
# 注释 :配置文件不关心大小写,对象必须先定义才能被引用
The following table lists the location of the syslog-ng.conf
file on the different platforms. The license.txt
license file is also located here.
# 注释 :linux 下 syslog-ng 的默认配置位于 /etc/syslog-ng/ 下
Operating System | Location |
---|---|
Linux, AIX 5.x | /etc/syslog-ng/syslog-ng.conf |
Solaris, HP-UX | /opt/syslog-ng/etc/syslog-ng/syslog-ng.conf
|
Table 3.1. The location of syslog-ng.conf on different platforms
On Microsoft Windows platforms the syslog-ng agent stores its configuration in the system registry, and can be configured from a graphical interface. See for details.