分类: LINUX
2008-03-03 21:38:01
To configure syslog-ng on a client host, complete the following steps:
# 注释 :要配置 syslog-ng 客户机,需要按照下面的步骤进行
# -)1、在客户机上安装 syslog-ng
# -)2、配置本地主机的 source
# -)3、建立一个网络 destination ,指向 syslog-ng 服务器,或者一个 relay
# -)4、使用 log 语句将 source 和 destination 联系起来。
# -)5、如果需要客户机本地也存储1份,则再定义一个本地 destination
# -)6、再使用一个 log 语句将 source 和本地 destination 联系起来。
# -)7、设置过滤器和选项。
Procedure 3.5. Configuring syslog-ng on client hosts
Install the syslog-ng application on the host. See for details installing syslog-ng on specific operating systems.
Configure the local sources that collect the log messages of the host.
Create a network destination that points directly to the syslog-ng server, or to a local relay.
Create a log statement connecting the local sources to the syslog-ng server or relay.
If the logs will also be stored locally on the host, create local file destinations.
Create a log statement connecting the local sources to the file destination.
Set filters and options (e.g., TLS encryption) as necessary.