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
- 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.
- 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.
Supporting organizations:
Project information
Maintenance fixes only
Considered feature-complete by its maintainers.- Project categories: Security
20 sites report using this module
- Created by chaitanyadessai on , updated
Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.