Hello.I want to send Nginx log via syslog-ng to a server that Elasticsearch and Kibana installed on it. I'm a beginner and searched in Google but can't find a good tutorial. I want to know on Nginx server with syslog-ng installed is below config enough?
options { chain_hostnames(off); flush_lines(0); use_dns(no); use_fqdn(no);owner("root"); group("adm"); perm(0640); stats_freq(0);bad_hostname("^gconfd$");};source s_myfile {
file("/var/log/nginx/access.log" follow_freq(1) flags(no-parse));};log { source(s_myfile); };
I'm thankful if anyone share advice.
Thank you.
N�n�r����)em�h�yhiם�w^���