Reviewing the Zammad admin audit log

Zammad's read-only audit log records admin actions, account changes and switch-to-user sessions, but keeps entries for a fixed 12 months. This page explains how to review it, query it through the API and export entries for longer retention.

On this page

Reviewing the Zammad admin audit log before a change review or audit

A security or compliance lead who needs to answer who changed what in a self-hosted Zammad should start with the audit log. It is read-only, and it records admin actions, account changes and switch-to-user sessions. Teams reach for it during change reviews, when an incident needs a timeline of administrative activity, and when a customer security questionnaire asks how privileged access to the helpdesk is monitored. It is also the first place to look when a configuration change made by an administrator is unexplained and nobody on the team remembers making it.

Before relying on the log, confirm three things in your own environment. First, check which roles can open it and who in your organization needs that access, since the log itself is sensitive. Second, confirm the retention window in the version you run. The admin documentation on audit logs describes how entries are kept, and the window is fixed, so anything older than that window is gone unless you exported it earlier. Third, test a known change, such as a role edit on a staging copy, and confirm it appears with the actor and timestamp you expect. That test tells you whether the evidence you would show an auditor is complete for the actions you care about.

DeployOpen can plan the review process, configure the export routine, and prepare the evidence pack that your team uses in a change review or customer questionnaire. DeployOpen does not issue audit reports, attestations or certifications. Those come from your internal audit function or an independent auditor, and the review scope should be agreed with them before the evidence is collected.

Ways to review and retain audit log entries

This table compares the three ways to work with Zammad's audit log: the admin interface, the REST API audit log endpoints, and an exported copy kept beyond the fixed 12-month window. Read each row for when the option fits, who needs access, and the trade-off you accept. Most teams combine the admin interface for ad hoc checks with a scripted or exported record for anything they must keep longer.

Review optionWhen it fitsWho needs accessMain trade-off
Admin interfaceAd hoc review of recent admin actions, account changes or a specific switch-to-user sessionAdministrators with access to the audit log viewManual and hard to repeat; entries older than the fixed 12-month retention are no longer shown
REST API (list, show, search)Scripted review on a schedule, such as checking for role or permission changes each weekAn authorized service or admin token with permission to read audit log entriesRequires a token to be issued, scoped and rotated; the script must handle pagination and filtering correctly
Exported copy for retentionKeeping entries beyond the fixed 12-month window to meet an internal policy or assessor requestA named owner for the export store, with restricted read access to the copiesYou own storage, integrity, access control and deletion; confirm the export format and procedure with your own Zammad version
Audit log as evidence for change reviewShowing who changed roles, accounts or sessions during a defined review periodReviewers independent of the administrators whose actions are being reviewedEntries only show what Zammad records, so confirm coverage for each action type you need to evidence
Retention periodPlanning how far back reviews can reach without an exportCompliance lead and Zammad administratorRetention is fixed at 12 months, so any longer look-back depends on exports taken before entries expire

Setting up a regular audit log review routine

This sequence turns Zammad's audit log from a place people might look into a routine that someone owns, runs on a set cadence, and records. The result is a review record that shows who checked which admin, account and switch-to-user activity, and when.

  1. Confirm which admin roles can view the log

    Review which roles and users have access to the audit log in the admin interface, and confirm that only the people who will perform reviews can see it. Compare this list against your current admin roles and remove access that is not needed for review work. Check that the reviewer account is not also the account whose changes it will examine, so reviewers are not checking their own activity. The step is complete when you have a written list of permitted reviewers and each one has signed in and confirmed they can open the audit log.

  2. Assign a review owner and cadence

    Name one primary owner and one backup for the review, usually someone in security or IT governance who does not administer Zammad day to day. Agree the review interval with the owner and the people who approve admin changes, and write it into your operations runbook. Decide which events must be escalated immediately, such as changes to SSO, 2FA or admin accounts, and who receives that escalation. The step is complete when the owner, backup, cadence and escalation contacts are recorded in a document the team can find.

  3. Query recent entries in the admin interface

    Open the audit log in the Zammad admin interface and filter for the most recent period since the last review. Look at admin actions, account changes and any switch-to-user sessions, and note each entry that does not match a approved change ticket. Confirm that the entries show the acting user, the object changed and the time, so the review can be traced later. The step is complete when the reviewer has worked through the period, flagged unexplained entries, and saved the filtered view or its results for the record.

  4. Pull entries with the audit log API and a dedicated token

    For repeatable or scripted pulls, use the audit log endpoints in the REST API, which support listing, showing and searching entries. Create a dedicated, read-only token for the review script rather than reusing an administrator's personal token, and set its expiry and permissions according to your token policy. Treat the token hardening topic as a prerequisite, since token scope, expiry and rotation should be settled before the script runs. The step is complete when the script returns the same entries you saw in the admin interface for the same period and the token is recorded in your secrets inventory with an owner.

  5. Verify query output against a known test change

    Make a harmless, documented change in a test or staging instance, such as editing a non-sensitive setting or a test user's profile, and record the time and actor. Run the admin search and the API query for that window and confirm the entry appears with the expected actor, object and time. If the entry is missing or incomplete, stop and check the query filters, time zone handling and token permissions before relying on the routine in production. The step is complete when the known change appears correctly in both views and the test result is saved with the review procedure.

  6. Document each review in a review record

    After each review, create a record with the review period, the reviewer, the query or script version used, the number of entries examined, and each flagged entry with its outcome. Link flagged entries to change tickets or incident records, and mark any that remain unexplained for follow-up with the owner. Store the record where your compliance and security teams can access it, and confirm retention with them since Zammad's own audit log retention is fixed. The step is complete when the first review record exists, has been signed off by the owner, and the next review date is set.

How to export entries before the 12-month retention ends

Zammad's audit log keeps entries for a fixed 12 months, so anything you need beyond that window has to leave the application on purpose. The cards below cover the parts of an export process that hold up under an audit: how entries are pulled, where they are kept, how long they stay, and whether anyone has proven they can be read back.

Scheduled API pulls

Pull audit log entries on a fixed schedule through the REST audit log endpoints instead of exporting by hand when someone remembers. Run the job with a dedicated service account and a token limited to reading the audit log. Record the time window each run covers, so the next run starts where the last one stopped and no gap or overlap goes unnoticed. Confirm with Zammad which list, search and show calls your version supports and how far back a single query can reach.

Audit log API docs

Access-controlled store

Write exported entries to storage that only the audit or security team can read and that the Zammad application servers cannot modify. Audit entries record who changed admin settings and who switched to another user, so the export itself is sensitive. Restrict deletion, enable versioning or write-once settings where your storage supports them, and log access to the export location.

Integrity protection

Store a checksum or signed manifest for each export file so later tampering is detectable. Keep the checksums apart from the files they describe, for example in a separate system or with a separate key. Without this step, an exported copy is only as trustworthy as the place it sits, which may not satisfy an auditor asking whether the record is complete and unaltered.

Retention period from policy

Set the retention period for exported entries from your own legal, contractual and internal policy, not from Zammad's 12-month window. Decide which entries are kept, for how long, and when they are deleted, and make sure deletion follows the same rules as backups. Ask your compliance lead which regulations apply to admin activity records in your sector before fixing the number.

Zammad fixed retention
12 months

Documented export schedule

Write down how often exports run, who owns each run, where failures are reported and who reviews the exported entries. Tie the schedule to the interval at which entries would otherwise age out, with margin for a missed run. Keep the schedule in the same runbook as your backup and maintenance procedures so operators find it during an incident.

Restore and read test

Periodically pick a sample of exported files, verify the checksums and open the entries to confirm the fields are readable and the timestamps and actor names are intact. Record the result. A export that nobody has ever read back is an assumption, and it fails at the moment an investigation needs it. Confirm the export format and field coverage with Zammad for your version before you build the test.

How audit entries flow from Zammad to long-term retention

The flow starts with an administrator action or a switch-to-user session, which Zammad records as a read-only audit entry. Admins review those entries in the interface, while a scoped API token lets an external process pull entries into an evidence store you control. Zammad's own retention window is fixed at 12 months, so confirm your export schedule and check that exported records stay complete and tamper-resistant beyond that point.

Audit entries leave Zammad through the API into storage you control.

Security considerations for reading and exporting audit data

The audit log records what administrators changed, who changed their accounts, and when someone switched into another user's session. That makes the log sensitive in its own right, so access to it, the tokens that read it and every exported copy need the same discipline as the system they describe. The cards below cover the controls to set before the first review.

Restrict who can read the log

Entries record admin activity and account changes, so the people who can open them are a security decision, not a convenience. Limit audit log access to a small reviewer group with its own role, and confirm that ordinary agents and admins without a review need cannot reach the audit log screens or endpoints. Check the access list on a schedule, and remove reviewers when they change roles. Ask the vendor or your own test environment to confirm which roles can open the log in your version.

Audit log docs

Scope API tokens for pulls

Pulling audit entries through the REST API usually runs as a scheduled job, which makes its token a standing credential. Create a dedicated token for the review integration with only the permission needed to read audit entries, set an expiry date, and store it in your secrets manager rather than in a script. Rotate the token on a fixed schedule and revoke it when the job is retired. Do not reuse an administrator's personal token for this purpose.

Audit log API

Protect exported files

An export is a copy of sensitive data outside the application, and it will outlive the 12-month retention window in Zammad. Store exports in an access-controlled location inside your infrastructure, encrypt them at rest, and apply the same backup, retention and deletion rules you use for the database. Avoid sending exports by email or placing them in shared drives where a broader group can open them. Record who created each export and where it went.

Built-in retention
12 months

Separate reviewers from reviewed actions

A reviewer who also performs the admin actions under review can approve their own changes without anyone noticing. Where your team is small, assign review to someone outside the admin group, or have a second person confirm the review sign-off. Confirm that the reviewer cannot change the audit log settings or delete exported copies, and that switch-to-user sessions they start are reviewed by someone else.

Keep the log read-only in practice

The audit log is designed for reading, and its value depends on no one editing or pruning it. Limit write access to the underlying database to the platform team, and keep database and backup access logged. When you export entries, compare the record count and time range against the source to detect gaps. If a review finds an entry that appears altered, treat it as an incident and preserve the database backup before further changes.

Align exports with retention policy

Decide how long exported entries must be kept based on your own regulatory and internal policy, then document that period alongside the export procedure. Ask your compliance team which retention period applies, and confirm with them how deletion is evidenced at the end of that period. Review the export store on the same schedule as other records under your control.

Questions teams ask before reviewing Zammad audit logs

Can we review Zammad audit logs in-house?

Yes, if the people doing the review have the right roles and access in Zammad and a clear reason to read the log. The log is read-only, so the reviewer needs permission to open the audit log entries through the admin interface or the REST API, and the reviewer should not be the same admin whose changes are under review. Most teams start with a named admin who is not a daily configurer, then add a second reviewer for changes to roles, SSO and switch-to-user sessions. Confirm in your own instance which role grants access to the audit log before you assign the task.

What drives the effort of an audit log review?

The main drivers are the number of admins who change settings, how many integrations write configuration through the API, and what evidence your compliance team expects. A small team with a few admins and no automated changes can review entries by hand in a short session. Effort grows when you need entries exported on a schedule, mapped to change tickets, or packaged for an auditor. Ask any partner to break the quote into the review itself, the export automation, and the evidence pack, so you can see which parts you can keep in-house.

What recurs after the first audit log review?

The review cadence is the main recurring task, along with any export jobs that copy entries out of Zammad on a schedule. If your reviews use the REST API, the API tokens or service users that run those queries also need rotation and expiry checks. Each review should also record who reviewed what and when, so the trail of reviews is itself retained. Plan these as standing tasks with owners, not one-off projects, and confirm the token rules in your own Zammad settings before you automate anything.

What does the audit log work need from our side?

You need to provide four things before work starts:

  • Named roles for reviewers, with access to the audit log and no need for daily admin rights
  • A separate store for exported entries, with access limited to the reviewers and the compliance owner
  • A named owner who accepts the review cadence and signs off on findings
  • A list of the systems that change Zammad, such as SSO, the API and integrations, so their changes are reviewed too

Without these, the review tends to stall at the question of who is responsible for reading the log.

Why export audit log entries if Zammad keeps them?

Zammad keeps audit log entries for a fixed period of 12 months, as described in the Zammad admin documentation on audit logs. Your retention policy may require longer, or may require you to keep evidence that stays unchanged after the period ends. Exporting entries to your own store, with access controls and integrity checks that match your policy, solves that gap. Confirm your retention requirement with your compliance lead before choosing the export format and storage location.

When does a partner help with audit log reviews?

A partner usually helps when the review needs scripted export through the REST API, a repeatable evidence pack, or a set of checks that your team cannot staff regularly. The REST API includes endpoints to list, show and search audit log entries, which lets a script pull entries for a date range. DeployOpen plans and builds that scripted export in your own infrastructure, then documents how the reviewer runs it. Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.

Does the audit log show what a switch-to-user session did?

The audit log records switch-to-user sessions, so a reviewer can see when an admin started one and which account was used. Whether every action inside that session is listed as its own entry is something to confirm on your Zammad version before you rely on it for evidence. Test this on a staging copy: start a switch-to-user session, make a known change, then check the log. Record the result so your review procedure matches what the log actually shows.

How much does an audit log review cost?

No price is listed for DeployOpen's work, and a quote follows from the written scope. Your cost depends on the review cadence, the number of admins and integrations to cover, whether exports are automated, and the evidence your compliance team requires. Zammad itself has no license fee for self-hosted use, but self-hosted support subscriptions are sold separately by Zammad at 2,999 EUR per year for Business, 5,999 EUR per year for Enterprise and 9,999 EUR per year for Corporation, according to Zammad's pricing page. Ask any provider to separate one-time setup from recurring review work.

Official Zammad documentation for audit logs

Before you build any review process or export job around the audit log, read the official Zammad material for the exact version you run. The admin documentation on audit logs explains which administrator actions, account changes and switch-to-user sessions are written to the log, how entries appear in the admin interface, and how retention works. The REST API reference for the audit log describes the endpoints used to list, show and search entries. Both pages describe behavior that can change between releases, so treat them as the baseline for your design rather than as something to remember from a previous install.

Check both references against your own version before you write a single line of export logic. Confirm which event types are recorded, whether the fixed retention period described in the admin documentation applies to your instance, and which fields the API returns for each entry, since the field names your script depends on are defined there, not in this guide. Note the exact version number of your Zammad installation and keep a copy of the pages you relied on, so an auditor or an engineer can see what the team was working from when the export was designed. The release notes linked from the Zammad releases page are the place to look when a version upgrade may have changed the log.

Once you have confirmed the behavior, decide who owns the questions the documentation does not answer, such as whether a sample export has been tested against a staging copy and whether the API token used for the export has only the permission it needs. Ask your Zammad contact or the support channel for your subscription tier to confirm anything that is unclear for your version. Writing these answers down at the start makes the later steps, including the export format and the retention plan, far easier to verify.

How DeployOpen scopes and delivers audit log review

The sequence turns a general wish to review admin activity into a written scope, least-privilege access, an export routine that runs in your infrastructure, and an evidence pack your reviewers can read without Zammad access.

  1. Confirm the review questions and scope in writing

    DeployOpen meets your security, compliance and helpdesk leads to list the questions the review must answer, such as who changed roles, who used switch-to-user and which admin settings changed. We record the Zammad instances, the time window already covered by the live log, the export destination and the reviewers in a written scope. The step is done when the client signs off the scope and the question list, which becomes the basis for the quote.

  2. Check the current audit log and retention position

    Our engineers confirm in the Zammad admin interface what the audit log already holds, including the fixed 12-month retention window, and identify any gap between the oldest entry and the period your policy requires. We also check whether any other process already copies entries elsewhere. The output is a short baseline note stating the earliest available entry and the open gaps, which you should verify against your own retention policy.

  3. Set reviewer roles and a dedicated API token

    We create a reviewer account with the narrowest role that can read audit entries, and issue a personal access token with limited permissions and an expiry date, rather than sharing an administrator password. Reviewers without a Zammad login receive exported files only. The step closes when a test call to the audit log endpoints succeeds with the token and fails for a token that lacks the permission, and the token owner and expiry are recorded in your access register.

  4. Build the export job in your infrastructure

    Using the audit log API, which lists, shows and searches entries, DeployOpen builds a scheduled export script that runs on a host you control and writes entries to your storage. The script stores each run's time range, record count and checksum so gaps and duplicates can be spotted later. It is done when a test export matches a manual check of sample entries in the Zammad interface. Confirm the chosen schedule and storage location with your team before go-live.

  5. Protect and separate the exported records

    We apply access controls, encryption at rest and write-once or restricted-delete settings to the export location that your storage platform supports, and keep the export credentials apart from the review tokens. Exported entries contain account and admin activity, so we treat them with the same care as other security logs. The step is complete when access is limited to named reviewers and a restore test shows the files can be read by those reviewers only.

  6. Assemble the evidence pack and review walkthrough

    DeployOpen compiles a pack with the scope, role and token register, export run log, retention notes, and a summary of recorded admin actions, account changes and switch-to-user sessions grouped by the questions agreed in step one. We walk your reviewers through how to filter the entries and what each field means. The pack is accepted when reviewers can reproduce one example finding from the exported files alone. Note that the pack supports your own assessment and does not represent an audit opinion.

  7. Hand over runbook and agree retainer options

    We deliver a runbook covering the export schedule, token rotation, failure alerts, and what to do when a run is missed. You then choose between handover to your own team or an ongoing retainer that covers periodic review runs, script maintenance after Zammad upgrades, and retesting after changes. The step is done when the runbook is accepted and the chosen option is recorded in the written agreement, with pricing set by a quote from the agreed scope.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.