rwynn / monstache-site

documentation for the monstache project
https://rwynn.github.io/monstache-site/
MIT License
22 stars 31 forks source link

Option to create logs in JSON only #35

Open ashprojects opened 10 months ago

ashprojects commented 10 months ago

We are heavily relying on monstache in our production ECS container. We have alerts on logs generated by monstache, but currently it generates in following format: ERROR 2023/08/31 13:41:00 Bulk response item: { "_index": "REDACTED", "_id": "REDACTED", "_version": REDACTED, "result": "not_found", "_shards": { "total": 2, "successful": 2, "failed": 0,"status": 4041}}

Can there be a feature to print this in JSON format instead of human readable string, so that we can filter this log stream and create / consume log events.