syslog-ng を使用してログを中央の syslog サーバーに転送しようとしています。しかし、それは機能していません。
これは、syslog-ng.conf に追加した行です。
source s_access { file("/var/log/httpd/access_log" follow_freq(10) flags(no-parse)); };
destination logserver { udp("xxxxxx.amazonaws.com" port(514)); };
log { source(s_access); destination(logserver); };
しかし、再起動すると、次のエラーが発生します。
[root@ip-10-244-143-226 ~]# /etc/init.d/syslog-ng restart
Stopping syslog-ng: [ OK ]
Starting syslog-ng: syntax error at 79
Parse error reading configuration file, exiting. (line 79)
[FAILED]
79 行目は source s_access が定義されている行です。
何が問題になる可能性がありますか?
誰か助けてください :( 次の行が問題です。 source s_access { file("/var/log/httpd/access_log" follow_freq(10) flags(no-parse, validate-utf8)); };
しかし、どこが悪いのかわかりません。
Apache、Tomcat、およびいくつかのカスタム アプリケーションがあり、これらのログをリモートの中央 syslog サーバーに送信する必要があります。