Audit Log - Admin Change Tracking
Audit log for your Shopware admin: see which user changed a product, an order or a customer and when, with the old and new value of every field if you want it.
On this page
- Introduction
- What you achieve with this plugin
- Who is this plugin for?
- Installation
- Getting Started
- Settings
- Level of detail
- Audited entities
- Log integration / API key actions
- Retention period (days)
- Maximum number of entries
- Capture IP address
- Anonymize IP address
- How to Use the Audit Log
- How to open the log
- How to read the list
- How to filter by user, area or time range
- How to see exactly what was changed
- Why you cannot delete or edit entries
- Granting Permissions
- Privacy and Erasure Requests
- How to use the plugin in a privacy-compliant way
- How to remove a customer’s entries after an erasure request
- What the Plugin Does Not Record
- Troubleshooting
- No new entry appears after a change
- The “Audit Log” entry is missing under Settings → Extensions
- The detail window shows “No field details”
- Old entries are not deleted
- ”The automatic cleanup is falling behind” appears above the list
- The “From” and “To” filters return unexpected results
- All settings
- Logging
- Retention & privacy
- FAQ
- For Administrators / Technical Details
- System requirements
- Processing large amounts of data
- Draft versions
- Setting the limit via the console
- Status for monitoring
- Delete command for single records
- Installation via the command line
- Uninstallation
Introduction
Audit Log - Admin Change Tracking shows you at any time who changed what in your Shopware administration, and when.
What you achieve with this plugin
- For every change to products, orders, customers, users and roles you see who made it, when it happened and whether something was created, updated or deleted.
- If you like, you see the actual values before and after each change – for example that the stock was reduced from 29 to 12.
- You find changes quickly with filters for user, area, type of change and time range.
- Entries are immutable: nobody can edit or delete them in the administration or through the API – not even an administrator.
- You decide how long entries are kept and how large the log may grow at most; older entries are removed automatically every day.
- Privacy is built in: IP addresses are only stored if you choose to, and then truncated; passwords and keys never end up in the log.
Who is this plugin for?
For shop operators with several people working in the backend – agencies, teams with temporary staff or editors, shops connected to an ERP or inventory system – who want to trace where a price, stock or customer change came from.
The plugin is an administration tool only. Customers in your shop do not see anything of it.
Installation
After purchase, the plugin is available directly in your administration – you do not need to download anything.
- Log in to your Shopware administration (
YourShop.com/admin). - Open Extensions → My extensions.
- Click Install next to Audit Log - Admin Change Tracking.
- Activate the plugin with the switch to the left of the entry – done.
Fig. 1: The plugin is installed and active. “Configure” opens the settings.
If Audit Log - Admin Change Tracking does not appear in the list, your Shopware account is not yet connected to the shop. You can do this under Extensions → My extensions by logging in with your Shopware account.
As soon as it is activated, the plugin starts logging with the default settings. You do not need to set up anything else for it to work.
Getting Started
-
Open the settings: under Extensions → My extensions, click Configure for the plugin.
Fig. 2: At the top of the configuration you find the “Open documentation” button and the privacy notes. -
Read the privacy notes: the blue box Privacy notes explains what you should clarify before using the plugin. Logging employee activity may be subject to co-determination requirements and employee data protection laws – inform your works council (if any) and your team before using the plugin in production.
-
Set the essentials: under Level of detail, decide whether you want to see the actual value changes or only who changed what and when. Check the Retention period (days) – the default is 90 days.
-
Click Save.
-
Check the result: change the stock of a product as a test and then open Settings → Extensions → Audit Log. Your change appears there as a new entry.
The Open documentation button opens this manual directly from the configuration at any time.
Settings
You find the settings under Extensions → My extensions → Configure. They are split into two cards: Logging and Retention & privacy.
Fig. 3: Audited entities, the integration switch and the “Retention & privacy” card with the retention period and the maximum number of entries.
Good to know: as with every plugin, Shopware shows the Sales Channel selector at the top of the configuration page. It has no effect for this plugin. The audit log records work in the administration, which does not belong to any sales channel. Therefore set the values under All Sales Channels – values for a single channel are not taken into account.
Level of detail
Level of detail defines how comprehensive an entry is.
- Field diff (before/after) – default. For every change, the changed fields are stored with their old and new value. This way you can see, for example, from which price to which price a product was changed.
- Metadata only – only who created, updated or deleted which record, and when, is stored. The values themselves are not logged. This is leaner and more privacy-friendly.
Why this is useful: if you need the values for troubleshooting or as evidence, keep “Field diff”. If you want to store as little personal data as possible, choose “Metadata only”.
Important: with “Field diff”, deleting a record containing personal data – such as a customer – keeps its last state in the log until the retention period expires. Privacy and Erasure Requests explains how to remove such entries selectively.
Audited entities
Under Audited entities you choose which areas are logged. The plugin reads the list automatically from your shop; areas of other plugins appear there as well. The entries carry the technical names Shopware uses internally, for example product for products or order for orders.
Translations are not listed separately, they are included automatically. If product is selected, the plugin also logs changes to the product name, the description and the other texts Shopware stores per language.
If you leave the field empty (display Select entities…), the defaults apply:
- Products (
product) - Orders (
order) - Customers (
customer) - Admin users (
user) - Roles and permissions (
acl_role)
Why this is useful: you log exactly what matters to you. Simply add further areas such as categories or shipping methods. Once you select areas yourself, only those apply – if you want to keep the default areas, select them as well.
Log integration / API key actions
With Log integration / API key actions, changes coming from an integration are recorded as well – for example from your inventory system, an ERP or an import tool. The switch is off by default; the plugin then only logs changes made by logged-in admin users.
Why this is useful: switch it on if you want to know whether a price or stock change was made by a person or by connected software. With integrations that make many changes, the log grows faster accordingly.
Retention period (days)
Retention period (days) defines how long entries are kept. The default is 90 days; values from 1 to 180 days are possible – Shopware’s guidelines do not allow keeping a log longer than six months. Once a day, the plugin automatically deletes all entries that are older. For this to work, your shop must run Shopware’s scheduled tasks – usually your hosting provider or IT sets this up. You can see when the last cleanup ran directly above the list in the audit log (see How to read the list).
In addition, you can set a limit under Maximum number of entries (see below).
Why this is useful: a short period keeps the log lean and follows the principle of data minimisation. You need a longer period if you have to prove changes months later. Ideally, agree on the period with your data protection officer.
Maximum number of entries
Maximum number of entries defines how large the log may grow at most. If there are more entries, the daily cleanup deletes the oldest ones – regardless of the retention period. The default is 0: there is no limit, and only the retention period applies.
Why this is useful: with a very large number of changes – for example if you log integrations and your inventory system updates thousands of products every day – the log grows quickly. A limit keeps it manageable and prevents it from loading your shop’s database without limit.
Important: the limit can remove entries that the retention period would still keep. If you need changes over a fixed period as evidence, choose a generous limit or leave it at 0.
Capture IP address
With Capture IP address, the plugin stores the IP address from which each change was made. The switch is off by default.
Why this is useful: the IP address helps with investigations if you suspect unauthorised access. It is, however, personal data of your employees – only switch it on if you have a reason and a legal basis for it.
Anonymize IP address
With Anonymize IP address, the IP address is truncated before it is stored: for IPv4 the last block of digits is removed, for IPv6 only the network prefix is kept. The switch is on by default and only has an effect when Capture IP address is active.
Why this is useful: you can still see which network a change came from without being able to identify individual devices.
How to Use the Audit Log
How to open the log
What this gives you: all logged changes in one place, newest first.
Open Settings and click Audit Log in the Extensions section.
Fig. 4: You find the audit log under Settings → Extensions.
If you do not see the entry, your user lacks the read permission. Granting Permissions explains how to grant it.
How to read the list
What this gives you: you see at a glance who last worked on what.
Fig. 5: The log size at the very top, below it the “Filters” card and the logged changes.
Each row is one change to one record. The columns mean:
- Timestamp – date and time of the change.
- User – the admin user who saved the change. If the user has since been deleted, their name remains in the entry. Unknown means that no user name was available.
- Entity – the area, for example
product,orderorcustomer. - Record ID – the internal identifier of the changed record.
- Operation – Created (green), Updated (blue) or Deleted (red).
Changes to texts Shopware stores per language, such as the product name or description, appear as a row of their own with the entity product_translation, with old and new value in the Field changes.
The list shows 25 entries per page; use the page navigation below the table to reach further pages. Click the column header Timestamp, User, Entity or Operation to sort by it. Click again to reverse the order.
Tip: new entries do not appear in the same second. The plugin writes them in the background so that saving in the administration does not get slower. They are usually visible a few seconds later – simply reload the list.
The log size above the list
What this gives you: you see immediately how large the log is and whether the automatic cleanup runs reliably.
At the very top of the page, above the Filters card, there is a notice box titled Log size. It sums up in one line:
- how many entries the log contains in total, for example 755 entries – regardless of the filters,
- when the oldest entry dates from (oldest from …),
- the configured retention, such as retention 90 days,
- the limit, if you have set one under Maximum number of entries (limit … entries),
- when the automatic cleanup last ran (last cleanup …). If it has never run, it says no cleanup has run yet.
If there are entries that should already have been deleted according to your settings, the box turns into a warning titled The automatic cleanup is falling behind. Below it reads: “There are entries that should already have been deleted according to the configuration. Usually the server does not run scheduled tasks: check that the message worker (bin/console messenger:consume) and the scheduled task runner (bin/console scheduled-task:run) are running.” The plugin allows two days of leeway so that a briefly delayed cleanup does not trigger a false alarm. Troubleshooting explains what to do.
Tip: if the message “The audit log status could not be loaded.” appears instead, only the box is missing – the list itself keeps working. Reload the page.
How to filter by user, area or time range
What this gives you: you find exactly the change you are looking for – for example “Who changed products yesterday?”.
- Enter the restrictions you want in the Filters card:
- Entity: the area, for example
product. The beginning of the name is enough, soproductalso shows theproduct_translationentries. - Operation: Created, Updated or Deleted. Without a selection, All operations apply.
- User: a specific admin user. Without a selection, All users apply.
- From and To: the time range. Note the UTC hint below the fields – times refer to Coordinated Universal Time, not necessarily your local time.
- Entity: the area, for example
- Click Apply.
Fig. 6: Only changes to products are shown. The log size at the top still counts all entries.
Reset removes all filters again.
How to see exactly what was changed
What this gives you: you can tell which values applied before and what applies now – without searching backups or databases.
- Click the three dots on the right of the row you want.
- Choose Show details.
Fig. 7: Entry information at the top, field changes below. Here the stock was reduced from 29 to 12 and an EAN was added.
The Audit log entry window shows:
- Timestamp, User, Entity, Record ID, Operation and Log type.
- Request URI – the address of the request through which the change was saved.
- IP address – only if you have switched on IP capture.
- Integration ID – only if the change came from an integration.
- Under Field changes, a table with Field, Before and After.
Field names appear the way Shopware stores them internally – for example stock for the stock level or ean for the EAN. If a field was empty before, it shows (empty). Sensitive fields such as passwords or access keys are marked protected; their value is never stored.
For a deletion, the table shows the last state of the record. With the level of detail Metadata only, the table is replaced by No field details.
Close takes you back to the list.
Why you cannot delete or edit entries
The audit log is read-only by design. The list has no button for editing, creating or deleting. Shopware also rejects any attempt to change or delete an entry through the administration API – explicitly including administrators and integrations. Only this makes the log reliable evidence.
Entries still disappear, in exactly three ways:
- Automatically through the daily cleanup – after the Retention period (days) expires or, if you have set a Maximum number of entries, as soon as the log exceeds it.
- Selectively for a single record, for example for a GDPR erasure request. An administrator with server access does this with a console command – see Privacy and Erasure Requests.
- Completely when you uninstall the plugin without keeping the plugin data.
Granting Permissions
What this gives you: you decide who may read the log – for example only management and your data protection officer.
Administrators always see the audit log. For all other users there is exactly one permission: Audit Log → View. There is intentionally no permission to edit, create or delete.
- Open Settings → System → Users & permissions.
- Create a new role with Create role or open an existing one.
- In the list of permissions, in the group Other, tick the View column for the Audit Log entry.
- Click Save and assign the role to the users you want.
Fig. 8: The read permission for the audit log is in the “Other” group.
The permission shows the Audit Log entry under Settings → Extensions for this role and allows reading the entries, including the log size above the list. The user list in the User filter is included.
Privacy and Erasure Requests
The plugin logs actions of your employees. This means you process personal data of your team – and, with the level of detail Field diff, possibly also data of your customers.
How to use the plugin in a privacy-compliant way
- Inform your employees: clarify the legal basis and purpose before use. Depending on your jurisdiction, logging may be subject to co-determination; involve the works council if there is one.
- Choose the retention period deliberately: only as long as necessary. The daily cleanup enforces the period automatically – provided your shop runs scheduled tasks. The log size above the list shows you whether it does (see How to read the list).
- IP addresses only when needed: capture is off by default. If you switch it on, keep Anonymize IP address switched on.
- Check the level of detail: with Metadata only, no field values are stored – and therefore no customer data either.
- Secrets stay out: the plugin never stores passwords, tokens or access keys, whatever the level of detail.
How to remove a customer’s entries after an erasure request
If you delete a customer in Shopware, with the level of detail Field diff the customer’s last state stays in the log until the retention period expires. If someone requests erasure of their data under Art. 17 GDPR, remove the related log entries selectively.
By design, this is not done in the administration but with a console command on the server. This keeps the log immutable for administration users. Hand the task to your administrator or agency:
-
Find the customer’s identifier: in the audit log list, filter by entity
customer, open the entry and note the Record ID. -
Count first, delete nothing:
bin/console swp:audit-log:purge-entity customer <record-id> --dry-run -
Delete the entries:
bin/console swp:audit-log:purge-entity customer <record-id>The command asks for confirmation before deleting. With
--forceit deletes without asking, for example in a script.
Important: the command only removes the entries of exactly this one record. Related data with its own identifier – for example the addresses of a customer (entity
customer_address, if you log it) – has its own entries and is removed individually with its own Record ID.
Deletion is final and cannot be undone.
What the Plugin Does Not Record
To help you interpret the log correctly, these are its deliberate limits:
- Only work in the administration and through the admin API. Orders and account changes that customers make themselves in the shop do not appear. Neither do changes made by console commands, scheduled tasks or Shopware itself in the background.
- Integrations only on request. Without the switch Log integration / API key actions, changes from inventory systems, ERPs or imports are missing.
- No cancelled edits. If you open an order in the administration for editing and cancel without saving, no entry is created. Only saved changes appear – just like a status change, for example to “Cancelled” – as Updated.
- Only selected areas. Anything not listed under Audited entities (or not part of the default areas) is not logged.
- No rollback. The plugin shows old values but does not restore them. If you want an old value back, enter it manually in the record.
- No export. Entries can be viewed and filtered in the administration, but not exported as a file.
Troubleshooting
No new entry appears after a change
Cause: the plugin writes entries in the background through Shopware’s message queue. If the queue is not processed, entries are held back. Or the changed area is not logged.
Solution:
- Wait a few seconds and reload the list.
- Check under Audited entities whether the area is logged.
- If the change came from an integration, check the switch Log integration / API key actions.
- If entries stay missing, ask your administrator to check whether the shop’s message queue is being processed (see For Administrators / Technical Details).
The “Audit Log” entry is missing under Settings → Extensions
Cause: the plugin is not active, or your user lacks the permission Audit Log → View.
Solution:
- Check under Extensions → My extensions whether the plugin is active.
- Have the permission assigned to you (see Granting Permissions).
- Log out and log in again.
The detail window shows “No field details”
Cause: the entry was created with the level of detail Metadata only, or only fields were changed that are not recorded as field changes (see What the Plugin Does Not Record).
Solution: set Level of detail to Field diff (before/after). This applies to all future changes; existing entries remain as they are.
Old entries are not deleted
Cause: the shop’s scheduled tasks are not running.
Solution: ask your administrator to check whether scheduled tasks are executed. The log size above the list shows you when the last cleanup ran.
”The automatic cleanup is falling behind” appears above the list
Cause: the log contains entries that should long have been deleted according to your Retention period (days) or your limit under Maximum number of entries. Almost always the server does not run Shopware’s scheduled tasks. The daily cleanup then does not run, and the log keeps growing.
Solution:
- Ask your hosting provider, IT or agency to set up Shopware’s background processing. Two services are needed, as named in the notice box: the message worker (
bin/console messenger:consume) and the scheduled task runner (bin/console scheduled-task:run). Details are in For Administrators / Technical Details. - Leave your settings as they are. As soon as the cleanup runs again, it also works through a large backlog on its own. With a very large number of entries this can take some time.
- Reload the list later. Once the warning has gone and last cleanup shows a current date, everything is back in order.
The “From” and “To” filters return unexpected results
Cause: the times in the filters refer to UTC.
Solution: convert your local time to UTC or choose a slightly wider time range.
All settings
Every setting in the plugin configuration with its default value, in the order shown in the Administration. As of version 6.7.0.
Logging
| Setting | Default | Description |
|---|---|---|
| Level of detail | Field diff (before/after) | “Field diff” records the actual value changes (before/after). “Metadata only” merely stores who changed which entity, when and how - leaner and more privacy-friendly. Note: with “Field diff”, deleting a record with personal data (e.g. a customer) keeps its last state in the log until the retention period expires. |
| Audited entities | empty | Select the entities to be audited. The list shows all installed entities except translation entities: the translations of a selected entity (e.g. product name and description) are recorded automatically. Only genuine admin actions are recorded. If nothing is selected, the defaults are used (product, order, customer, user, acl_role). |
| Log integration / API key actions | off | When enabled, changes made via an API integration (instead of a logged-in user) are also recorded. |
Retention & privacy
| Setting | Default | Description |
|---|---|---|
| Retention period (days) | 90 | Entries older than this number of days are automatically deleted every day (requires the Shopware scheduled task runner; the audit log module shows when it last ran). Allowed: 1 to 180 days (at most six months). Entries of a single record (e.g. for an erasure request) can be removed with bin/console swp:audit-log:purge-entity. |
| Maximum number of entries | 0 | Upper limit for the size of the log. Above this number, the daily cleanup deletes the oldest entries, regardless of the retention period. 0 = no limit. |
| Capture IP address | off | Stores the admin user’s IP address at the time of the write. Disabled by default (opt-in). Please observe employee data protection requirements. |
| Anonymize IP address | on | When enabled, the IP address is truncated before storage (IPv4: last octet, IPv6: network prefix only). Only applies when IP capture is enabled. |
FAQ
Q: Can administrators delete entries to cover their tracks?
A: No. Entries cannot be changed or deleted in the administration or through the API, not even with administrator rights. Entries only disappear through the retention period, the delete command on the server or when uninstalling without keeping data.
Q: Does logging slow down my shop?
A: Not noticeably. Entries are written in the background. Large imports are processed in batches, too.
Q: How do I prevent the log from growing too large?
A: With two settings: the Retention period (days) deletes entries after a fixed time, and the Maximum number of entries additionally limits the size. You can see how large the log currently is above the list in the audit log.
Q: Can I see who deleted a customer?
A: Yes. The deletion appears with user, timestamp and the operation Deleted. With Field diff you also see the customer’s last state.
Q: What happens when I delete an admin user?
A: Their existing entries are kept, and their user name still appears in the User column.
Q: Can I restore an old value with one click?
A: No. The plugin documents, it does not restore. Read the old value in the detail window and enter it in the record again.
Q: Can I export the entries?
A: No, there is no export.
Q: Do I have to configure the plugin for every sales channel?
A: No. The plugin works independently of sales channels. Configure everything under All Sales Channels.
Q: What happens to the entries when I uninstall the plugin?
A: If you keep the plugin data when uninstalling, the entries remain in the database. Otherwise all entries are deleted permanently.
For Administrators / Technical Details
This section is intended for technical administrators. You do not need it for normal use.
System requirements
- Shopware: 6.7
- PHP: 8.2 or later
- Message queue: entries are written asynchronously. A worker must be running – the admin worker or, recommended for production systems, a console worker such as
bin/console messenger:consume async. - Scheduled tasks: the daily cleanup is triggered by Shopware’s scheduled task runner (
bin/console scheduled-task:runor your cron setup) and executed by the message worker. If either is missing, the audit log list reports “The automatic cleanup is falling behind”.
Processing large amounts of data
Large write operations, for example an ERP import through the sync API, are queued in batches of at most 500 entries. The daily cleanup also deletes in batches of 500 entries, at most 50,000 entries per run. If anything is left to delete – for example after scheduled tasks did not run for a longer period –, it places a follow-up message in the queue and continues there until everything expired has been removed. After 1,000 follow-up messages the chain pauses, and the next daily run takes over the rest. Entries beyond the retention period are deleted first, then – if set – the oldest entries above the limit.
If a user or integration is deleted before the queue has been processed, the entry is still kept; the user name is stored as a snapshot.
Draft versions
Writes to draft versions are not logged – for example the working copy Shopware creates when an order is edited in the administration and discards when the edit is cancelled. Only saving into the live version is recorded, as an update.
Setting the limit via the console
The Maximum number of entries can also be set without the administration, for example during deployment. 0 removes the limit:
bin/console system:config:set SwpAuditLogSix.config.maxEntries 500000
Status for monitoring
The administration reads the log size above the list from GET /api/_action/swp-audit-log/status. The route requires the audit log read permission and is also suitable for external monitoring. The response contains the number of entries (total), the oldest entry, retention period and limit, the last and next cleanup run, and cleanupBehind. This value becomes true if the oldest entry is older than the retention period plus two days, or if the limit is exceeded and the cleanup has not run for more than two days.
Delete command for single records
bin/console swp:audit-log:purge-entity <entityName> <entityId> [--dry-run] [--force]
--dry-runonly counts the matching entries.--forcedeletes without confirmation. Without--force, the command asks and aborts in non-interactive environments.- The command is the only way to remove single entries because it runs with system rights on the console. Every write or delete attempt through the admin API is rejected with HTTP 403.
Installation via the command line
bin/console plugin:refresh
bin/console plugin:install --activate SwpAuditLogSix
bin/console cache:clear
Uninstallation
The plugin stores its entries in a dedicated table; Shopware’s own tables are not modified. When uninstalling without keeping data, this table is removed.
This manual was written for Audit Log - Admin Change Tracking version 6.7.0.
How much help do you need?
-
Updates and compatibility: Plugin-Care from €149 per month
Before every Shopware release we check whether your plugins keep up. You get a written recommendation and install the updates yourself. Cancel monthly.
See Plugin-Care -
Setup or customisation: intro call
Want us to set up the plugin, or are you missing a feature? We sort that out in a free intro call.
Book an intro call
More manuals
Address Validation: House Number Check & Corrections
Address validation at the point of entry: the plugin spots missing house numbers, can suggest corrections via Google and helps you send fewer parcels that come back undeliverable.
Open manual Shopware 6Admin Password Reminder
Admin Password Reminder: your backend users renew their passwords on time, prompted after login and by a daily email. Premium locks expired accounts until the password is changed.
Open manual Shopware 6Admin Tweaks: Backend Lists & Shortcuts
Admin Customization
Open manualNeed a team that keeps your shop running?
We have been working with Shopware since 2010 and maintain shops including updates, hotfixes and the plugins you are configuring right now.