What the Zitadel audit trail answers and when you need it
A security or compliance team usually needs two answers from its identity system: who changed what, and whether someone is misusing access right now. Zitadel's audit trail is built from its event store, the record of changes that Zitadel writes as events. Three ways to read that record serve three different jobs. The Console event viewer supports ad hoc investigation, when an administrator needs to trace one user, one organization or one configuration change. The Events API supports scheduled evidence pulls, such as a periodic export for an access review. SIEM forwarding supports continuous monitoring, where identity events reach a detection platform while there is still time to act. Decide early which of the three your team will depend on, and who is authorized to use each.
Plan the Events API first if an auditor will ask for records on a fixed schedule. Pulls can be scripted against the API described in the Zitadel API documentation, stored with the evidence for each review period, and matched to the access review they support. Before you design the export, confirm with Zitadel which event types are returned, how results are paginated, and whether they can be filtered by organization. These details decide whether a scheduled pull is complete. The Console is useful for questions that arise during an incident, but it is not an evidence store, so export anything you will need to show later.
Forward events to a SIEM when a delayed answer is itself a risk. Illustrative examples include an administrator account used outside working hours or a change that weakens a second factor policy. The detection rules belong in the SIEM, and choosing that platform is a separate decision with its own licensing and sizing. Before you commit, confirm with Zitadel how the event store is kept, since self-hosted Zitadel stores its data in PostgreSQL, with versions 14 through 18 supported. Check how backups and any pruning of that database limit how far back an investigation can look. This page does not cover mapping events to control requirements or application logs.
How events move from Zitadel to investigators and the SIEM
The flow starts in the Zitadel services, which write identity events to the event store in PostgreSQL inside your infrastructure. The Console event viewer reads that store for investigators working in the Console, and the Events API reads the same store for programmatic access under its own credentials. A forwarder or collector moves events across the network path to the SIEM, which feeds alerts and copies events to an archive. Check each boundary: the Zitadel instance, the credentials that call the Events API, the network path to the SIEM and where the archive sits. Confirm the Events API and the forwarder in your Zitadel version before you design around them.
Event flow from Zitadel to investigators and the SIEM, with trust boundaries.
How event sourcing makes Zitadel events usable for audit
Zitadel stores every change to identities, organizations and grants as an event in its database, so the audit history is a sequence of what changed and when. A current snapshot shows only the latest result of those changes. For an investigation, the event sequence lets you rebuild how an account reached its present state, such as when a role grant was added, a second factor was registered or a password was reset. Operators can run ad hoc lookups in the Console event viewer, and teams that collect evidence on a schedule can pull the same records through the Events API. Before anyone relies on either path, confirm which instance and organization each reader account is scoped to, because that scope decides which events the reader can see.
Scope is the control that most often surprises audit readers. A Zitadel instance is a virtual tenant with full data isolation, so events in one instance cannot be read from another. Inside an instance, organizations hold users and projects, and projects group applications, roles and grants. A reader with access to one organization may therefore see a different set of events than a reader at instance level. Build a small test matrix: sign in a reader at each level, run the same query in the Console viewer and through the Events API, and compare what appears with the changes you made on purpose. Ask the Zitadel team which roles can open the viewer and call the API at each level, and record the answers before the first audit request arrives.
The event store lives in PostgreSQL, and Zitadel supports PostgreSQL versions 14 through 18 for self-hosted deployments, according to the Zitadel database documentation. Every change adds rows, so the event tables grow with activity across your tenants. The team running the database owns sizing, storage growth and backups, and those plans must cover the event history as well as the identity data. Plan point-in-time recovery and a restore test that includes the event tables. Retention is a separate decision: confirm how long events persist, whether any pruning runs by default and how exports are scheduled before you promise an evidence period to an auditor. Record those answers in your retention plan.
Options for getting identity events to a SIEM
This table compares four ways to move Zitadel identity events into a SIEM, including the Graylog and Wazuh licensing and platform needs. Read each row for when the option fits, what your team must provide and the main risk. Before you choose any path, confirm that the Events API covers the event types your investigations and audits need.
| Option | When it fits | What it needs from your team | Main risk |
|---|---|---|---|
| Scheduled pulls from the Events API | Modest event volume, a SIEM with a collector that accepts scheduled API polling, and a team that can own a small job. | API credentials with event read rights, a collector that can poll HTTP, a host for the job and stored pull checkpoints. | Gaps and duplicates after failed runs, and missed event types if the API does not cover them. |
| Read-only forwarder on the PostgreSQL event store | Teams that want event data the Events API may not return. An option to assess only. | A PostgreSQL role with read-only access to the event store tables, network access from a forwarder host, and schema review on each upgrade. | Schema changes between releases can break the forwarder, and direct reads may bypass API-level access controls. |
| Graylog Open with syslog, GELF or Beats input | Teams that want Graylog search and alerts for no license fee, with community support (Graylog pricing page). | A collector that sends events as syslog, GELF or Beats, plus Graylog, MongoDB and a Data Node or OpenSearch backend. | Confirm which formats Zitadel emits directly. Otherwise the collector becomes a custom component you own. |
| Graylog Enterprise or Security licensing | Teams that need 24/7 support, a correlation engine or SIEM features such as risk scoring and investigations. | Subscription from 15,000 US dollars per year (Enterprise) or 18,000 US dollars per year (Security), per the Graylog pricing page. | Both tiers have a minimum of 10 GB per day or 100 Graylog Compute Units, so confirm your daily volume fits. |
| Wazuh ingestion via syslog | Teams already running Wazuh for endpoint monitoring who want identity events in the same analytics. | A Wazuh server set up to collect syslog, a sender that forwards events, and indexer capacity for the stored alerts. | Identity events may need custom decoders and rules before alerts are useful, so plan that work. |
How to set up audit trail access and SIEM forwarding
This sequence takes an organization from an undefined audit need to a tested pipeline that moves Zitadel identity events into a SIEM and makes them searchable during an investigation. Each step ends with a check you can repeat, so the team knows the data is complete before anyone relies on it. Run the full sequence against a non-production instance first.
Decide event scope for each instance and organization
The security owner and the platform team agree which instances and organizations produce events that leave the platform, and which event types count as sensitive, such as role grants, MFA changes, identity provider edits and console administrator actions. Write the list down per instance and per organization, because the scope drives the collector filters, the alert rules and the retention plan later. Confirm against the documentation for your Zitadel version which event types it records, since that catalog is the authority for this list. Done means the list is signed off and every entry has a named owner.
Confirm PostgreSQL version and backup coverage
Zitadel keeps its database, including the event data, in PostgreSQL, so the database version and its backups decide what an investigation can recover. The Zitadel database documentation lists PostgreSQL 14 through 18 as supported, so confirm your server falls in that range and that staging runs the same version. Check that backups cover the database that holds the events, and confirm how long events are kept for your retention plan. Done means you can name the version, the backup owner and the date of the last successful restore test on a copy.
Create a read-only credential for event access
Create a dedicated service account or API credential that can read audit events for the agreed scope and nothing else. It needs no write, user administration or instance administration rights. Confirm in the Zitadel documentation for your version which role grants event reads, then store the secret only in your secrets manager and inject it at runtime. Test the credential with one read call that succeeds and one write call that is refused. Done means both results match and the credential has a named owner and a rotation process.
Build the collector and test on staging
Build the collector or forwarder that reads events for the agreed scope and delivers them to the SIEM, starting with a non-production instance. Make a known test change, such as renaming a test user in an illustrative test organization, and note its time and identifiers. Done means that change appears in the Console event viewer, in the raw API response and in the SIEM, with a matching timestamp and matching identifiers. Record any gap, such as delivery lag or missing fields, and resolve it before moving on.
Map event fields in the SIEM
Define parsing in the SIEM so that event time, event type, actor, instance and organization identifiers, and the target object land in named, typed fields. Build the mapping from sample events from the test instance until it is stable. Normalize timestamps to UTC so they line up with the viewer and the API. Document every field the SIEM cannot parse and count the unparsed events. Done means a sample of test events yields every mapped field with values that match the raw API response, and the unparsed count is explained.
Set alert rules on sensitive admin events
Write alert rules for the sensitive event types agreed in the first step, such as changes to administrator roles, identity provider configuration, MFA policy and instance-level settings. Route each alert to the team that can act on it, and set severity and suppression rules you can explain to an auditor. Each alert should carry the event identifier so the responder can link back to the source. Done means a test administrator change in the non-production instance fires the expected alert once, with the correct instance, organization and actor.
Run a retrieval test for an investigation
Run a timed investigation drill that starts from an alert or a question, such as who changed a role in a given organization, then retrieves the evidence from the Console event viewer, the Events API and the SIEM. Use the test change from the staging step and a second change made by a different actor. Done means the team reproduces both changes with the same actor, time and identifiers in each system. Write down the query and export steps so an investigator can repeat them without the engineer who built the pipeline.
Security and operational controls for identity event pipelines
Streaming identity events out of Zitadel copies sensitive data into a second system with its own access paths. The six controls below cover who can read the event feed, how personal data is protected, how tenants stay apart, how copies stay trustworthy, who can investigate, and how the team learns that the forwarder has stopped.
Least-privilege credentials for the Events API
Create a dedicated service account for the forwarder and grant it only the read permissions it needs for events. Keep it separate from administrator accounts and from any account used for Console or automation work. If your forwarder reads from PostgreSQL directly, give that database role read-only privileges on the event data and confirm in your environment that the role cannot write or change schema. Store the credential in your secrets manager, name an owner for it, and set a rotation schedule that someone is responsible for.
Zitadel APIs introductionProtecting personal data in transit and at rest
Identity events carry personal data such as login names, email addresses, IP addresses and user identifiers. Require TLS on every hop between the forwarder and the SIEM, and check that the event stream does not land in unencrypted logs or shared volumes. At rest, restrict access to SIEM indices and archive files, and confirm how long each copy is kept. Minimize fields before forwarding: drop any attribute your investigations do not need so the SIEM holds no more personal data than your retention basis supports.
Separating instance and organization scope
Zitadel isolates tenants as instances with full data isolation, and places users and projects inside organizations within an instance. Decide whether one forwarder serves one instance or whether several instances feed a shared SIEM. If they share a SIEM, tag every event with its instance and organization, and set SIEM roles so a reviewer for one customer organization sees only that organization's events. Confirm how the Events API scopes results for the credential in use, and test with two tenants before go-live.
Zitadel organizationsTamper resistance through an external archive
An audit copy is only useful as evidence if changes to it leave a trace. Keep an archive outside the Zitadel database, in storage that Zitadel operators and SIEM administrators cannot silently rewrite. Use write-once settings if your storage platform provides them. Periodically compare archived records with the source for sampled time windows, and keep the comparison results. Document who holds the archive keys so the chain of custody can be explained to an auditor.
Investigator access to the SIEM and archive
Investigators need search access to recent events and read access to the archive, but few people need to change SIEM configuration or delete data. Map least-privilege investigator roles to the work each team performs, and require SSO and multi-factor authentication for every human account. Review who holds administrator roles on a schedule you set, and log access to exported archive files. If you use Graylog, its user authentication guide describes how accounts and roles are configured.
Graylog user authenticationAlerting on forwarder failures
A forwarder that stops without alerting creates silent gaps in the audit trail that nobody notices until someone needs the events. Alert when the forwarder process is down, when writes to the SIEM fail, and when the newest event falls behind the current time by more than the window your investigations allow. Also alert on a sharp drop in event volume compared with normal traffic. Test each alert by stopping the forwarder in a non-production instance, and confirm that the forwarder resumes from its last position after recovery.
Retention planning for the event store and the SIEM
Plan retention for the event store and the SIEM as two separate decisions, because they hold different copies with different goals. The event store in Zitadel's PostgreSQL database is the system's own record of identity changes, so its retention is tied to what Zitadel supports and to your backup and recovery obligations. The SIEM copy is the one most investigations use, since analysts search it for sign-in patterns, administrator changes and suspicious token activity. Set its retention for the questions your security and compliance teams expect to answer, and record who owns each period. Review both periods when your audit scope or investigation needs change, and document the reason for each setting so an auditor can follow it.
If the SIEM is Graylog, size storage from the ingest rate you measure. The Graylog system architecture guidance advises storage equal to daily ingest times retention days times 120 percent, and a message journal of 3 to 5 times daily ingest on SSDs. Measure daily ingest over a busy period, because event volume follows user activity and a quiet week will understate the storage you need. Graylog index rotation and retention delete the oldest indices once their limits are reached, so retention is a setting you choose on purpose. Review the rotation and retention settings on each index set before go-live, and confirm that the oldest indices are removed only after your required period has passed.
Before you set the event store period, confirm with Zitadel whether events can be pruned from the event store, and if so, how. Ask whether pruning is supported on your Zitadel version, whether it runs as a database job or a configuration setting, and what it does to the events shown in the Console and returned by the Events API. Also confirm whether a pruned event can be recovered from your PostgreSQL backups, since backup retention limits how far back a restored history can reach. Align the event store period with the SIEM period so that no investigation window falls outside both copies. Finally, test the SIEM pipeline with a known sign-in and a known administrator change, and confirm both arrive and are searchable before you rely on them.
Limits to confirm before you design the pipeline
Each item below depends on your Zitadel version and deployment, so confirm every one in the place named on its card. Record each answer alongside the version number before the pipeline design is fixed. Answers from a general product overview can change between releases, so write down the source you used for each one.
Events API endpoints and limits
Confirm which Events API endpoints your version exposes, which filters each one accepts and how results are paginated, using the API reference for that version. Run a query against a test event and keep the exact request and response. Check the rate limits for the service account you plan to use, because a polling collector that hits them can fall behind the event store unless its errors are monitored.
Zitadel APIsNative log-streaming coverage
Find out whether your Zitadel version ships a native log-streaming feature, and if it does, check which events it covers, which destinations it supports and whether it applies to every instance and organization. Read the release notes and feature documentation for your exact version. Then test one event from each category you need to investigate, because a feature that covers sign-ins may leave out administrative changes.
Zitadel releasesPruning and deletion limits
Establish whether anything in your version can prune, delete or compact rows in the event store, and which roles or jobs can trigger it. Retention planning depends on this answer: if a maintenance task or an administrator can remove events, the removal may leave no record in the trail. Check the database documentation and administrative tooling, then confirm the behavior on a test instance before any retention period goes into policy.
Database documentationActions v2 event reactions
Confirm whether Actions v2 event reactions can fire on the events you need to forward, what data each reaction receives and whether reactions can call your collector directly. Review the Actions v2 documentation for your version, including any limits on execution time and retries. A forwarder on the event path can add latency or errors to the flow it observes, so test it while the collector is slow and while it is down.
Event types and fields
List the event types your version emits and the fields each one carries, such as the actor, target, organization and timestamp where present. Map fields each one carries against the questions investigators and auditors ask, for example who changed a role assignment or which login method was used. Where a required field is missing, note the gap now, because a SIEM rule cannot recover a field that the event never emitted.
SIEM ingestion format
Confirm the exact format the chosen path produces: serialization, field names and nesting, timestamp precision and time zone, how event identifiers are assigned and whether each message holds one event. Your SIEM parsers, field mappings and detection rules are written against this shape. Test with a sample from the final path, and store that sample with the design so an upgrade can be compared against it.
Questions buyers ask about audit trail and SIEM work
What drives the cost of an audit trail and SIEM project?
The cost follows five drivers: the number of Zitadel instances and organizations in scope, the event volume they produce, the SIEM you choose and its licensing, the parsing work needed to make events usable, and the retention and archive design. Each one adds build effort, and some add recurring cost. More instances and organizations mean more event sources to map and test. Event volume drives storage, indexing and, for some SIEM products, license fees. Parsing effort grows with the number of event types your detections depend on. Retention design sets how much data stays searchable and how much moves to archive. Ask for one-time build costs and recurring platform costs as separate lines. SIEM licenses and hosting are paid to the vendor or cloud provider from your own accounts, while the build is priced from the written scope.
How long does it take to stream Zitadel events to a SIEM?
Duration depends on what is new to your team, so it cannot be stated from the question alone. The main factors are whether a SIEM already runs in your environment, how many Zitadel instances and organizations feed it, how many event types need parsing and mapping, whether detection rules must be written from scratch, and how quickly your security and platform reviewers approve design decisions and test output. A new SIEM adds its own build work. Graylog's multi-node guide, for example, describes separate MongoDB, server and Data Node tiers for medium to large deployments, which adds planning work. Ask for a phased plan with dependencies, reviewer sign-off points and a clear start condition, and confirm that each client dependency has a named owner before work starts.
What does the client need to provide for an audit trail project?
You should expect to provide database access, SIEM administrator access, a test environment and named reviewers. Database access means the read access the design team needs to confirm event shape and volume on the PostgreSQL database behind your Zitadel instance. Zitadel supports PostgreSQL versions 14 through 18 for self-hosted deployments, so confirm your version before work starts. SIEM administrator access covers creating inputs, indexes, streams and rules in the target platform. A test environment lets the team replay events without touching production data. Named reviewers approve retention periods, field mappings and alert logic, and their availability often sets the schedule. Ask the written quote to list each item with its owner.
Can our own team run Zitadel audit logging without outside help?
Yes, a capable team can do this, but it needs more than Zitadel administration skills. The work spans identity events, the SIEM platform, log parsing, detection content and retention design. Skills to check include PostgreSQL backup and access control, SIEM administration such as Graylog index rotation and retention settings or Wazuh indexer operations, writing parsers and detection rules, and reviewing stored events for access and privacy issues. Graylog's index model rotates indices by message count, size or time and deletes the oldest indices under retention, so one person must own those settings. Assign a named owner to each area, write a runbook, and expect the first build to be a learning cycle. Outside help is most useful where your team lacks one of these skills.
Which SIEM should we pair with Zitadel, Wazuh or Graylog?
Choose the SIEM on licensing, operating model and the detection content your team needs. Wazuh is distributed under the GNU General Public License version 2, with an exception that permits linking with the OpenSSL library, and it has four components: the indexer, the server, the dashboard and agents on endpoints. Graylog Open moved to the Server Side Public License version 1 starting with Graylog 4.0, which is not an OSI-approved open source license. Graylog's pricing page lists Enterprise from 15,000 US dollars per year and Security from 18,000 US dollars per year, each with a minimum of 10 GB per day or 100 Graylog Compute Units, licensed on processed data. Confirm which streaming method your Zitadel version offers, and confirm that the platform you choose ingests it, before you compare costs.
How should we size retention and archive storage for Zitadel events?
Start from the retention periods your policies require, then size hot storage and archive separately. Retention periods come from your legal, regulatory and internal policies, so confirm them with your compliance lead and the policy owner. Graylog's system architecture guidance advises sizing log storage as daily ingest times retention days times 120 percent, and giving the message journal 3 to 5 times daily ingest on SSDs. As an illustrative calculation, a daily ingest of 1 GB kept for 30 days gives 36 GB under that formula before any further headroom. Archive design decides which older events stay searchable and how they are restored. Graylog Enterprise lists archive restore and data tiering among its features. Ask the quote for a written retention table per event category and a documented restore process.
Can the Console event viewer alone support security investigations?
The Console event viewer can answer single lookups, but whether it is enough depends on what your investigators must correlate, alert on and keep. Confirm what your Zitadel version's viewer filters, how far back it reads and whether results can be exported, since those details shape how investigators work. Investigations that span several instances, need alert rules or must match retention policies usually require the events in a SIEM. The Events API can feed custom tooling, but your team then owns that code and its upkeep. Test the workflow on a replayed set of events with the investigators who will use it, and record each gap before you decide where events should live.
What should a written quote for audit trail work include?
A useful quote lists scope, deliverables, assumptions, client dependencies, acceptance criteria and each cost component on its own line. Ask for the Zitadel instances and organizations in scope, the event types and volume assumptions, the SIEM and its license terms, the parser and detection content counts, the retention and archive design, and the test and reviewer dependencies. Mark each item as one-time or recurring, and state who pays for SIEM licenses and hosting. DeployOpen agrees scope, deliverables and timelines in writing before work starts, so ask that the document name each deliverable and the reviewer who signs it off. Also ask how changes to scope are priced and approved during the work.
How DeployOpen scopes and delivers audit trail and SIEM work
DeployOpen scopes Zitadel audit trail and SIEM streaming as a written, fixed-scope piece of work inside your own infrastructure. The scope fixes which events are reviewed, where they are read, how they leave Zitadel and how long they are kept. Each step is documented so your security, compliance and operations teams can review the result.
How we scope
- The written scope names the event sources, investigation roles and export destinations for your Zitadel instances.
- We confirm which retention period your policy requires before anyone configures export or storage.
- Scope also records which SIEM receives identity events and who owns alert triage on each side.
How we build
- We set up Console event viewer access and review who can read audit events in each organization.
- We build the Events API consumer and export path, then test it against known identity actions.
- Testing covers sign-ins, failed logins, role grants and user changes, confirmed in both Zitadel and the SIEM.
How we hand over
- Handover documents the event fields, filters, export configuration and retention settings used in your deployment.
- Your team receives runbooks for pulling an audit trail during an investigation or an audit request.
- Access to the Zitadel host, database and SIEM stays under your administrators after handover.
How we support
- Ongoing support, upgrades and continuous testing are available as a retainer after handover.
- Retention and export settings are reviewed at each Zitadel upgrade, so changes to events are checked.
- Ask your auditors which evidence they accept, because independent auditors decide what counts as sufficient.

