Log To Sensu

Component ID

2061767

Component name

Log To Sensu

Component type

module

Maintenance status

Development status

Component security advisory coverage

covered

Downloads

463

Component created

Component changed

Component body

This module directs Drupal watchdog events to Sensu. The intent is to raise an alert in Sensu when events of a high severity happen in Drupal.

It is similar to the way the core syslog module directs watchdog events to syslog.

Drupal has seven levels of severity. Sensu has three levels (OK, Warning, Critical). The Log to Sensu module configuration page allows you to map Drupal's levels of severity to Sensu's. The defaults are reasonable:

Drupal Severity Sensu Value Sensu Status
WATCHDOG_EMERGENCY 2 CRITICAL
WATCHDOG_ALERT 2 CRITICAL
WATCHDOG_CRITICAL 2 CRITICAL
WATCHDOG_ERROR 1 WARNING
WATCHDOG_WARNING 1 WARNING
WATCHDOG_NOTICE 0 OK
WATCHDOG_INFO 0 OK
WATCHDOG_DEBUG 0 OK

Prerequisites: You must have a Sensu client listening so Drupal can send it events.