1 下载syslog-ng(当前使用的是3.3.4) 当然也要下载eventlog (官方的是在一起提供下载的)
2 安装:(使用最简安装没有添加对json,sql等得支持)
1)因为syslog-ng安装需要eventlog的支持需要先安装eventlog的支持
a eventlog的的作用( 这里把eventlog的英文注释拿过来了 偷懒了)
The EventLog library aims to be a replacement of the simple syslog() API
provided on UNIX systems. The major difference between EventLog and syslog is that EventLog tries to add structure to messages.
Where you had a simple non-structrured string in syslog() you have acombination of description and tag/value pairs.
EventLog provides an interface to build, format and output an event record.The exact format and output method can be customized by the administrator via a configuration file.
Installation
------------
Installing this library is quite straightforward as it does not depend on anything but libc.
First grab your copy of the library. It is a tarball named
eventlog-x.x.x.x.tar.gz where x.x.x.x is the library revision.
tar xvfz eventlog-x.x.x.x.tar.gz
cd eventlog-x.x.x.x
./configure
make && make install
<