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?
autonomous@lemmy.world 4 hours ago
Anything short of a script is probably beyond the effort level you wanted, but VictoriaLogs is designed to be slim and easy to setup.
A single zero-config executable. Works with Fluent-Bit
It supports log alerting to alertmanager via vmalert, which is part of their ecosystem. (Grafana could alert off that log source as well, if you already used it)