Bluemation

Audit Trail in TIA Portal: traceability with WinCC Audit, FDA 21 CFR Part 11 and Annex 11

Who changed a setpoint, when, from which value to which, and why. Here is how the Audit Trail works across the Siemens TIA Portal ecosystem, and how we configure it so it passes a GMP audit without burying the plant in paperwork.

Back to Blog

What is an Audit Trail?

An Audit Trail is a secure, chronological and tamper-evident record of actions that change quality-relevant data. Every entry answers four questions: who made the change, what changed (old and new value), when it happened and, optionally, why. It is not the same as alarm or trend history: those record what the process does, while the Audit Trail records what people do to the process.

On an HMI or SCADA, that means logging actions such as changing a sterilisation temperature, loading a recipe, adjusting a mixing time, switching equipment to manual or acknowledging a critical alarm. For a refresher on each visualisation layer, see what is an HMI and our guide to real-time SCADA.

The framework auditors work with is ALCOA+: data must be attributable, legible, contemporaneous, original and accurate, as well as complete, consistent, enduring and available. A well-designed Audit Trail is the technical piece that lets you prove it.

What the regulations require

The requirement for an Audit Trail comes mainly from regulated industries, although more and more customers in other sectors now write it into their specifications. These are the references we work with on projects:

Regulation or guide Scope What it asks for in practice
FDA 21 CFR Part 11 Manufacturers selling into the US (pharma, medical devices, regulated food) Secure, computer-generated, time-stamped electronic records, electronic signatures linked to the record, access control and protection against alteration.
EU GMP Annex 11 Computerised systems in EU pharma Risk-based Audit Trail, reason for change on GMP data, periodic review of the log and system validation.
GAMP 5 ISPE good practice guide Risk-based validation: requirements specification, testing and traceability between the two.
Regulation (EC) 178/2002 EU food safety Batch traceability, which on the shop floor relies on logging process parameters and operator actions.
IEC 62443 Industrial cybersecurity Logging of security events and user actions, individual identification and role-based access control.

One important caveat: no tool is "compliant" on its own. The software provides the technical functions; compliance is completed by procedures (change control, log review, training) and by validating the specific system. For WinCC Unified, Siemens publishes an ERES compliance response that maps every Part 11 and Annex 11 requirement to product functions, and we use it as the starting point for the functional specification.

Where the Audit Trail lives in the TIA Portal ecosystem

When a customer asks for an "Audit Trail in TIA Portal", they almost always mean runtime logging on the HMI or SCADA. But full traceability of a Siemens system spans several layers, and it pays to separate them from the specification stage:

Layer What is traced Tool
HMI / SCADA runtime Changes to setpoints, recipes, modes and acknowledgements by operators WinCC Audit option (Unified, Advanced/Professional and supported panels)
Users and access User creation, removal, lockouts, roles and password expiry UMC (User Management Component), optionally integrated with Active Directory
Engineering Changes to the PLC program and HMI project Project versioning, Multiuser Engineering / Project Server and version control
Safety program Changes to the fail-safe program F-program signatures and STEP 7 Safety administration

The engineering layer is the one most often forgotten: logging every setpoint change is of little use if anyone can download a new PLC program without control. That is why we protect CPU access with protection levels, version every download and, on machines with functional safety, document the F-program signature as explained in our S7-1500 Safety guide.

WinCC Unified Audit: how it works

In WinCC Unified, the Audit Trail and electronic signatures are enabled by the WinCC Unified Audit option, available as Basic and Enhanced. If you are still choosing a platform, our WinCC Unified vs WinCC Comfort/Advanced comparison covers both generations. The key building blocks are:

  • GMP configuration in runtime. It is enabled in the device's runtime settings, after which GMP properties appear on tags.
  • GMP-relevant tags. Engineering decides which tags are relevant. Each one has a confirmation type: none (logged only), acknowledgement (the operator confirms the action) or electronic signature.
  • Electronic signature. The operator re-enters their password to confirm the action, and the signature is stored in the log with user name, timestamp and action. The Enhanced variant supports dual signatures: one user performs the action and another approves it, typical for batch release.
  • Reason for change. Each tag can have an optional or mandatory comment, which is how the Annex 11 "why" is covered.
  • Record integrity. Every record carries a checksum. The Audit Trail can be exported and archived as a separate file, and its integrity is verified when it is loaded into the viewer.
  • Audit Viewer. A runtime control shows the log with old value, new value and reason columns, savable filters and a unique object identifier, so the quality manager can review it without leaving the system.
  • Parameters and recipes. Downloading parameter sets (Parameter Control) and changing individual parameters can be logged in the Audit Trail if configured.

On projects with WinCC Advanced or WinCC Professional on PC, and on Comfort Panels, the concept is the same using that generation's WinCC Audit option: GMP tags, electronic signature, checksummed log and viewer. The difference lies in the storage architecture and the review tools, which are more tightly integrated in Unified.

User management: the foundation of any Audit Trail

An Audit Trail is only attributable if every person logs in with their own account. Generic users such as "operator" or "maintenance" invalidate the log, however well it is configured. In the Siemens world, central user management is handled by UMC, which builds on Windows technology and can integrate with Active Directory. UMC provides what auditors look for:

  • A unique ID per person and roles with permissions defined by job function.
  • Password policies: expiry, complexity and lockout after repeated failed logins.
  • Automatic logoff on idle operator stations.
  • Logged user changes: creations, removals and lockouts are traced.

Stand-alone panels without a network can use local user management, but that must be backed by procedure, because local user changes are not traced to the same extent. This ties in with the segmentation and identity management we describe in industrial OT/IT cybersecurity.

Step by step: how we configure an Audit Trail in TIA Portal

This is the sequence we follow on site. The order matters: half of the work happens before TIA Portal is even opened.

1. GMP data assessment and specification

Together with the quality manager we walk through the process and classify each data point: product-critical, relevant or informational. The output is a list of GMP tags with their confirmation type and whether a comment is mandatory. That list becomes part of the functional specification and the reference for testing.

2. Roles and users

We define the role matrix (operator, supervisor, quality, maintenance, administrator) and what each role can do on each screen. We configure UMC or local user management depending on the architecture, and set password and logoff policies.

3. Tag structure in the PLC

We group GMP setpoints into dedicated data blocks and user-defined types (UDTs), separate from process tags. That keeps GMP property assignment systematic and ensures a future extension does not leave critical tags unlogged. On new projects, starting from a hardware configuration generated from the schematic, as described in integrating Eplan with TIA Portal via AML, helps keep naming consistent.

4. GMP configuration in WinCC

We enable GMP in runtime, flag the relevant tags, assign confirmation type and comment, and configure which recipe or parameter actions must be traced.

5. Review screens

We place the Audit Viewer on a screen available only to authorised roles, with preset filters (by batch, by shift, by equipment) so periodic review is quick.

6. Time, storage and backup

A log with wrong timestamps is worthless. We synchronise PLC, HMI and server clocks to a common NTP source, define where the log is stored and archived, how long it is retained and how it is backed up. On panels, we make sure the log is transferred off the memory card regularly.

7. Testing and validation

We run the test protocols (FAT and, on site, installation and operational qualification), checking tag by tag that logging, signature and comment behave as specified, including negative cases: unauthorised user, wrong password, cancelled signature. We deliver a traceability matrix linking each requirement to its test.

Common mistakes

Most of the findings we see in audits are not caused by the software but by the way it was applied:

  • Shared accounts. One user per shift makes the log non-attributable.
  • Flagging everything as GMP. Thousands of irrelevant entries a day make review impossible and teach operators to sign without reading.
  • Setpoints writable through another path. If a GMP tag can be changed from another HMI, a script or an engineering connection without logging, the Audit Trail has a hole.
  • Unsynchronised clocks across PLCs, panels and servers.
  • Nobody reviews the log. Annex 11 calls for periodic review; without a procedure and a screen designed for it, it does not happen.
  • Uncontrolled program changes. Without versioning and CPU access protection, runtime traceability loses its value.

Audit Trail beyond pharma

Although it started in pharma, we increasingly deploy it in other sectors. In food and beverage, logging setpoint and recipe changes complements batch traceability; in our TIA Portal bottling line success story we traced batches and process parameters with an S7-1500 and WinCC Unified. In chemicals, cosmetics or water treatment, the Audit Trail helps investigate incidents, answer customer audits and meet the logging requirements of IEC 62443.

It is also the right moment to bring it in when modernising a plant. If you are migrating from S7-300 to S7-1500 or replacing a legacy SCADA, adding the Audit Trail to the new architecture costs far less than retrofitting it later. And if the log data needs to reach quality systems or the ERP, we handle it as explained in integrating ERP with plant data.

Frequently asked questions about Audit Trail in TIA Portal

Does TIA Portal include an Audit Trail out of the box?

No. Logging operator actions and electronic signatures at runtime requires the WinCC Audit option, which is licensed separately. For WinCC Unified it comes in two variants, Basic and Enhanced, the latter adding dual electronic signatures.

Does installing WinCC Audit make a system FDA 21 CFR Part 11 compliant?

Not on its own. WinCC Audit provides the required technical functions (secure records, electronic signatures, access control), but compliance also depends on the regulated user's procedures: change control, periodic audit trail review, training and system validation.

Which tags should be recorded in the Audit Trail?

Only those relevant to product quality or GMP: critical setpoints, recipe parameters, mode changes, releases and acknowledgement of critical alarms. Flagging everything as GMP produces a log nobody can review and operators signing off trivial actions.

Can the Audit Trail run on an HMI panel, not only on a PC-based SCADA?

Yes. The Audit option is available on PC runtime and on operator panels, depending on panel family and version. Panels that are not networked use local user management and store the log on the memory card before it is transferred.

Is an Audit Trail useful outside the pharmaceutical industry?

Yes. In food and beverage, cosmetics, chemicals or water treatment it supports batch traceability, customer audits, incident investigation and the security logging required by IEC 62443.

Conclusion

An Audit Trail in TIA Portal is not a box you tick at the end of a project. It works when it is designed from the specification onwards: which data is critical, who may change it, how each person is identified and who reviews the log. With WinCC Audit, UMC and a well-organised tag structure in the PLC, the result is a system that passes the audit and that operators accept, because they only sign what really matters.

At Bluemation we design and validate GMP-traceable systems for the pharmaceutical sector and the food industry, as part of our PLC programming and SCADA programming services. If you need to implement or review an Audit Trail on your Siemens installation, tell us about your project and we will propose a concrete approach.

Let's Connect

Ready to transform your industrial processes?

Let's discuss how our automation solutions can drive efficiency and innovation in your business.

Chat with us