# Python Webapp Error Log — JSON?

**URL:** <https://discuss.elastic.co/t/python-webapp-error-log-json/173419>\
**Category:** Logstash\
**Created:** [March 22, 2019, 2:42am UTC](https://discuss.elastic.co/t/python-webapp-error-log-json/173419 "2019-03-22T02:42:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![smlbiobot](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/smlbiobot/32/29622_2.png) [@smlbiobot](https://discuss.elastic.co/u/smlbiobot)\
**Post date:** [March 22, 2019, 2:42am UTC](https://discuss.elastic.co/t/python-webapp-error-log-json/173419/1 "2019-03-22T02:42:43Z")

</div>

I have a Python app that currently output regular console logs. I use this to monitor any potential issues with the app. I’m using Sentry atm to track errors but am wondering if Logstash would be a good use case to do this as well?

If I do use Logstash, should I use a custom JSON logger and then output each error to a single line? Logstash be able to then parse essentially an NDJSON into useful data that I can use?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 19, 2019, 2:42am UTC](https://discuss.elastic.co/t/python-webapp-error-log-json/173419/2 "2019-04-19T02:42:51Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
