OpenCloud · Audit log
Audit log for SIEM and certifications
If you run OpenCloud yourself, certifications and incident investigations require you to prove who did what. The new audit log in 9.3.0 records the actor, address, login method and outcome of every action, including failed and denied ones. It uses field names from OpenTelemetry and OCSF, so it arrives in your SIEM without a custom parser. It never writes passwords, tokens or file contents.
An organization that stores its files on its own servers instead of with a large provider is choosing control: it knows where the data lives, who maintains the machines and what code runs on them. That control stays incomplete, though, as long as it can't be proven. When a certification comes up, an auditor asks for the logs or an incident has to be investigated, having the servers in your own data center is not enough. The questions then are who opened, shared or deleted which file and when, who tried to log in without success, and from where. For many organizations, contracts or eligibility for public tenders depend on these answers.
Open source makes such evidence easier from the start, because every line of code can be inspected. If you want to know whether a piece of software secretly sends data to third parties, you can check instead of relying on an assurance. What was missing so far was a log that fully answers the questions of auditors and security teams. OpenCloud's old audit log named the file's owner for file actions instead of the person who acted, recorded no client address and only saw successful actions, so failed logins were missing. It also counted downloads as soon as they started.
Structured JSON events
With OpenCloud 9.3.0, a newly built audit log replaces the old one. Each event is one line of JSON that records what happened, when, who acted, how that person logged in, which address they came from, which object was affected, and whether the action succeeded, failed or was denied. A failed login looks like this:
{"event.name":"opencloud.auth.login","event.code":"A001F","time":"2026-10-28T09:14:03.512Z","outcome":"failure","outcome.reason":"invalid_credentials","severity":"warning","actor.type":"user","actor.name":"alice","auth.method":"basic","client.address":"203.0.113.7","user_agent.original":"Mozilla/5.0 ...","target.type":"user","target.name":"alice","service.name":"proxy","ocsf.class_uid":3002}
Someone trying out passwords leaves a series of failed logins with address and client, which a SIEM recognizes as a pattern. A user who tries to grant themselves a higher role shows up as a denied action instead of not appearing at all. An aborted download is recognizable as such, which is decisive when the question is whether data left the organization. Access through public links carries the link as the actor, and guests appear as guests, so you can reconstruct there too how a document was opened.
ISO 27001, BSI and OpenTelemetry
An organization without its own security department should still be able to get certified. That is why the log doesn't require a self-written parser that has to be maintained and breaks with the next update. The field names follow the OpenTelemetry semantic conventions, which tools such as Splunk or Elastic already understand. Each record is also assigned to a class of the Open Cybersecurity Schema Framework (OCSF), which AWS Security Lake and Google SecOps, among others, normalize to. Every event is defined exactly once in a catalog and carries a stable code, such as A001F for a failed login. New fields may be added, existing ones don't change. An alert rule written today still works after the next release, and for a small IT team the effort stays a one-time setup.
ISO/IEC 27001 requires in control A.8.15 that activities, errors and security-relevant events are recorded and retained. IT-Grundschutz, the baseline security methodology of Germany's Federal Office for Information Security (BSI), calls in OPS.1.1.5 and DER.1 for such events to be collected and analyzed centrally, while the BSI's C5 criteria catalogue for cloud services describes logging and monitoring of cloud services in OPS-10. In Articles 21 and 23, NIS2 obliges affected entities to handle incidents in a structured way and to send an early warning within 24 hours, and the GDPR requires data breaches to be reported within 72 hours. With the new log you can answer questionnaires on these requirements with evidence. Tamper-proof retention, for example in WORM storage or in the SIEM, remains the operator's responsibility, as does the certification itself.
Just as important for an audit is what the log doesn't contain. Passwords, tokens and file contents are never written. Public links appear with their share ID, and for a failed access with a hash of the token, while for changed links the log only notes whether a password is set. A log full of passwords and tokens would itself be a security risk and would violate the data minimization the GDPR requires.
Delivery via NATS and OTLP
Proxy, Graph, Frontend, Sharing and Storage-Users write their events to a stream in NATS. The audit service reads them from there and writes them to stdout or sends them via OTLP to an OpenTelemetry Collector. The stream buffers for seven days. An event only counts as delivered once all outputs have written it, so a Collector outage delays delivery but doesn't lose a single record. Because the services write in the background, no request gets slower because of the audit log.
You turn the log on with OC_AUDIT_ENABLED=true and OC_ADD_RUN_SERVICES=audit; without this setting the previous log keeps running unchanged, but it is deprecated. During rollout, a lot depends on the client address. OpenCloud only takes it from X-Forwarded-For when it comes from trusted reverse proxies, by default from private networks. If your reverse proxy sits in a public network, for example with a CDN or behind a cloud provider's load balancer, its addresses belong in PROXY_TRUSTED_PROXIES. Otherwise every login in the SIEM appears to come from the same address, and the question of where someone acted from would stay unanswered.
The first step covers login, files, shares, links, spaces, users, groups and roles. App and guest tokens, copies, deleted versions, malware findings, settings and CLI commands will follow, together with guides for connecting common SIEM systems.
Sources
- feat: new audit log, GitHub, 2026-11-26
- fix: audit log follow-ups from the review, GitHub, 2026-11-27
- Audit service README, GitHub, 2026-11-27
- ADR 0006: Audit Logging, GitHub, 2026-11-26