Magento 2 Admin Action Log

Magento 2 Admin Action Log extension keeps the track of all the actions performed by various admin users to monitor every change performed and restore the changes when needed.

 

Table of Contents

  1. Extension Installation Guide
  2. Configuration
  3. Email Notification Settings
  4. Admin Action Logs in Backend
  5. Login Attempts
  6. Page Visit History
  7. Active Admin Sessions

 

  1. Extension Installation
  • For Magento Marketplace Customers
    • Find the Composer name and version of the extension in the extension’s composer.json file.
    • Login to your SSH and run:
      • composer require meetanshi/magento2-admin-action-log
    • Enter your authentication keys. Your public key is your username; your private key is your password.
    • Wait for Composer to finish updating your project dependencies and make sure there aren’t any errors.
    • To verify that the extension installed properly, run the command:
      • php bin/magento module:status Meetanshi_AdminActionLog
    • By default, the extension is probably disabled.
    • Enable the extension and clear static view files:
      • php bin/magento module:enable Meetanshi_AdminActionLog --clear-static-content
      • php bin/magento setup:upgrade
      • For Magento version 2.0.x to 2.1.x - php bin/magento setup:static-content:deploy
      • For Magento version 2.2.x & above - php bin/magento setup:static-content:deploy –f
      • php bin/magento cache:flush
         
  • For Meetanshi Customers
    • Extract the zip folder and upload our extension to the root of your Magento 2 directory via FTP.
    • Login to your SSH and run below commands step by step:
      • php bin/magento setup:upgrade
      • For Magento version 2.0.x to 2.1.x - php bin/magento setup:static-content:deploy
      • For Magento version 2.2.x & above - php bin/magento setup:static-content:deploy –f
      • php bin/magento cache:flush

 

  1. Configuration
    To configure the extension, log in to Magento 2, move to Admin Action Log à Configuration where you can find various settings to configure the extension.
  • Admin Action Log: Enable or disable the Admin Action Log extension.
  • Automatically Clear Action Logs after .... Days: Enter number of days after which you wish the extension to automatically clear the action logs.
  • Select Objects to Log: Select all the objects for which you want to log actions.
  • Restore Settings Warning Text: Enter custom message that you want to display to the admin while restoring the admin actions.
  • Save Page Visit History: Set YES to enable page visit history log for various admin users.

 

  1. Email Notification Settings
    The extension also allows the admin users to get notified about the login attempts via email. Configure various settings to send email notifications on successful or failed login attempts.
  • Email Sender: Select the email sender from the drop-down menu to send emails to the main admin on successful logins.
  • Send Email Copy To: Select the admin users whom you want to send email notifications on successful or failed admin login attempts.
  • Login Success Email Template: Select template to send email notification for successful login attempts by the admin users.
  • Login Failure Email Template: Select template to send email notification for failed login attempts by the admin users.

  • Login Success Email to Admin

 

  • Login Failure Email to Admin

 

  1. Admin Action Logs in Backend
    All the activities of various admin users get stored at Admin Action Log à Actions Log grid in the backend with the details like date of action performed, user name of the admin, IP address, action performed, object for which the action is performed, specific object, action type and store views. The admin can also export the actions log in CSV or XML format.

 

  • Restore Admin Actions
    On click of “View” action from the Actions log grid, detailed action details are shown with the old and new values. The admin can click “Restore” button to restore the recent changes done by the admin user.

 

  1. Login Attempts
    Move to Admin Action Log à Login Attempts grid in the backend to get complete details of login attempts by the admin users. The grid stores the details like date and time of login, user name, full name, IP address, user agent, status and user ID. The admin can also export the login attempt logs in CSV or XML file.

 

  1.  Page Visit History
    Using Admin Action Log extension, the admin can also keep track of admin users’ page visit history. Move to Admin Action Log à Page Visit History where you can see page visit history details such as user name, full name, IP address, session start date and time, session end date and time.

 

  • Click “Show History” button from the page visit history grid to view details like page name, page URL and stay duration of the admin user on the particular page.

 

  1. Active Admin Sessions
    Move to Admin Action Log à Active Sessions to view currently active admin. The grid provides complete details of the active admin sessions such as user name, full name, date and time of login, IP address, user ID, and recent activity performed.

    Admin can choose to terminate an active session or disable account of the admin user by clicking “Terminate Session” and “Disable Account” action respectively.