Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Views Bootstrap 5.5.4 — Minor update available for module views_bootstrap (5.5.4). Release: Rightup theme 1.0.3 — Minor update available for theme vartheme_bs5_rightup (1.0.3). Release: CommentOn 1.0.6 — Minor update available for module commenton (1.0.6). Release: ChatGPT Ads 1.0.3 — Minor update available for module chatgpt_ads (1.0.3). Release: Opensolr Search 5.1.3 — Minor update available for module opensolr_search (5.1.3). Release: ServiceM8 Webform Integration 1.2.1 — Minor update available for module servicem8_webform (1.2.1). Release: PostfixAdmin 1.0.0 — Initial release available for module postfix_admin (1.0.0)! Release: ip_analyser 1.0.3 — Minor update available for module ip_analyser (1.0.3). Module Revived: Swagger-PHP OpenAPI 3 documentation generator 1.0.0 — Module swagger_php updated after 10 months of inactivity (1.0.0). Security Coverage: Microsoft Azure AI — Module ai_provider_azure now has official Drupal security advisory coverage.

DBLog Retention Policy provides the ability to control retention of log messages at a much more granular level than core. You can set any logging channel (type) or group of channels in the dblog to keep a specified number of log messages or keep by date.

For example keep node change records for 6 months and other logs for 1 month.

A default policy can and should be configured for all non-specified types.

Requirements

This module requires Drupal core >= 9.0 with the core dblog module installed.

Installation

Install as you would normally install a contributed Drupal module. For further information, see Installing Drupal Modules.

Configuration

  • Enable the module through UI or Drush.
  • Navigate to /admin/config/development/logging/retention_policy to configure retention policies.
  • Create a "Default" policy by selecting Default in the list of Log Types - this applies to all log types as a group that don't have a specific policy.
  • Create as many specific policies as required to meet your logging preferences/needs.

Policies that have apply to multiple log types apply to them in aggregate - so if keeping a certain number of log messages that may not be the desired effect. Also, when limiting log messages by both date and time, it is the greater of those values that is effectively used.

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
2
Tracked since
Sep 2023
Latest release
3 years ago
Releases (12 mo)
0
Maintenance
Dormant

Releases

Version Type Core Release date
1.0.0-beta1 Pre-release Sep 4, 2023
1.x-dev Dev Sep 4, 2023