I want to be notified about stack traces and certain events in my logs.
I don’t want to setup the ELK stack or other complicated resource hungry software. I’m not interested in searching or aggregating the logs.
My current idea is:
- the application logs to stdout which is collected by systemd.
- i use the fluent bit systemd input to collect and parse the logs
- most of the logs will be filtered out, as they are normal requests.
- the http output of fluent bit will post to a small python script, which posts to altermanager (i’m using prometheus / alertmanager anyway)
Is this a wise idea? What other solution would you suggest?


Depends on what event you are watching and alert complexity? Most self applications have built in alert notification setvices already.
Also if you have control over the application code you could just send notifications directly.
A simple script could just continuously call batch
readline(Linux) and then parse the output for notifications.on the one hand: yes, i also thought about this, and i also directly send mails for some expected events. but i don’t want to add the complexity for crash management to the application. so the logging should be handled in an extra layer.