Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

User Activity Logger

Security covered Maintenance fixes only 21 sites

This module tracks and logs important actions on your Drupal site, such as user logins, content changes, and module installations. It stores this information in a database table and provides an administrative interface to view, filter, and delete logs, with options for email alerts on critical events.

User Activity Logger records who did what on your site: logins and failed logins, content and configuration changes, user account changes and module installs. Use it to audit site administration, investigate problems, and get an email when something important happens.

Features

  • What is logged, as you choose in the settings:
    • creating, changing and deleting content (nodes, terms, media, users and more) and site building items (content types, vocabularies, views, blocks, roles and more);
    • which fields changed, for example changed: Title, Body; saves without changes are not logged;
    • account changes: roles added or removed, accounts blocked or unblocked, password and email changes;
    • logins, logouts and failed logins, with the name that was tried;
    • settings changes, such as the site name, with the changed settings (optional);
    • module installs and uninstalls, always.
  • Who and from where: the user and, optionally, the IP address. Actions run with Drush are recorded as System (command line).
  • Activity report under Reports » Activity Logs: filter by action, type, user and date, with links to the users and items.
  • CSV export of the filtered entries.
  • Email alerts for the actions you choose, to one or more addresses. Everything that happens in one page request is sent in a single email.
  • Retention: delete entries older than a set period on cron, or delete old entries by hand.
  • Views integration: build your own activity listings and dashboards with the User activity base table.
  • Never in the way: if an entry cannot be saved, the error is written to the site log and the user carries on.

Requirements

  • Drupal 10.3 or later, or Drupal 11.
  • Only core modules: User and Views.

Installation

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

composer require drupal/user_activity_logger
drush pm:enable user_activity_logger

Configuration

  1. At People » Permissions, give:
    • View activity logs to the roles that may see the report and download CSV files. Logs include user names and IP addresses: give it to trusted roles only.
    • Delete activity logs to the roles that may delete entries.
  2. At Configuration » System » Activity Tracker (/admin/config/system/activity-tracker), choose:
    • the content and site building types to log;
    • whether to log logins and settings changes;
    • whether to record IP addresses, and how long to keep entries;
    • the alert email addresses and the actions that send an alert.

The settings need the Administer site configuration permission.

Support

Report bugs and request features in the issue queue.

Drupal 10–11

Ask your assistant about User Activity Logger

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

  • user Drupal core
  • views Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

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

Releases

Version Type Core PHP Release date
1.0.1 Stable 10–11 Oct 16, 2026
1.0.0 Stable 10–11 Apr 16, 2026