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

2011年(1)

2008年(183)

我的朋友

分类: LINUX

2008-03-03 21:38:01

3.11. Configuring syslog-ng clients

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

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

  2. Configure the local sources that collect the log messages of the host.

  3. Create a network destination that points directly to the syslog-ng server, or to a local relay.

  4. Create a log statement connecting the local sources to the syslog-ng server or relay.

  5. If the logs will also be stored locally on the host, create local file destinations.

  6. Create a log statement connecting the local sources to the file destination.

  7. Set filters and options (e.g., TLS encryption) as necessary.

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