Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

Watchdog Prune

1,060 sites Security covered
View on drupal.org

This module allows you to selectively delete watchdog entries based on criteria like age or type. It provides more control over log retention than Drupal core, ensuring entries are kept for specific periods while preventing the log table from growing too large.

This module will allow you to selectively delete watchdog entries based on criteria, like age.

Drupal normally only deletes watchdog entries after 1,000 to 1,000,000 entries.

Instead, you can use this module to say "Delete entries older than 2 years", for example, or "Delete 'user' entries after 3 months", etc. This allows your site to guarantee that it retains watchdog entries for a certain time, regardless of how many entries are accumulated. However, it also lets you still remove entries from the table eventually, so as not to have a watchdog table which is too large.

This module is ideal for sites where entries should be kept for a certain amount of time, and for the purpose of generating reports based on user activity, without the worry that entries might start getting deleted by Drupal before a report can be run.

Installation / Configuration

After normal module installation, configure by visiting admin/config/development/watchdog-prune.

Drupal core's setting of "Database log messages to keep" must be set to "All", and will be set to that by this module.

Activity

Total releases
2
First release
May 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 2
Maintenance
Dormant

Releases

Version Type Release date
7.x-1.4 Stable May 26, 2025
7.x-1.3 Stable May 26, 2025