
ng 3.6.3 來自 CentOS 6.6 64 位元上的原始程式碼編譯,想知道是否有人有指標或範例 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,然後從該儲存庫安裝 syslog-ng 軟體包:
http://dl.fedoraproject.org/pub/epel/6/x86_64/repoview/syslog-ng.html