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

2011年(1)

2008年(183)

我的朋友

分类: LINUX

2008-03-03 22:13:26

Name

syslog-ng — syslog-ng system logger application

Synopsis

syslog-ng [options]

Description

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.

Options

--version or -V

Display version number and compilation information.

# 注释 :-V 用于显示版本

--verbose or -v

Set verbosity level to , or if is omitted increment it by one. Default the verbosity level is 3; possible values are 0-10.

# 注释 :-v 是 verbose 模式,默认的 verbose 程度是 3 ,可选的值是 0 -10

--pidfile or -P

Set path to the PID file where the pid of the main process is stored.

# 注释 :--pidfile 指定 pid 文件

--foreground or -F

Do not daemonize, run in the foreground.

# 注释 :-F 表示不 fork 并进入后台,在前台运行

--chroot or -C

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 环境下运行

--user or -u

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 配置

--group or -g

Switch to the specified group after initializing the configuration file.

# 注释 :--group 指以什么 GID 运行

--help or -h

Display a brief help message.

--syntax-only or -s

Verify that the configuration file is syntactically correct and exit.

# 注释 :-s 表示对配置文件进行语法检查

--cfgfile or -f

Use the specified configuration file.

# 注释 :-f 指定配置文件,默认是 /etc/syslog-ng/syslog-ng.conf

--debug or -d

Start syslog-ng in debug mode.

# 注释 :-d 表示 debug 模式

--stderr or -e

Log internal messages of syslog-ng to stderr. Mainly used for debugging purposes in conjunction with the --foreground option.

# 注释 :-e 表示把 syslog-ng 的内部错误消息输出到 stderr ,一般用于和 -F 选项一起使用

Files

/etc/syslog-ng/

/etc/syslog-ng/syslog-ng.conf

Author

This manual page was written by the BalaBit Documentation Team .

Copyright

Copyright © 2006 BalaBit IT Security Ltd. All rights reserved. For more information about the legal status of this document please read:

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