[syslog-ng] Syslog-ng newbie.

Evan Rempel erempel at uvic.ca
Sat Dec 29 15:12:43 UTC 2018

If at all possible you should have the application (nginx in this case) 
to log directly to syslog if it can.
nginx can do this with the caveat that you will no longer have files of 
logs. You should have syslog write
the logs to a file.

See document at

The the nginx logs will show up in /var/log/XXXX depending on which log 
files your syslog daemon is configured to write.
(syslog, messages etc.)


On 12/29/18 4:32 AM, Jason Long wrote:
> 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^���

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.balabit.hu/pipermail/syslog-ng/attachments/20181229/6f4956a5/attachment.html>

More information about the syslog-ng mailing list