Strapi audit logs

Strapi audit logs record admin actions for teams that must show who changed content, settings and access. This page explains what is recorded, how retention and CSV export work, and how to ship evidence to a SIEM.

On this page

Strapi audit logs: when editorial accountability needs an admin trail

When a regulated team has to show who changed content types, roles, publishing settings or admin configuration in Strapi, the answer cannot rest on memory or on the content itself. Audit logs are an Enterprise feature in Strapi's self-hosted plans, as listed on the Strapi self-hosted pricing page, so the first decision is whether your organization needs that plan tier for this purpose before any other design work starts. Confirm the current plan entitlements directly with Strapi, because the pricing page is the source for plan contents and those may change.

The feature records administrative actions in the Strapi admin panel so that a reviewer can reconstruct who did what and when. Its output serves three groups with different questions. Compliance teams need evidence that changes to publishing and access followed the approval rules. Security operations teams need the trail to investigate unexpected role grants or configuration changes. Platform owners need it to confirm that schema changes and admin settings were made by the people authorized to make them. Each group should agree in advance which events they will review and how often, because an unread log provides no assurance.

Audit logs are not content history or a database backup. Content history tracks versions of individual documents for restore purposes, and its retention differs by plan. Database backups restore data state but do not explain who made a change. Confirm with Strapi exactly which admin events are captured and how long they remain in the admin panel before you rely on them as the record of accountability.

Audit log options and when each fits

This table compares the four ways to use Strapi audit logs: the admin view, the default retention window, CSV export and SIEM forwarding. Read each row against your review cadence and retention obligations, then confirm the specifics in the current Strapi docs before you commit to a design. The main takeaway is that the built-in view covers short-term review, while longer retention usually needs data moved out of Strapi.

OptionWhat it is forWho uses itWhat to confirm
Built-in audit log viewReviewing recent admin actions such as content edits, role changes and logins inside the admin panelAdministrators and security reviewers investigating a specific eventWhich event types appear and whether the view filters by user, action and date
Default retention windowKeeping audit records available in Strapi for a set period before they age outCompliance leads deciding whether Strapi alone meets their log retention ruleThe default period, whether it can be changed in configuration and what happens to older records
CSV exportPulling a snapshot of audit events for periodic review, sign-off or an assessor requestCompliance and internal audit teams running scheduled reviewsWhether the export covers every event type, the columns included and any row or date limits
SIEM forwardingSending audit events to a central store for longer retention, correlation and alertingSecurity operations teams and organizations with long retention rulesWhether forwarding is available for your self-hosted Enterprise setup and which delivery method and format it uses

How an admin action reaches the audit trail and the SIEM

The flow starts when an administrator changes content or settings in the Strapi admin panel. The Strapi server records each action as an audit event in its own store, where the default retention is 90 days. Teams review events in the admin audit log or export them to CSV. A log shipper running in your infrastructure forwards the same events across the trust boundary to your SIEM, which holds them for longer. Check that the shipper delivers every event type and that the SIEM retention matches your policy.

Admin actions reach the in-product trail, CSV export and the SIEM.

What Strapi records and what teams must verify

An audit trail for Strapi admin activity should answer four questions after an incident: who did it, when, what they did and what it touched. For an investigation, the most useful categories are logins (successful and failed admin sign-ins, which show account takeover attempts and dormant accounts that suddenly become active), role and permission changes (which show privilege escalation, the most common way an internal change becomes a data exposure), content and schema changes (which show who edited, deleted or restructured records and content types), publishing actions (which show what reached the public API and when) and settings changes (which show modified API tokens, SSO configuration or provider settings). Each category matters because it lets a reviewer reconstruct a sequence rather than a single event.

Do not assume the log covers all of this. Before you rely on Enterprise audit logs for evidence, confirm the exact event list in the current Strapi Enterprise documentation, then check it on a test instance by performing each action yourself and reviewing what appears. For each event, confirm which fields are recorded, specifically the actor, the timestamp, the action and the target, and whether the target identifies the specific document or only the content type. Also confirm whether end-user API activity, such as requests made through the Users and Permissions plugin, is included or only administrator activity inside the admin panel. Record the answers in your control documentation, because an auditor or incident responder will ask for them directly.

Treat these checks as a gate, not a formality. If a category your investigation needs is missing or lacks the target or actor, plan a compensating source before go-live, such as reverse proxy access logs, database audit features or the identity provider's sign-in records for logins. Assign an owner to confirm the event list again after each Strapi upgrade, because the set of recorded events can change between releases. Ask your vendor or partner to show these results in writing as part of the scope, so the answers are documented before any production data enters the system.

How to set up audit logs in a self-hosted Strapi project

This sequence takes a self-hosted Strapi project from license check to verified audit trail, covering staging validation, retention, CSV export and SIEM forwarding. Each step closes with a check you can record as evidence.

  1. Confirm the Enterprise license covers audit logs

    Before any configuration, confirm with Strapi Solutions or your contract that your self-hosted plan is Enterprise. Audit logs are listed as an Enterprise feature on the self-hosted pricing page, and Growth does not include them. Ask for the license terms in writing, including how the Enterprise code under the ee directories is licensed, since that license is separate from the MIT Expat license that covers the Community Edition. The step is done when you hold a written confirmation that names audit logs and matches the license under which your project runs.

  2. Confirm version, Node.js and database compatibility

    Check the Strapi version you run against the installation requirements, and confirm that your Node.js release is Active or Maintenance LTS and that your database is PostgreSQL 14 or later, MySQL 8.0 or later, MariaDB 10.3 or later, or SQLite 3. Strapi 5 does not support MongoDB or other NoSQL databases. Record the exact versions in your change ticket. Also confirm that v4 is no longer supported, since Strapi v4 reached end of life on April 30, 2026. The step is done when a written compatibility record lists every version and each one matches the requirements.

  3. Enable and verify audit logging on staging

    Enable audit logging on a staging instance that mirrors production configuration, following the current Strapi Enterprise documentation for your version, and restart the instance so the setting takes effect. Confirm the audit log view appears in the admin panel for a user with the appropriate role. Ask your Strapi contact which admin roles can view and export logs in your version, and confirm that the configuration is stored in version control with the rest of your project. The step is done when the audit log view loads on staging and the configuration change is committed.

  4. Generate test admin actions and confirm they appear

    Using test accounts with distinct roles, perform a set of known admin actions: sign in, create and edit a content type entry, publish, change a role, and create or remove another admin user. Note the time and actor for each action in a test log kept outside Strapi. Then open the audit log and check that each action appears with the correct actor, action type and timestamp. The step is done when every test action appears in the log and the notes match, and any missing event is raised with Strapi before you continue.

  5. Configure retention for your policy

    Strapi's audit logs keep events for 90 days by default. Confirm with the Strapi documentation for your version how retention is changed, and set the value that matches your written log retention policy, not the default by habit. Document who approved the setting. If your policy requires a longer period than the platform keeps locally, plan the SIEM forwarding in the final step as the system of record. The step is done when the retention setting is applied on staging, recorded in your configuration, and signed off against the policy.

  6. Run a CSV export and check its columns

    Export the audit log to CSV from the admin panel for the test period, then open the file and check that it contains the expected columns for event time, actor, action, target and result. Compare the row count against the number of test actions you performed, and confirm that timestamps are readable and that actor names match the test accounts. Store the export with a checksum in your evidence location. The step is done when the CSV contains all test rows with the expected columns and the checksum is recorded.

  7. Forward audit events to the SIEM and verify

    Configure forwarding from your Strapi environment to your SIEM using the method your Strapi version and your SIEM support, such as a log shipper reading the audit output or an API integration. Confirm the transport with your SIEM team and check network and credential handling. Then repeat the test admin actions and search the SIEM for them. The step is done when each test event arrives in the SIEM with the original timestamp, actor name and action intact, and the forwarding configuration is documented for production rollout.

Choosing between in-product retention, CSV export and SIEM forwarding

A team that needs to answer who changed a content type or role last week usually needs little more than the audit log view inside the admin panel. The log lives in the same place the team already works, so there is no second system to run. The limit is the retention window, and the people who can read the log are the people who already hold administrator rights.

  • Retention: the default window is 90 days, as the feature is described, but the window you can change depends on your version and settings, so confirm both before relying on them.
  • Effort: setup is light beyond the Enterprise plan and admin access, which makes this the lowest one-time effort of the three options.
  • Access control: anyone who can open the log can see administrator actions, so limit the permission to a small named group.
  • Evidence ownership: the platform team owns the data, which sits in the same database as the content, so a database loss without a backup also loses the trail.

Before an investigation depends on this view, check whether the retention setting applies per instance and whether it survives upgrades.

Securing the audit trail and the export path

An audit log is only useful if its records can be trusted and read by the right people. The controls below cover who can view and export events, how exported files and forwarded events are protected, and how the stored trail itself is kept intact. Each card names the check that shows the control works.

Restrict who can view audit logs

Audit data shows who changed content, roles and settings, so viewing it is itself sensitive. Confirm which admin roles can open the audit log screen and which can export it, and limit both to the compliance or security staff who need them. Check by signing in as a role outside that group and confirming the audit log is not reachable.

Strapi SSO docs

Treat CSV exports as sensitive records

A CSV export copies actor names, emails, IP addresses and content identifiers out of Strapi into a file that is easy to forward by accident. Store exports in a restricted location with encryption at rest, set an owner and a deletion date, and log who downloaded them. Check that a test export lands only in the approved location and that its access list matches the policy.

Secure the SIEM transport and credentials

Forwarding events to a SIEM means a service account or API key that can write to another system, and events travelling across the network. Use TLS for the connection, issue a dedicated credential with write-only rights, and store it in a secrets manager rather than in config files. Check by rotating the credential in a test environment and confirming forwarding resumes without a shared login.

Synchronize clocks across systems

Timestamps from Strapi, the database, the reverse proxy and the SIEM must agree, or an investigation timeline will not line up. Confirm each host syncs to the same trusted time source and record the time zone used for exports. Check by performing a known admin action and confirming its timestamp matches the proxy and SIEM entries within the tolerance your incident process sets.

Protect the events database and backups

The audit events live in the Strapi database, so anyone who can alter or delete rows can remove evidence. Restrict direct write access to the database, enable backups with restricted access, and keep at least one copy outside the application's control. Check by restoring a backup to a test instance and confirming the audit events from the chosen date range are present.

Control who changes retention settings

Changing how long events are kept is a decision that affects evidence availability, so it should not be a casual config edit. Put retention settings under change control in your configuration repository, require review for changes, and record the approver. Check by attempting a change outside the approved path and confirming it is blocked or caught in review.

Questions teams ask before hiring help with Strapi audit logs

What drives the cost of setting up Strapi audit logs?

The cost follows the amount of planning, configuration and integration work, not the Strapi feature itself. The main cost drivers are deciding which admin actions must be retained, confirming Enterprise plan access, setting up export or shipping to your SIEM, and testing that records arrive complete and with correct timestamps. Ongoing costs come from SIEM storage and license growth, plus periodic reviews of retention. Ask any quote to itemize discovery, configuration, SIEM integration, testing and handover separately, so you can see which parts your team can take on. Enterprise pricing is custom, so confirm the license cost directly with Strapi using the Strapi self-hosted pricing page.

How long does a Strapi audit log rollout take?

Duration depends on the factors that change the work, not on a fixed figure. The biggest variables are how many Strapi instances need logging, whether a SIEM is already in place, how long the retention policy takes to approve, whether the SIEM team must build new parsers or dashboards, and how many change windows production allows. A rollout on one instance with an existing SIEM pipeline usually moves faster than a multi-instance setup that needs new log routing. Fixed-scope work is agreed in writing before it starts, so ask for the timeline and the assumptions behind it in the written scope. Confirm the export options available for your Strapi version in the current Strapi documentation before the plan is fixed.

What does our internal team need to provide for Strapi audit logs?

Your team supplies access, environments and decisions that only your organization can make. The usual inputs are:

  • Enterprise plan access on the Strapi instances in scope, with an admin account that can change settings
  • A staging instance that matches production closely enough to test exports and retention
  • A named SIEM owner who can confirm ingestion format, parsing, storage and alert rules
  • A written retention policy from compliance or legal, including how long admin action records must be kept
  • Test admin accounts with the roles you use day to day, so the logs show realistic actions
  • A change window for production changes and an approver for the final configuration
Can our team set up Strapi audit logs without outside help?

A team with Strapi administration skills and a SIEM engineer can usually configure the feature alone, because the core steps are plan access, settings in the admin panel, and an export or shipping process. The harder parts are designing retention so it matches policy, proving that the exported records are complete, and documenting the evidence for auditors. Most internal teams find the gap is in testing and handover, not in the first configuration. Before deciding, list who will own the export job, who will check it each month, and who will answer an auditor's question about a specific admin action. If any of those owners are unclear, that is the point where outside help adds the most value.

Why does the Enterprise plan matter for Strapi audit logs?

Audit logs are an Enterprise feature in Strapi's self-hosted plans, so the plan decision comes before any technical design. The Growth plan, listed at 45 US dollars per month including 3 users, does not include audit logs, and its SSO is an add-on rather than included. Growth does include content history and releases, which cover some editorial needs but do not record admin actions for accountability. If your compliance team needs a record of who changed roles, content types or permissions, budget for Enterprise from the start. Enterprise pricing is custom, so request a quote from Strapi and check the current feature list on the pricing page before you commit.

How are Strapi audit logs different from content history and database backups?

Each tool answers a different question. Audit logs record who performed which admin action and when, which supports accountability and investigation. Content history keeps earlier versions of documents so editors can compare and restore them, and it starts at the Growth plan with retention that varies by plan. Database backups restore the whole system to an earlier state after a failure or bad change, but they do not show who did what between backups. Audit logs do not replace backups, and backups do not replace audit trails. Plan for all three when records must be defensible, and confirm each retention period against your policy.

What should a SIEM team check before accepting Strapi audit log data?

The SIEM team should confirm that the data is usable before it becomes evidence. Check these points:

  • Field names, event types and timestamps, including the time zone used
  • Whether export is a scheduled file transfer or a streamed feed, and how gaps are detected
  • How duplicate or repeated records are handled when an export job reruns
  • Access controls on the log store so admin action records cannot be edited by admins being monitored
  • Retention in the SIEM that matches the written policy, since the default retention in Strapi is 90 days
  • Alert rules for high-risk actions such as role changes and permission edits

Limits to confirm in your environment

Strapi audit logs sit behind an Enterprise license, and several details that matter for compliance evidence are not settled by the public material alone. Treat each item below as a question to close with Strapi and in a test environment before you write it into a control or a retention commitment.

Default retention and changeability

Confirm the default retention period for audit log entries in your Strapi version and whether your Enterprise setup lets you change it. Ask Strapi where the setting lives, who can change it, whether a change applies to existing entries, and what happens to entries older than the limit. Record the answer for your retention schedule.

Retention default
90 days

Export format and size limits

Test the CSV export on a realistic volume of admin activity. Check the column set, how timestamps and timezones are written, how user identifiers appear, and whether large exports are truncated or paginated. An export that silently drops rows is a weak evidence source, so compare row counts against the admin panel.

Native SIEM forwarding or custom integration

Ask whether Strapi forwards audit events to an external SIEM natively, through a supported log stream, or only through a custom integration you build and operate. Confirm the transport, format, delivery guarantees and what happens during an outage. This decides who owns the pipeline and who is accountable when events go missing.

Excluded events

Ask Strapi for the complete list of admin actions that are recorded and the list that are not. Pay particular attention to read access, failed logins, permission changes, API token activity and actions taken through the MCP server or plugins. Any gap should be covered by another control before an auditor asks about it.

Strapi Cloud versus self-hosted behavior

Confirm whether audit logs on Strapi Cloud follow the same retention, export and forwarding behavior as a self-hosted Enterprise installation. If your audit evidence must stay in your own infrastructure, record where Cloud stores the logs and who can request them. Do not assume parity between the two hosting models.

Enterprise license terms

Read the Enterprise license terms that cover the ee directories and confirm which features, support and updates your contract includes. Ask whether you may retain exported logs, share them with an external auditor or host the SIEM integration, and what changes if the subscription lapses. Have legal review the answers.

Strapi license file

How DeployOpen scopes and delivers Strapi audit logging

DeployOpen plans and delivers Strapi audit logging inside your own infrastructure, starting from a written scope that names the Enterprise plan, retention targets and the SIEM you already run. The work is documented and handed over so your compliance and security teams can review what is recorded and how it is kept.

How we scope

  • We confirm your Strapi plan and whether audit logs are available on it before any build work starts
  • We agree which admin actions must be evidenced and how long each record must be kept
  • We document the SIEM, export format and access roles that the written scope will cover

How we build

  • We configure the Enterprise audit log settings and check retention against your agreed period
  • We set up scheduled CSV exports or log shipping to your SIEM in your own environment
  • We test sample admin actions end to end, confirming each one appears in the exported evidence

How we hand over

  • We deliver a runbook covering retention settings, export steps, access control and recovery
  • We document which events are recorded, which are not, and what your team must confirm
  • We walk your operations and compliance staff through the evidence they will request

How we support

  • Ongoing support, upgrades and continuous testing are available as a retainer
  • We can retest log shipping after Strapi upgrades or SIEM changes
  • Engagements are fixed-scope, so changes to retention or sources are agreed in writing

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.