OT logs that survive an incident: what to record, where to keep it, and on which clock
A capping machine on a filling line stopped twice on a Sunday night. By Monday the line was running again, the batch was on hold, and two people were asking the plant for different evidence. The security engineer wanted to know whether anyone had reached the line’s supervisory server or its controller over the network. The quality lead wanted to know whether any good manufacturing practice (GMP) data had changed, and who had changed it.
The server’s Security log had rolled over during the weekend’s alarm flood. The firewall between the office network and the plant kept its log in memory, and a reboot on Monday morning had emptied it. The remote access gateway showed a vendor session on Friday afternoon, stamped eleven minutes away from the server’s clock, and nobody in the room could say which clock was right. In one variant or another, we meet this scene on most sites we assess.
Logging for an incident is designed backwards, from the questions people will ask on that Monday. Four decisions settle whether the answers exist: what each device records, where a copy goes, how long it stays, and which clock stamps it. The security log also has to be kept apart from the GMP audit trail: two records, two owners.
The questions come before the settings
Investigators ask which account, from which address, on which device, what was run or changed, and in what order. Quality asks whether a GMP record changed, whether the change is attributable to a person, and whether the batch still stands.
NIST SP 800-82 Rev. 3, the guide to operational technology (OT) security of September 2023, writes the first list into its logging section (§6.2.6.1): each entry should identify the device, the timestamp and the user or system account behind the event. The same section warns that collecting and forwarding events may affect an OT device’s performance, and that disk and memory are limited on most of them.
The joint guidance Best practices for event logging and threat detection, published in August 2024 by the Australian Signals Directorate (ASD) with CISA, the FBI, the NSA and partner agencies, ranks OT log sources: devices critical to safety and service delivery first, then internet-facing OT devices, then those reachable across network boundaries. For a plant with limited hands, that order is a plan.
Two records, two owners
EU GMP Annex 11, in its 2011 text, asks in clause 9 that “consideration should be given, based on a risk assessment, to building into the system the creation of a record of all GMP-relevant changes and deletions (a system generated "audit trail")”, and that audit trails be “regularly reviewed”. That record lives inside the application: a setpoint changed, a recipe edited, a result reprocessed. Quality reviews it with the batch, and clause 7.1 asks that access to data be ensured throughout the retention period.
Clause 12 is about security: controls restricting access to authorised persons (12.1), a record of the creation, change and cancellation of access authorisations (12.3). The evidence for it sits in the operating system, the directory, the firewall and the remote access gateway. The Annex 11 glossary gives the security of the data residing on a system to the system owner, not to the process owner who answers for the business process.
The two records meet in an investigation, and neither replaces the other. An action taken outside the application, a file copied, a service installed, a database edited with an administrator tool, usually leaves no line in the audit trail. A security log, for its part, rarely says which GMP value changed. Name both owners in the incident procedure, and say who pulls which record.

What each device can record, and what it costs the device
The ASD guidance is plain about the constraint: most OT devices run embedded software that is short of memory or processor, excessive logging could affect their operation, and some cannot produce detailed logs at all. Where that is the case, it recommends logging the network traffic to and from the device instead. On a typical line, the sources fall into eight kinds.
| Source | What it can record | How the copy leaves | What decides its value |
|---|---|---|---|
| Supervisory (SCADA) and HMI servers | Windows Security, System and PowerShell logs; the application’s own event log and audit trail | Windows Event Forwarding, or the vendor’s supported agent | A local log sized to cover a long weekend; audit settings under change control |
| Engineering workstation | The same Windows logs, plus project changes and downloads when the engineering tool records them | As for the servers | The host an intruder wants most, and often the least watched |
| Historian | Its own access and configuration logs; the process data itself as context | Export or forwarding from the application | It shows the effect on the process, rarely who caused it |
| Firewall at the IT/OT boundary | Allowed and denied connections, administrator logins, rule changes | Syslog to a collector | Allowed traffic logged as well as denied |
| Jump host or remote access gateway | Session start and end, account, source, approval; session recording where configured | Syslog or event forwarding; recordings to their own store | The only account of what a vendor did |
| Managed switch | Port up and down, new addresses on a port, administrator logins, configuration changes | Syslog or SNMP traps | Low volume; a new device on a port is worth an alert |
| Controller (PLC) | Diagnostic buffer: mode changes, downloads, faults | Read by the engineering tool, or seen on the network | A small buffer that overwrites itself; never raise logging without the vendor |
| Passive network sensor | Connections and industrial protocol commands: program download, mode change, writes | Its own monitoring network to the collector | No load on the controllers; the witness for devices that cannot log |
On many sites only denied connections are logged at the IT/OT boundary, because that is the default. After an incident, the question is almost always about a connection that was allowed. For the Windows hosts, the events worth recording are covered in reading an OT workstation’s event logs for intrusion.
Where a device cannot speak, the network speaks for it
Controllers, drives and older panels will never write a useful security log. A passive sensor on a mirror port or a network tap sees what is said to them, at no cost to the devices. ANSSI’s Doctrine de détection pour les systèmes industriels, version 1.0 of 3 December 2020, lists what is worth recording at process level: setpoints sent to actuators, program changes, alarm acknowledgements at the human-machine interface (HMI). Most of that is visible on the network even when the controller records nothing.
The principles for secure OT connectivity published on 14 January 2026 by the UK National Cyber Security Centre (NCSC) and partner agencies add the operational side in principle 7. Monitoring rules are often relaxed during maintenance, so the security operations centre (SOC) must know the planned windows and restore the rules outside them, and any use of a break-glass account should raise its highest-criticality alarm.
One clock, and evidence that every device follows it
NIST SP 800-82 Rev. 3 gives time synchronisation its own section (§6.2.12): one common time across OT devices, several sources in case one is lost, and authenticated Network Time Protocol (NTP) or Precision Time Protocol (PTP) where tampering with time is a risk. The time sources themselves belong in the monitoring, with their own logs forwarded.
The ASD guidance adds Coordinated Universal Time (UTC) as the preferred standard, ISO 8601 timestamps to the millisecond, and time that flows one way: OT takes its time from IT, never the reverse. In practice, two time servers inside OT, fed from outside, serve everything below them.
Synchronised is not the same as checked. Windows records a change of its system time (Security event 4616, in Microsoft’s baseline forwarding list); forward it. A controller that cannot follow NTP keeps its own time: record its offset at each periodic check. Time zones and the October clock change are their own trap, set out in metadata: the part of the record that makes the number mean something.
A copy the intruder cannot erase
The ASD guidance is direct on why logs leave the device: some actors modify or delete local logs to avoid detection. It asks for storage in a separate or segmented network, deletion limited to people with a justified need, Transport Layer Security (TLS) 1.3 and cryptographic integrity checks in transit and at rest, and backups of the logs.
Two transport details decide whether the copy is complete. Syslog over the User Datagram Protocol (UDP), says Request for Comments (RFC) 5426 of March 2009, has no mechanism to detect or correct lost datagrams. Windows Event Forwarding uses the local log as its buffer, and Microsoft notes that when that log overwrites events, nothing tells the collector there is a gap. The local log size is the safety margin, and a silent source must raise an alert, as NIST SP 800-92 §5.5 (September 2006) asks.

Put the first collector inside OT, at the operations level: if the site isolates its plant network from the office during an incident, the logs keep arriving where the investigators need them. The NCSC goes further in principle 8: a data diode carrying telemetry and logging can stay up while the rest of the site is isolated.
Keep the raw events as well as the parsed ones. ANSSI’s doctrine distinguishes raw events, archived as collected and which may have legal value, from events normalised for analysis. A hash of each daily raw file, stored apart, costs little.
How long is long enough
The ASD guidance gives no number for OT. Default retention periods, it says, are often insufficient; retention should follow a risk assessment and any applicable regulation; and it cites cases where an incident took up to 18 months to discover. The usual failure is simpler: storage runs out and the system overwrites its oldest logs.
One published benchmark is the US memorandum M-21-31 of 27 August 2021, binding only on federal agencies: for the log categories it lists, at least 12 months in active storage and 18 months in cold storage, and 72 hours for full packet capture.
An audit trail is part of the record it documents and is kept as long as that record. Security logs follow the site’s own rule, written in days of coverage per source, measured, not in megabytes.
The remote session is the first log anyone asks for
In a SANS Institute blog post of 5 January 2026, drawing on the SANS 2025 survey of industrial control system (ICS) security, Michael Hoffman reports that, according to SANS, half of the ICS/OT incidents respondents reported came through external connectivity or remote access, and only 13 per cent of organisations fully implement session recording and replay. A virtual private network (VPN) and multi-factor authentication say who connected, not what they did.
The session log, the approval and, where possible, the recording should land in the same protected store as the rest, under the same clock. How to build the access itself is the subject of vendor remote access without opening your cell network.
IEC 62443-3-3:2013 covers the same ground in eight system requirements (SR), paid, so only their titles here: SR 2.8 Auditable events, SR 2.9 Audit storage capacity, SR 2.10 Response to audit processing failures, SR 2.11 Timestamps, SR 2.12 Non-repudiation, SR 3.9 Protection of audit information, SR 6.1 Audit log accessibility and SR 6.2 Continuous monitoring. Ask a supplier which of them its system meets.
Where to start
- Measure the horizon. On one line, for each of the eight kinds of source, note the date of the oldest event still held and the clock offset against the site time server. It is done when both figures are written in the system file.
- Send one copy out. Forward the boundary firewall, the jump host and one supervisory server to a collector inside OT, under change control, and alert on a silent source. It is done when a source stopped on purpose raises the alert within a shift.
- Write who pulls what. Add to the incident procedure who extracts security logs and who extracts audit trails, from where, with which hashes. It is done when a tabletop exercise has followed it once; the OT incident decisions to take before the call gives the frame.
Five common mistakes
- Logging only what the firewall denied. The connection that matters after an incident was allowed.
- Keeping the only copy on the device. A full buffer, a reboot or an intruder removes it, and nothing says it is gone.
- Turning up controller logging without the vendor. The device has the least margin on the line; a sensor on the network costs it nothing.
- Treating the audit trail as the security log. It records what the application saw, not what happened around it.
- Synchronising clocks and never checking them. An unexplained offset in the room turns every timeline into an argument.
The logs an investigation needs are decided months earlier, by whoever set a buffer size, a clock and a forwarding rule. Make that somebody’s job before the Sunday night.
References
- ASD’s ACSC, CISA, FBI, NSA and partners, Best practices for event logging and threat detection, 22 August 2024: ic3.gov
- NCSC-UK and partners, Secure connectivity principles for Operational Technology (OT), 14 January 2026, principles 7 and 8: ncsc.gov.uk
- NIST SP 800-82 Rev. 3, Guide to Operational Technology (OT) Security, September 2023, §6.2.6.1 and §6.2.12: csrc.nist.gov
- NIST SP 800-92, Guide to Computer Security Log Management, September 2006, §5.5: csrc.nist.gov
- ISA-62443-3-3 (99.03.03)-2013, System security requirements and security levels, table of contents: isa.org
- ANSSI, Doctrine de détection pour les systèmes industriels, version 1.0, 3 December 2020: cyber.gouv.fr
- EudraLex Volume 4, Annex 11: Computerised Systems (2011), clauses 7.1, 9 and 12 and glossary: health.ec.europa.eu
- Microsoft Learn, Use Windows Event Forwarding to help with intrusion detection: learn.microsoft.com
- Office of Management and Budget, memorandum M-21-31, 27 August 2021, appendix C: whitehouse.gov
- SANS Institute, Michael Hoffman, Why VPN and MFA Is Not Enough for OT, 5 January 2026: sans.org
Related articles
All articles- Reading an OT workstation’s event logs for intrusion, without installing anything on itDeepBlueCLI reads exported Windows event logs for the traces of a hands-on intruder. What an OT site must record first, and how to triage what it…
- Isolate, run by hand or keep producing? The OT incident decisions to take before the callAn OT incident plan is mostly decisions taken in advance: which response each area allows, who may order it at night, and how the batch is judged…
- Metadata: the part of the record that makes the number mean somethingA value of 23 means nothing until you know its unit, its source, its time and who produced it. Where metadata is lost between instrument and report…
EUCALEX
Have a project or a technical challenge?
Contact us: we will be pleased to discuss it with you, with no commitment.
Discuss your project with usStay informed
Receive new EUCALEX articles and technical insights by email.
