Skip to content

Logging and Monitoring

Definition

Logging and monitoring are the security controls that record security-relevant events in systems and applications and evaluate those records for anomalies. ISO/IEC 27001 lists them in Annex A as controls 8.15 and 8.16. Because logs can contain personal data, purpose, access and deletion have to be set as carefully as the capture itself.

ISMS
By Muhammad Haseeb, Co-Founder & CTOReviewed by Masar Hetemi, Co-Founder & CEO
Last reviewed:

What are logging and monitoring?

Logging keeps a record of who did what on which system and when. Monitoring evaluates those entries continuously and raises an alert when a pattern points to an attack or a fault. Annex A of ISO/IEC 27001:2022 deals with logs in control 8.15, monitoring in operation in 8.16 and a common time base across systems in 8.17.

In the BSI's IT-Grundschutz, the module OPS.1.1.5 Logging (Edition 2023) sets out the requirements. A SIEM is one of the tools that bring logs together centrally and evaluate them against rules. How both controls fit into a management system is covered in the guide implementing an ISMS.

Which events should be logged?

Under OPS.1.1.5.A3, all security-relevant events of IT systems and applications must be logged. Under OPS.1.1.5.A1, the type and extent of logging should follow the protection needs of the information; according to section 2.1 of the module, relying on the systems' default settings can miss particularly relevant security events.

The Annex to Implementing Regulation (EU) 2024/2690 is more specific. It applies to entities of the types listed in § 30(3) of the BSI Act (BSIG), such as cloud computing service providers and managed service providers. Point 3.2.3 lists, among others, these contents, where appropriate:

  • creation, modification and deletion of users, and extension of permissions
  • authentication-related events and access to systems and applications
  • all privileged access and the activities of administrative accounts
  • access to or changes of critical configuration and backup files
  • logs from security tools such as antivirus, intrusion detection or firewalls
  • activation, stopping and pausing of the logs

Under point 3.2.3, the entity draws up the list of assets to be logged on the basis of its risk assessment. Other companies can use the list as a yardstick; for them it is not binding.

What do the GDPR, the BSIG, the BetrVG and IT-Grundschutz require?

Security law requires that you log and evaluate; data protection and employment law limit how. Both sides belong in the same concept.

SourceProvisionWhat it means for logging
GDPRArticle 32(1)(b) of Regulation (EU) 2016/679ensure the ongoing confidentiality and integrity of systems; traceable access serves that aim
GDPRArticle 32(1)(d)regularly test the effectiveness of the measures; the evaluation itself has to be provable
GDPRArticle 5(1)(b), (c), (e)purpose limitation, data minimisation and storage limitation apply to log data too
BSI Act (BSIG)§ 30(2) sentence 2 nos. 2 and 9 BSIGparticularly important and important entities: incident handling and access control concepts presuppose traceability
NIS2 implementing regulationpoint 3.2 of the Annex to Regulation (EU) 2024/2690entities of the types listed in § 30(3) BSIG: monitoring procedures and tools, alarm thresholds, retention for a predefined period, protection against unauthorised access and changes, synchronised time sources
BSIG§ 31(2) BSIGoperators of critical installations: use attack detection systems that capture and evaluate operating parameters continuously and automatically
Works Constitution Act (BetrVG)§ 87(1) no. 6 BetrVGco-determination on technical equipment designed to monitor employees' conduct or performance
BSI IT-GrundschutzOPS.1.1.5.A4, A5synchronised system time; deletion under a defined process; uncontrolled deletion and alteration prevented technically

Under § 28(6) no. 1 BSIG, §§ 30 and 31 BSIG do not apply to financial entities under DORA. § 28(5) BSIG in principle exempts operators of public telecommunications networks and energy operators subject to §§ 5c to 5e of the Energy Industry Act (EnWG).

Logged does not mean evaluated

A log that nobody reads detects no attack. Point 3.2.4 of the implementing regulation therefore requires logs to be reviewed regularly for unusual trends, alarm thresholds to be set where appropriate, and a qualified response to be initiated promptly when an alarm fires. Set out in the logging concept which events trigger an alert, who handles it within what time, and how often a routine review takes place.

For evaluation, OPS.1.1.5.A9 says log data should be filtered, normalised, aggregated and correlated, while the original data is kept unaltered. Under OPS.1.1.5.A10, the administrators whose actions are logged should be unable to alter or delete the log data; otherwise the logs serve neither as a control nor as evidence.

Data protection: set purpose, access and deletion

Log data is personal data as soon as it links an action to an identifier pointing to a person, such as a user name; Article 4(1) GDPR names online identifiers expressly. Because logs record employee behaviour, introducing them can be subject to co-determination under § 87(1) no. 6 BetrVG, the German Works Constitution Act. Involve the works council and the data protection officer before the introduction.

Set down in writing what logging is for and whether use for monitoring performance and conduct is excluded or expressly governed. Limit viewing to a named, small group and log the viewing itself. Set a retention period for each type of log and enforce deletion technically, as a data retention and erasure policy describes. Logging is itself a processing activity and belongs in the records of processing activities.

Five tests: does logging work?

A logging concept does not prove that events arrive. Test it on a selected system with a test account; OPS.1.1.5.A3 requires such spot checks at intervals set in the logging policy. Keep each result as audit evidence.

TestPassed ifEvidence
three failed logons with the test accountthe events appear in central logging with account, system and timeextract of the entries with the time of the test
add the test account to a privileged groupthe change appears and triggers the alert defined in the conceptalert with handling note
an administrator tries to delete a log entrythe attempt fails and is itself loggederror message and log entry
stop logging on the systeman alert reports the failed source within the time set in the conceptalert and time until it fired
compare the timestamps of two systemsthe deviation is within the tolerance set in the concepttime comparison with date

The fourth test covers a case no single log shows: a source that goes quiet does not report itself. OPS.1.1.5 describes the unnoticed failure of data sources as a threat of its own (section 2.7). Point 3.2.6 of the implementing regulation also requires the availability of the monitoring and logging systems to be monitored independently of the systems they monitor.

Logging and monitoring in Rizzqo

In Rizzqo, the logging requirements of frameworks such as ISO 27001 are attached to each relevant system, such as servers, firewalls or a cloud console. The right person confirms whether the system sends its security events to central logging and uploads the last test as evidence. If a system cannot log centrally, you assess the risk in euros and plan a workaround as a task that syncs with Jira.

Frequently asked questions

How long may log data be retained?

There is no generally applicable period. Under Article 5(1)(e) GDPR, personal log data may be stored only as long as the defined purpose requires; statutory retention duties also count. Entities of the types listed in § 30(3) BSIG keep logs for a predefined period under point 3.2.5 of the Annex to Implementing Regulation (EU) 2024/2690.

What belongs in a logging concept?

A logging concept sets out which systems log which events, for what purpose and in what depth. It governs who may view logs, how long each type of log is retained, which events trigger an alert, who handles it, and at what intervals logging is spot-checked. Time synchronisation belongs in it too and, where relevant, the agreement with the employee representatives. In IT-Grundschutz it corresponds to the logging security policy under OPS.1.1.5.A1.

See compliance run on your real assets

Rizzqo turns framework requirements into owned tasks on the assets you already have, and prices the risk in real money.

  • Made in Germany
  • Hosted in your country
  • Multi-framework
Muhammad Haseeb

About the author

Muhammad Haseeb

Co-Founder & CTO

15 years of experience building software systems, responsible for all technical aspects of Rizzqo.

LinkedIn

Reviewed by Masar Hetemi, Co-Founder & CEO. 15 years of experience in compliance, responsible for governance, risk and compliance (GRC) at Rizzqo.