<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">If at all possible you should have the
application (nginx in this case) to log directly to syslog if it
can.</div>
<div class="moz-cite-prefix">nginx can do this with the caveat that
you will no longer have files of logs. You should have syslog
write</div>
<div class="moz-cite-prefix">the logs to a file.</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">See document at</div>
<div class="moz-cite-prefix"><a class="moz-txt-link-freetext" href="http://nginx.org/en/docs/syslog.html">http://nginx.org/en/docs/syslog.html</a></div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">The the nginx logs will show up in
/var/log/XXXX depending on which log files your syslog daemon is
configured to write.</div>
<div class="moz-cite-prefix">(syslog, messages etc.)</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">Evan.<br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">On 12/29/18 4:32 AM, Jason Long wrote:<br>
</div>
<blockquote type="cite"
cite="mid:690464249.10529112.1546086767277@mail.yahoo.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<div>Hello.</div>
<div>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?</div>
<div><br>
</div>
<div><span>
<div>options { chain_hostnames(off); flush_lines(0);
use_dns(no); use_fqdn(no);</div>
<div> owner("root"); group("adm"); perm(0640);
stats_freq(0);</div>
<div> bad_hostname("^gconfd$");</div>
<div>};</div>
<div>source s_myfile {<br>
</div>
<div> file("/var/log/nginx/access.log" follow_freq(1)
flags(no-parse));</div>
<div>};</div>
<div>log { source(s_myfile); };<br>
</div>
</span><br>
</div>
<div>I'm thankful if anyone share advice.</div>
<div><br>
</div>
<div>Thank you.</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">N�n�r����)em�h�yhiם�w^���</pre>
</blockquote>
<p><br>
</p>
</body>
</html>