In one of our applications I had Monolog configured to email on critical errors, except this time the critical error was related to sending emails. Took me 48 hours before I noticed. Oof. 😅

So... What's everyone using for log aggregation and monitoring these days?

@dvk https://sentry.io with their Symfony bundle works great. I set up push notifications for fatal and recurring errors using Pushover.

Alternatively or in addition to that, let Monolog send logs to Grafana + Loki (in the cloud or self-hosted) and set up alerts there.

Application Performance Monitoring & Error Tracking Software

Application performance monitoring for developers & software teams to see errors clearer, solve issues faster & continue learning continuously. Get started at sentry.io.

Sentry
@nicwortel Ooh, nice. I have used Sentry in the past for client-side error tracking. Did not know they also did log monitoring. Thank you!

@dvk it can also register as an error/exception handler but I only use it as a Monolog handler to avoid duplicates.

Recurring issues automatically get grouped together so you can see what is new, what is escalating, etc.

They have a free plan for solo developers, and a paid plan for teams or when you usage exceeds the free tier.