<div dir="ltr">Author here :) Thanks Oscar.<div><div><br></div><div>With `accounting` module, the metrics such as status codes, rates, and response time are logged, </div><div>you can let it write to a local file, or (by default) via syslog to forward them to remote host/app.</div><div><br></div><div>Another way is use ELK stack, document here: <a href="https://translate.google.com/translate?u=http%3A%2F%2Fchenlinux.com%2F2014%2F02%2F19%2Fngx-accounting-to-logstash%2F">https://translate.google.com/translate?u=http%3A%2F%2Fchenlinux.com%2F2014%2F02%2F19%2Fngx-accounting-to-logstash%2F</a></div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">2018-04-14 0:12 GMT+08:00 oscaretu <span dir="ltr"><<a href="mailto:oscaretu@gmail.com" target="_blank">oscaretu@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div>Perhaps this can be useful for you: <a href="https://github.com/Lax/nginx-http-accounting-module" target="_blank">https://github.com/Lax/nginx-<wbr>http-accounting-module</a><br><br></div>Kind regards,<br></div>Oscar<br></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="gmail-h5">On Wed, Apr 11, 2018 at 6:19 AM, Jeff Abrahamson <span dir="ltr"><<a href="mailto:jeff@p27.eu" target="_blank">jeff@p27.eu</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div><div class="gmail-h5">
<div bgcolor="#FFFFFF">
<p>I want to monitor nginx better: http returns (e.g., how many
500's, how many 404's, how many 200's, etc.), as well as request
rates, response times, etc. All the solutions I've found start
with "set up something to watch and parse your logs, then ..."</p>
<p>Here's one of the better examples of that:</p>
<blockquote>
<p><a class="gmail-m_2710371614188801699m_-7356199328322130055moz-txt-link-freetext" href="https://www.scalyr.com/community/guides/how-to-monitor-nginx-the-essential-guide" target="_blank">https://www.scalyr.com/communi<wbr>ty/guides/how-to-monitor-<wbr>nginx-the-essential-guide</a></p>
</blockquote>
<p>Perhaps I'm wrong to find this curious. It seems somewhat heavy
and inefficient to put this functionality into log watching, which
means another service and being sensitive to an eventual change in
log format.</p>
<p>Is this, indeed, the recommended solution?</p>
<p>And, for my better understanding, can anyone explain why this
makes more sense than native nginx support of sending UDP packets
to a monitor collector (in our case, telegraf)?<span class="gmail-m_2710371614188801699HOEnZb"><font color="#888888"><br>
</font></span></p><span class="gmail-m_2710371614188801699HOEnZb"><font color="#888888">
<pre class="gmail-m_2710371614188801699m_-7356199328322130055moz-signature" cols="72">--
Jeff Abrahamson
+33 6 24 40 01 57
+44 7920 594 255
<a class="gmail-m_2710371614188801699m_-7356199328322130055moz-txt-link-freetext" href="http://p27.eu/jeff/" target="_blank">http://p27.eu/jeff/</a>
</pre>
</font></span></div>
<br></div></div><span class="gmail-">______________________________<wbr>_________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org" target="_blank">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" rel="noreferrer" target="_blank">http://mailman.nginx.org/mailm<wbr>an/listinfo/nginx</a><br></span></blockquote></div><span class="gmail-HOEnZb"><font color="#888888"><br><br clear="all"><br>-- <br><div class="gmail-m_2710371614188801699gmail_signature">Oscar Fernandez Sierra<br><a href="mailto:oscaretu@gmail.com" target="_blank">oscaretu@gmail.com</a></div>
</font></span></div>
<br>______________________________<wbr>_________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" rel="noreferrer" target="_blank">http://mailman.nginx.org/<wbr>mailman/listinfo/nginx</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>Liu Lantao<br>EMAIL: liulantao ( at ) gmail ( dot ) com<br>WEBSITE: <a href="http://blog.liulantao.com" target="_blank">http://blog.liulantao.com</a></div></div></div>
</div></div></div>