我在 CentOS 6.6 64 位上从源代码编译了 ng 3.6.3 来玩,想知道是否有人有指针或示例 syslog-ng.conf,可以尽可能接近复制默认的 rsyslog 文件名和日志记录位置。默认源 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);
};
欢呼:)
答案1
是的,安装 EPEL6,然后从该 repo 安装 syslog-ng 包:
http://dl.fedoraproject.org/pub/epel/6/x86_64/repoview/syslog-ng.html