Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Simple Access Log

Security covered Under active development 253 sites

This module provides a basic access log for Drupal, similar to the functionality found in Drupal 7's statistics module. It allows you to track page visits and configure various exclusions, such as for anonymous users, administrators, or specific paths, and includes options for log retention and automatic cleanup.

Simple Access Log replicates the basic features/functions of the Core Access Log functions that were included as part of the Drupal 7 statistics module, that were not ported to Drupal 8.

Known Issues
Due to the way Drupal 8/9/10 Handles caching for anonymous users this module currently struggles with logging their visits.

Installation and use
The Simple Access Log module can be installed like other Drupal modules by placing this directory in the Drupal file system (modules directory) and enabling on the Drupal Modules page (/admin/modules).

Configuration
Simple Access Log can be configured on your Drupal site at Administration - Configuration (/admin/config/system/simple_access_log).

Options

  • Don`t log UID 0 - Do not log Anonymous page visits
  • Don`t log UID 1 - Do not log Super User (UID 1) page visits
  • Exclude or include specified paths, with wildcard support.
  • Don`t log Admin users -Do not log for users with "Administrator" role
  • Don`t log Admin paths - Skip logging for any admin paths.
  • Any paths that start with "/admin/*".
  • Enabled by default.
  • Log retention period - Length of time to keep access logs.
    • 4 Months (16 Weeks)
    • 4 Weeks (default value)
    • 2 Weeks
    • 1 Week
    • 3 Days
    • 1 Day

Cron Data Cleanup
On each cron run any data older than the Log retention period setting (4 weeks by default) will be permanently deleted from the database.

Performance
This module runs early in the Drupal execution process, before most other modules and page content is generated. It adds an extra database insert to every page request that is received. While this should be a negligible increase in load times it will have an impact. Using the configuration options to disable logging for certain users may be able to accelerate pages if performance issues arise.

Drupal 9–10 · not 11

Ask your assistant about Simple Access Log

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

Release Timeline

Releases

Version Type Core PHP Release date
2.0.1 Stable 9–10 Mar 18, 2023
2.0.0 Stable 9–10 Mar 18, 2023
2.0.0-beta4 Pre-release 9–10 Mar 18, 2023
2.0.0-beta3 Pre-release 8–10 Mar 18, 2023