Skip to main content
drupalreleases
Release: Cms 2.2.3 — Update released for Drupal core (2.2.3)! Release: Easy Breadcrumb 2.0.11 — Minor update available for module easy_breadcrumb (2.0.11). Release: Menu Link Attributes 8.x-1.9 — Minor update available for module menu_link_attributes (8.x-1.9). Release: Bootstrap 8.x-3.42 — Minor update available for theme bootstrap (8.x-3.42). Release: PhotoSwipe - Responsive JavaScript Modal Image Gallery 5.0.11 — Minor update available for module photoswipe (5.0.11). Release: Search API attachments 10.0.13 — Minor update available for module search_api_attachments (10.0.13). Release: Editoria11y Accessibility Checker 3.0.10 — Minor update available for module editoria11y (3.0.10). Release: Mismatched entity and/or field definitions 1.2.1 — Minor update available for module meaofd (1.2.1). Module Revived: Bootstrap 8.x-3.41 — Theme bootstrap updated after 6 months of inactivity (8.x-3.41). Security Coverage: Component Library — Module component_library now has official Drupal security advisory coverage.

Log Alert Rules

3 sites Security covered Drupal 10–11

Part of the LOG ecosystem · 10 projects

View on drupal.org

This module allows site administrators to configure rules that trigger alerts based on patterns in Drupal's watchdog log entries. You can define thresholds for specific log channels and severities to receive notifications via email or Slack when certain conditions are met.

Log Alert Rules provides configurable threshold-based alerting for Drupal watchdog log entries.

Instead of manually watching logs or building one-off automation for recurring errors, site administrators can define alert rules that watch for patterns in specific log channels and severities, then notify recipients when thresholds are met.

Each rule can target:

  • a log channel, or any channel
  • one or more severity levels
  • a substring or PCRE regex message pattern
  • an optional negate pattern
  • raw or rendered message matching

Features

  • Configurable alert rules stored as config entities
  • Threshold-based evaluation within sliding time windows
  • Cooldown suppression to reduce alert floods
  • Email notification channel
  • Rule testing against recent dblog entries
  • Single-rule and bulk export/import
  • Backward-compatible import for older single-rule exports
  • Drupal 10.3+ and Drupal 11 support
  • This module is intended for sites that want practical, maintainable alerting on top of Drupal's built-in logging system.

    Post-Installation

    After enabling the module:

    1. Ensure the Database Logging (dblog) module is enabled.
    2. Go to Administration > Configuration > System > Log Alert Rules.
    3. Create one or more alert rules for the log channels and severities you care
      about.
    4. Test each rule against recent log entries before relying on it.
    5. Configure email recipients and verify alert delivery in your environment.

    Release Version 2.X - Monolog Support

    Log Alert Rules 2.0 adds first-class support for sites running the
    Monolog contrib module, and raises the minimum core version.

    New: Monolog support

    On a Monolog site, Drupal core's logger.factory is replaced and its addLogger() is a no-op — so prior versions of Log Alert Rules received no log records there. Rules could be created and tested against historical entries, but nothing matched in real time and no alerts ever fired: a silent failure.

    2.0 ships an optional sub-module, Log Alert Rules Monolog (log_alert_rules_monolog). Enable it and Log Alert Rules behaves on a Monolog site exactly as it does anywhere else:

    drush en log_alert_rules_monolog

    It is zero-configuration. It wires the Log Alert Rules handler into every Monolog channel and captures the raw message template and placeholder variables, so rule matching and email-placeholder substitution are identical to a non-Monolog site. It coexists cleanly with file-based Monolog log viewers (e.g. a RotatingFileHandler).

    If Monolog is enabled without the sub-module, the Status report (Reports → Status report) shows a warning, so the situation is never silent.

    Release version 2.1.0 - Slack Notification Support

    Notification Targets & Slack. Notifications are now built around reusable Notification Targets: named destinations you define once and attach to any number of rules, cleanly separating how an alert is sent from where it goes. A single rule can now dispatch to several targets at once, so a critical alert can reach email and Slack simultaneously.

    The optional Log Alert Rules Webhook sub-module adds a Slack channel — Block Kit messages posted via an incoming webhook, with the URL stored securely through the Key (https://www.drupal.org/project/key) module — making Slack a dependable out-of-band channel for alerting even when mail/SMTP is the thing that's failing. Any target can be enabled or disabled with one click to mute that destination across every rule at once, and existing per-rule email settings migrate automatically on update.

    Roadmap

    - Monolog support via an optional sub-module — sites running the Monolog contrib module currently do not receive log records.
    - More notification channels beyond email — Slack, Discord, MS Teams, generic webhook. Plugin-based, so contributions welcome.
    - Other logger-replacement integrations as demand emerges.

Depends on

Dependencies of the latest stable release

  • dblog Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
13
Tracked since
Mar 2026
Latest release
1 month ago
Releases (12 mo)
13 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Core Release date
1.0.0 Stable 10–11 Aug 25, 2026
2.1.1 Stable 10–11 Aug 25, 2026
2.1.0 Stable 10–11 Jun 23, 2026
2.0.0 Stable 10–11 Jun 20, 2026
1.0.0-rc9 Pre-release 10–11 May 17, 2026
1.0.0-rc8 Pre-release 10–11 May 4, 2026
1.0.0-rc4 Pre-release 10–11 May 2, 2026
1.0.0-rc3 Pre-release 10–11 Apr 26, 2026
1.0.0-rc2 Pre-release 10–11 Apr 26, 2026
1.0.0-rc1 Pre-release 10–11 Apr 25, 2026
1.0.0-beta3 Pre-release 10–11 Apr 14, 2026
1.0.0-beta2 Pre-release 10–11 Apr 8, 2026
1.0.0-beta1 Pre-release 10–11 Mar 31, 2026