分类: LINUX
2008-03-03 21:38:24
To configure syslog-ng on a relay host, complete the following steps:
# 注释 :要配置 syslog-ng 中继主机,按以下的步骤 :
# -)1、安装 syslog-ng 应用到中继主机
# -)2、根据客户机配置网络 sources
# -)3、创建一个网络 destination ,指向 syslog-ng 服务器
# -)4、使用 log 语句连接网络 source 和网络 destination
# -)5、为中继主机本身创建一个本地 source
# -)6、使用 log 把本地 source 和 syslog-ng 服务器连接起来
# -)7、设置过滤器和选项
Procedure 3.6. Configuring syslog-ng on relay hosts
Install the syslog-ng application on the host. See for details installing syslog-ng on specific operating systems.
Configure the network sources that collect the log messages sent by the clients.
Create a network destination that points to the syslog-ng server.
Create a log statement connecting the network sources to the syslog-ng server.
Configure the local sources that collect the log messages of the relay host.
Create a log statement connecting the local sources to the syslog-ng server.
Set filters and options (e.g., TLS encryption) as necessary.
In relay mode, syslog-ng cannot write messages received from network sources
into files; the file()
destination is
disabled. The following sources are network sources: tcp()
, tcp6()
, udp()
, udp6()
.