分类: LINUX
2008-03-03 22:13:26
syslog-ng — syslog-ng system logger application
syslog-ng [options]
The syslog-ng application is a flexible and highly scalable system logging application. Typically, syslog-ng is used to manage log messages and implement centralized logging, where the aim is to collect the log messages of several devices on a single, central log server. The different devices — called syslog-ng clients — all run syslog-ng, and collect the log messages from the various applications, files, and other sources. The clients send all important log messages to the remote syslog-ng server, where the server sorts and stores them.
Display version number and compilation information.
# 注释 :-V 用于显示版本
Set verbosity level to
# 注释 :-v 是 verbose 模式,默认的 verbose 程度是 3 ,可选的值是 0 -10
Set path to the PID file where the pid of the main process is stored.
# 注释 :--pidfile 指定 pid 文件
Do not daemonize, run in the foreground.
# 注释 :-F 表示不 fork 并进入后台,在前台运行
Change root to the specified directory after reading the configuration file. The directory must be set up accordingly. Note that it is not possible to reload the syslog-ng configuration after chrooting.
# 注释 :--chroot 表示在 chroot 环境下运行
Switch to the specified user after initializing the configuration file (and
optionally chrooting). Note that it is not possible to reload the syslog-ng
configuration if the specified user has no privilege to create the /dev/log
file.
# 注释 :--user 表示在读取完配置文件后切换到指定用户身份运行。要注意,如果该用户不具备创建 /dev/log 文件的权限,则无法 reload 配置
Switch to the specified group after initializing the configuration file.
# 注释 :--group 指以什么 GID 运行
Display a brief help message.
Verify that the configuration file is syntactically correct and exit.
# 注释 :-s 表示对配置文件进行语法检查
Use the specified configuration file.
# 注释 :-f 指定配置文件,默认是 /etc/syslog-ng/syslog-ng.conf
Start syslog-ng in debug mode.
# 注释 :-d 表示 debug 模式
Log internal messages of syslog-ng to stderr. Mainly used for debugging
purposes in conjunction with the --foreground
option.
# 注释 :-e 表示把 syslog-ng 的内部错误消息输出到 stderr ,一般用于和 -F 选项一起使用
/etc/syslog-ng/
/etc/syslog-ng/syslog-ng.conf
This manual page was written by the BalaBit Documentation Team
Copyright © 2006 BalaBit IT Security Ltd. All rights reserved. For more information about the legal status of this document please read: