Skip to main content

Django Logging to Elastic/Logstash/Kibana

Following my on-going quest to know what my code is doing...

I have configured rsyslog on my application servers, and forwarded logs to Logstash.  There are plenty of guides available so I won't explain Syslog or Logstash.

In order to get logging setup for all custom apps, a logger must be created for each one.  This wasn't exactly clear from the documentation.

/queue for loop...

<script src="https://gist.github.com/artschwagerb/df2372ccde3a062e7b1ed74eccccb696.js"></script>

How to use logging:
<script src="https://gist.github.com/artschwagerb/ff91ac457ce82297dcb6524b3c27c4f2.js"></script>

Comments