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). Varbase Media Header 9.2.1 Minor update available for module varbase_media_header (9.2.1). 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.

Privacy Log

101 sites Security covered
View on drupal.org

This module removes client IP addresses from all log entries, enhancing privacy and helping with data protection compliance. It also automatically purges old log data from the database to keep storage manageable.

Synopsis

Privacy Log will remove the client IP address from all log entries created through Logger API, regardless of the logger(s) used.

If database logging is enabled, the Database log messages to keep setting will be extended with a Database log messages expiry setting, that is set to 1 week by default. This will make sure that old log data is removed reliably, even if your volume of log entries is low.

Potential Use Cases

You may find this module useful, if you want to

  • log less personal data of your users.
  • ensure compliance with data protection regulations.

Requirements

This module requires no modules outside of Drupal core.

Usage

The module will just work. Optionally, adjust the Database log messages expiry setting at Configuration > Development > Logging and errors.

  • Cryptolog: Anonymizes the IP address across the whole request stack by encrypting it instead of just removing it from the log messages. Much more comprehensive, but also more complex solution.
  • Database Logging Time: Adds an option to limit the number of database logging messages by time, which is one of the features also provided by Privacy Log. Allows for more complex configuration than Privacy Log. A major difference as of December 1, 2025 is that Privacy Log adds the option on top of the existing row limit option provided by Drupal Core, while Database Logging Time replaces the core option entirely. Still, if you only need this feature of the module, Database Logging Time is probably a good alternative you should seriously consider.

Credits

Current maintainers:

The development of this project has been partly sponsored by werk21 GmbH.

Activity

Total releases
2
First release
Nov 2025
Latest release
7 months ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Slowing

Releases

Version Type Release date
1.0.0 Stable Dec 9, 2025
1.x-dev Dev Nov 28, 2025