ng 3.6.3从CentOS 6.6 64位的源代码编译来玩,并想知道是否有人有指针或例子syslog-ng.conf尽可能接近复制默认的rsyslog文件名和位置进行日志logging。 默认的源码tarball /usr/local/etc/syslog-ng.conf只在/usr/local/etc/syslog-ng.conf中提供
# Default syslog-ng.conf file which collects all local logs into a # single file called /var/log/messages. # @version: 3.6 @include "scl.conf" source s_local { system(); internal(); }; source s_network { udp(); }; destination d_local { file("/var/log/messages"); }; log { source(s_local); # uncomment this line to open port 514 to receive messages #source(s_network); destination(d_local); };
欢呼:)
是的,安装EPEL6,然后从该回购安装syslog-ng软件包:
http://dl.fedoraproject.org/pub/epel/6/x86_64/repoview/syslog-ng.html