Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Logging Nginx and uWSGI web server errors to Sentry

I am currently using Sentry to log application level errors from Django web application. Could it be possible to expand the scope of the Sentry to include logging of web server errors (HTTP 408 timeouts and such)?

These requests never hit the application, so Django + Python logging configuration never sees it. But from the devops perspective these might be equally important error conditions need to deal with.

  • Does Nginx or uWSGI support logging directly to Sentry with some addons? (Raven logging adapter?)

  • Does Sentry support error capture from Apache like log-files, syslog or such?

like image 297
Mikko Ohtamaa Avatar asked Jan 06 '15 15:01

Mikko Ohtamaa


1 Answers

You could try SentryLogs or you could use a Nginx custom error_page which fires off to Sentry.

like image 192
nokome Avatar answered Sep 21 '22 13:09

nokome