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

2011年(1)

2008年(183)

我的朋友

分类: LINUX

2008-03-03 21:38:24

3.12. Configuring syslog-ng relays

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

  1. Install the syslog-ng application on the host. See for details installing syslog-ng on specific operating systems.

  2. Configure the network sources that collect the log messages sent by the clients.

  3. Create a network destination that points to the syslog-ng server.

  4. Create a log statement connecting the network sources to the syslog-ng server.

  5. Configure the local sources that collect the log messages of the relay host.

  6. Create a log statement connecting the local sources to the syslog-ng server.

  7. 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().

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