PHPackages                             mage-os/module-admin-activity-log - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. mage-os/module-admin-activity-log

ActiveMagento2-module[Logging &amp; Monitoring](/categories/logging)

mage-os/module-admin-activity-log
=================================

The Admin Activity extension makes it easy to track all admin activity with comprehensive audit logging.

2.0.0-beta8(1mo ago)261.4k↓47.3%6OSL-3.0PHP

Since Dec 29Pushed 3mo ago3 watchersCompare

[ Source](https://github.com/mage-os-lab/module-admin-activity-log)[ Packagist](https://packagist.org/packages/mage-os/module-admin-activity-log)[ RSS](/packages/mage-os-module-admin-activity-log/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (6)Dependencies (10)Versions (12)Used By (0)

Mage-OS Admin Activity Log
==========================

[](#mage-os-admin-activity-log)

[![Latest Stable Version](https://camo.githubusercontent.com/ea964209aec0be725f42070ef7d47a7ea3ba51632ea6b6ef61e6f6c7e30527ba/68747470733a2f2f706f7365722e707567782e6f72672f6d6167652d6f732f6d6f64756c652d61646d696e2d61637469766974792d6c6f672f762f737461626c65)](https://packagist.org/packages/mage-os/module-admin-activity-log)[![License](https://camo.githubusercontent.com/d3b5ed2c90fa9dc40a15ebe346135edafad42f1671672d878d7f0c1efc130b02/68747470733a2f2f706f7365722e707567782e6f72672f6d6167652d6f732f6d6f64756c652d61646d696e2d61637469766974792d6c6f672f6c6963656e7365)](https://packagist.org/packages/mage-os/module-admin-activity-log)[![Total Downloads](https://camo.githubusercontent.com/7294be01d671761639554ed9306512aa7da323cfb9770170876601743582e93f/68747470733a2f2f706f7365722e707567782e6f72672f6d6167652d6f732f6d6f64756c652d61646d696e2d61637469766974792d6c6f672f646f776e6c6f616473)](https://packagist.org/packages/mage-os/module-admin-activity-log)

A comprehensive admin activity logging extension for Mage-OS and Magento 2 that provides complete audit trails for administrative actions, login attempts, and page visits.

Huge thanks to KiwiCommerce for publishing this extension, and for their support and contributions. This extension is a fork of the original [Magento Admin Activity Log](https://github.com/kiwicommerce/magento2-admin-activity) by KiwiCommerce.

✨ Key Features
--------------

[](#-key-features)

- **Admin Action Logging**: Track all admin activities including add, edit, delete, print, view, and mass update operations
- **Login Monitoring**: Record successful and failed login attempts with detailed information
- **Field-Level Changes**: Track specific field modifications with before/after values
- **IP Address Logging**: Capture IP addresses and user agent information for security analysis
- **Extensible Configuration**: Customize tracked entities and skip fields via XML configuration
- **Revert Capability**: Restore previous values for supported entity types with a secure model allowlist

📋 Requirements
--------------

[](#-requirements)

ComponentVersion**Magento Open Source**2.4.x**Mage-OS**1.0+**PHP**8.1+🚀 Installation
--------------

[](#-installation)

```
composer require mage-os/module-admin-activity-log
php bin/magento setup:upgrade
```

⚙️ Configuration
----------------

[](#️-configuration)

### Basic Configuration

[](#basic-configuration)

Navigate to **Stores → Configuration → Advanced → Admin → Admin Activity**

#### General Settings

[](#general-settings)

- **Enable Admin Activity Logs**: Enable/disable the extension
- **Record Login Activity**: Track login and logout activities
- **Record Page Visits**: Monitor admin page navigation
- **Clear Admin Activity Logs After**: Set how many days to keep logs (default: 90 days)

📖 Usage Guide
-------------

[](#-usage-guide)

### Viewing Activity Logs

[](#viewing-activity-logs)

Navigate to **System → Admin Activity → Admin Activity Logs**

Click View on any log entry to see detailed info.

### Login Activity Monitoring

[](#login-activity-monitoring)

Go to **System → Admin Activity → Admin Login Logs**

Architecture
------------

[](#architecture)

The module is built around interface-driven services for clean extensibility:

InterfaceDescription`ActivityConfigInterface`Configuration settings (enabled state, log retention)`FieldTrackerInterface`Tracks field-level changes with before/after values`ModelResolverInterface`Resolves and loads models for revert operations`ActivityRepositoryInterface`CRUD operations for activity log entries`LoginRepositoryInterface`CRUD operations for login log entriesAll interfaces are marked `@api` and can be customized via DI preferences.

Extensibility
-------------

[](#extensibility)

### Customizing Tracked Entities

[](#customizing-tracked-entities)

The module uses `adminactivity.xml` to define which entities are tracked and which fields are skipped during logging. Third-party modules can extend this configuration by creating their own `etc/adminactivity.xml` file.

Example configuration to add a custom entity:

```

            Customer Group

                    customer_group_id
                    check_if_is_new

```

### Skip Fields

[](#skip-fields)

To exclude specific fields from being logged (e.g., timestamps, internal IDs), add them to the `skip_fields` node for the relevant module in your `adminactivity.xml`.

### Extending the Revert Model Allowlist

[](#extending-the-revert-model-allowlist)

The revert feature uses a security allowlist to prevent instantiation of arbitrary model classes. To enable revert for custom entities, add your model classes to the allowlist via `di.xml`:

```

            Vendor\Module\Model\CustomEntity

```

### Protected Fields

[](#protected-fields)

Sensitive fields (passwords, tokens, payment data) are automatically excluded from logging. To add custom protected fields:

```

            my_secret_field

```

Security
--------

[](#security)

- **Revert Allowlist**: Only explicitly allowed model classes can be instantiated during revert operations, preventing arbitrary code execution.
- **Protected Fields**: Sensitive data (passwords, API keys, tokens, payment info) is never logged, configured via DI.
- **ACL Permissions**: Control access to logs and revert operations via permission rules.
- **CSRF Protection**: All admin actions are protected with form keys.

Performance Notes
-----------------

[](#performance-notes)

- **Page Visit Logging**: Disabled by default. Enable only if needed, as it creates a log entry for every admin page view.
- **Database Indexes**: The module includes indexes on frequently queried columns for optimal filtering performance.
- **Bulk Operations**: Log cleanup and activity logging use bulk database operations to minimize overhead.
- **Field Truncation**: Large values are truncated at ~64KB to prevent database bloat.

Contributing
------------

[](#contributing)

Issues and pull requests welcome on GitHub.

License
-------

[](#license)

This module is licensed under the [Open Software License 3.0](https://opensource.org/licenses/OSL-3.0).

Support
-------

[](#support)

For bugs or feature requests, please open an issue in the GitHub repository.

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance85

Actively maintained with recent releases

Popularity32

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity27

Early-stage or recently created project

 Bus Factor1

Top contributor holds 68.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~12 days

Recently: every ~17 days

Total

8

Last Release

54d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/100189073?v=4)[Mage-OS](/maintainers/mage-os-ci)[@mage-os-ci](https://github.com/mage-os-ci)

---

Top Contributors

[![rhoerr](https://avatars.githubusercontent.com/u/13335952?v=4)](https://github.com/rhoerr "rhoerr (82 commits)")[![kiwi-commerce](https://avatars.githubusercontent.com/u/40483343?v=4)](https://github.com/kiwi-commerce "kiwi-commerce (26 commits)")[![lucafuser](https://avatars.githubusercontent.com/u/46565169?v=4)](https://github.com/lucafuser "lucafuser (4 commits)")[![peterjaap](https://avatars.githubusercontent.com/u/431360?v=4)](https://github.com/peterjaap "peterjaap (2 commits)")[![pabman11](https://avatars.githubusercontent.com/u/15101708?v=4)](https://github.com/pabman11 "pabman11 (1 commits)")[![sprankhub](https://avatars.githubusercontent.com/u/930199?v=4)](https://github.com/sprankhub "sprankhub (1 commits)")[![XigenDominic](https://avatars.githubusercontent.com/u/6814203?v=4)](https://github.com/XigenDominic "XigenDominic (1 commits)")[![kiwihk](https://avatars.githubusercontent.com/u/47317662?v=4)](https://github.com/kiwihk "kiwihk (1 commits)")[![magefan](https://avatars.githubusercontent.com/u/9151916?v=4)](https://github.com/magefan "magefan (1 commits)")[![marvincaspar](https://avatars.githubusercontent.com/u/2600346?v=4)](https://github.com/marvincaspar "marvincaspar (1 commits)")

---

Tags

audit-logecommercemage-osmagentologactivitybackendadminmagento2magento 2

### Embed Badge

![Health badge](/badges/mage-os-module-admin-activity-log/health.svg)

```
[![Health](https://phpackages.com/badges/mage-os-module-admin-activity-log/health.svg)](https://phpackages.com/packages/mage-os-module-admin-activity-log)
```

###  Alternatives

[kiwicommerce/module-admin-activity

The Admin Activity extension makes it easy to track all admin activity and revert the modification.

102407.9k](/packages/kiwicommerce-module-admin-activity)[itonomy/module-admin-activity

A continuation of The Admin Activity extension by KiwiCommerce. This extension makes it easy to track all admin activity and revert the modification.

1270.4k](/packages/itonomy-module-admin-activity)[mollie/magento2

Mollie Payment Module for Magento 2

1121.6M10](/packages/mollie-magento2)[catgento/module-admin-activity

The Admin Activity extension makes it easy to track all admin activity and revert the modification.

64102.6k](/packages/catgento-module-admin-activity)[smile/elasticsuite

Magento 2 merchandising and search engine built on ElasticSearch

8044.5M33](/packages/smile-elasticsuite)[kiwicommerce/module-cron-scheduler

Easily set up and manage cron jobs from the backend with a beautiful and managed timeline feature. Find the actual load on CPU/Memory by cron job execution.

74603.3k](/packages/kiwicommerce-module-cron-scheduler)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
