Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Watchdog Prune

Security covered Under active development 1,103 sites

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.

Drupal 10–11

Ask your assistant about Watchdog Prune

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
5
Tracked since
Apr 2024
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 2
Maintenance
Dormant

Release Timeline

Releases

Version Type Core PHP Release date
7.x-1.4 Stable May 26, 2025
7.x-1.3 Stable May 26, 2025
8.x-2.4 Stable 9–11 Apr 8, 2024
3.0.0 Stable 10–11 Apr 4, 2024
3.0.x-dev Dev 10–11 Apr 3, 2024