Open tomsaleeba opened 4 years ago
This tool might work: https://github.com/move-elevator/sentry-log-pusher. It's 4 years old but log formats haven't changed.
We could also use Fluentd and use this plugin to send events to Sentry. As asked here.
There is also fluent-bit, which is a lightweight alternative to fluentd. Unsure if it works with the plugin linked above.
Caddy already outputs logs in JSON format, so it would be easy to write a NodeJS consumer of those logs that then sends items to Sentry. Plus Caddy is easier to configure for HTTPS in Docker.
We have uptime monitoring but we also need to monitor the logs to see how often we get non-200 responses.
Ideally we would get a notification if we cross some threshold of error-ish HTTP status codes.
Graylog is one option. Need to research some others.