I'm trying to forward my logs using syslog-ng to my central syslog server. But it is not working.
This is the lines I added in 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); };
but when I restart, I'm getting the following error.
[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]
79th line is the line in which source s_access is defined.
What can be the issue?
somebody please help me with this :( The following line is the problem. source s_access { file("/var/log/httpd/access_log" follow_freq(10) flags(no-parse, validate-utf8)); };
But I'm not getting where what is wrong.
I have apache,tomcat and some custom applications and I need to send these logs to a remote central syslog server.