How to Configure the Admin Action Log in Magento 2?

How to Configure the Admin Action Log in Magento 2?

Magento is a widely used eCommerce platform. The topmost reasons merchants prefer Magento over others is because of its security, customisability, and scalability. Speaking of security, there is no doubt regarding the platform’s ability to protect against the ever-evolving threats.

However, threats can originate internally. For instance, an admin or someone with elevated privileges might be doing something they are not supposed to do. Magento recognises that internal threats are a real possibility, thereby offering the ‘Admin Action Log’ feature to protect against it.

What is a Magneto 2 Admin Action Log?

The feature is also referred to as the ‘Magento 2 Admin Activity Log’ or ‘Admin Audit Log’. It is an important Magento enterprise feature that tracks and records the actions and activities performed by administrators or users with elevated privileges within the system's administrative interface.

Why You Should Enable Admin Action Log in Magento 2?

If you are contemplating enabling the Magento 2 Admin Activity Log feature, read the following points. They will give you much-needed clarity and help convince why enabling this feature is the best decision you’ll ever make for your store’s security.

Accountability

Admins and users with elevated privileges have vast control over your store. Therefore, it is imperative to monitor their activities. Otherwise, they may be performing actions which are they not authorised to do. A Magento 2 admin action log will track their actions online. This can be used to hold the users accountable.

Security

Its not necessary that your own team is the security threat. There is a possibility that an account was hijacked by cybercriminals without your team’s knowledge. An action log can help track the account’s movements which can then be used to determine if there are any actions being performed out of the ordinary.

Troubleshooting

Despite being a top eCommerce platform, Magento has its fair share of problems, just like any other platform. The issue can arise due to any reason, including third party customisations. A Magento admin log can be used to review the error in detail as it provides detailed logs regarding what was being done prior to the error.

Analytics

Lastly, another reason you should consider enabling the admin action log is to monitor how your store has evolved over the years. This can be used as a form of lessons learned register and various other reasons.

Steps to Configure the Magento 2 Admin Action Log

Follow the steps below to configure the Magento 2 admin activity log report. Please note that this feature is available in Magento Enterprise edition only. You will not find it in Magento Open Source (Magento Community) edition.

  1. Log in to admin panel
  2. Navigate to Stores > Configuration
  3. Select Admin under Advanced
  4. Expand the Admin Actions Logging section
  5. Enable the admin actions logging checkboxes
  6. Save the configuration
Magento 2 Admin Action Log

That's it. It's as easy as it is. Now you can view all the activity reports performed by different admin users.

Steps To View the Magento 2 Admin Activity Log Report

Go to System > Action Logs > Report from the admin panel

Magento 2 Admin Activity Log Report

Click 'View' against any admin user to see the activity log of that particular admin.

You also have the option to refine the action log report using filters such as time, action, IP address, username, and more. Additionally, you can export the report in CSV or Excel XML format directly from the admin panel.

Conclusion

This concludes our article on how to configure the Magento 2 admin action log. If you have any questions in mind or require help setting up the action log, contact our team.

Other Articles You Should Read: