Rails logs in NDJSON format for Kibana?

Howdy! I am interested in shipping Discourse logs to Kibana. To that end, I’d like to change the rails logging format to NDJSON if that’s a possibility.

Does anyone know how to do that or if it’s possible?

I have to admit that, outside of Discourse, I have a relatively low amount of experience with Rails apps, so if you think this isn’t really a valuable exercise just let me know :slight_smile:

(I’m also aware of the /logs endpoint, but I’d like something that’s still available if the entire system is down or if my web instances are completely destroyed)

1 Like

You can set ENABLE_LOGRAGE: true in your app.yml to get NDJSON formatted logs.

3 Likes