syslog-ng
v3.5.6을 설치하여 다음을 수행했습니다 Debian GNU/Linux 8.7 (jessie)
.
# syslog-ng --version
syslog-ng 3.5.6
Installer-Version: 3.5.6
Revision: 3.5.6-2+b1 [@416d315] (Debian/unstable)
Compile-Date: Oct 1 2014 18:23:11
Available-Modules: confgen,basicfuncs,afstomp,afsocket-tls,csvparser,syslogformat,affile,cryptofuncs,redis,afsql,afsmtp,afsocket-notls,afamqp,afprog,afsocket,system-source,dbparser,json-plugin,afmongodb,linux-kmsg-format,tfgeoip,afuser
Enable-Debug: off
Enable-GProf: off
Enable-Memtrace: off
Enable-IPv6: on
Enable-Spoof-Source: on
Enable-TCP-Wrapper: on
Enable-Linux-Caps: on
Enable-Pcre: on
이제 네트워크 대상을 구성해 보십시오.
destination d_netsrv {
network(
transport("tcp")
ip-protocol(4) ip(10.3.2.1) port(601)
so-keepalive(yes) keep-alive(yes)
flags(syslog-protocol)
);
};
하지만 syslog-ng
좋아하지 않아운송()옵션:
# syslog-ng --syntax-only
Error parsing afsocket, syntax error, unexpected KW_TRANSPORT, expecting LL_IDENTIFIER or LL_STRING in /etc/syslog-ng/syslog-ng.conf at line 53, column 5:
transport("tcp")
^^^^^^^^^
syslog-ng documentation: http://www.balabit.com/support/documentation/?product=syslog-ng
mailing list: https://lists.balabit.hu/mailman/listinfo/syslog-ng
어떤 아이디어가 있나요?
답변1
노력하다
destination d_netsrv {
network( "10.3.2.1" port(601) transport(tcp) so-keepalive(yes) keep-alive(yes) flags(syslog-protocol)
);
};
또는 작동하지 않는 경우:
destination d_netsrv {
network( "10.3.2.1" port(601) transport(tcp) flags(syslog-protocol) );
};
대상 주소에는 하나가 없으며 이는 기본값이므로 ip()
필요하지 않습니다 .ip-protocol(4)