- Home
- Compliance
- ISO 27001 Compliance
- Logging and monitoring
ISO 27001 controls
Logs only help if someone reads them and the clocks agree
Three Annex A controls travel together. 8.15, logging, is about recording what happens. 8.16, monitoring activities, added in 2022, is about watching for what should not happen and acting on it. 8.17, clock synchronization, makes the timestamps line up so you can reconstruct events across systems.
Back to ISO 27001 services01 · What to log
Log the events you would need in an investigation
Work backwards from the questions an incident will raise.
The useful test is simple. Imagine an incident: an account taken over, data exported, a setting changed. Which records would let you say who did what, from where, and when? Those are the events to log. Logging everything at full detail is expensive and buries the signal; logging only what a tool switches on by default leaves gaps.
| Log source | What it proves | Typical owner |
|---|---|---|
| Identity provider | Who signed in, from where, with which factor, and failed attempts | IT or security |
| Cloud control plane | Who created, changed or deleted infrastructure and permissions | Platform team |
| Application audit log | Which user viewed, changed or exported customer records | Engineering |
| Database | Privileged queries and schema changes | Data or platform team |
| Endpoint protection | Malware detections and blocked actions on devices | IT |
| Network and firewall | Connections allowed and denied at the boundary | Infrastructure |
| Admin and privileged sessions | What administrators did with elevated rights | Security |
| Backup and key services | Deletion attempts, restores and key use | Platform team |
02 · Protecting logs
Protecting the logs themselves
A log an intruder can edit proves nothing.
- Send logs away from the source. Ship them to central storage so a compromised host cannot erase its own trail.
- Restrict who can delete. Administrators of a system should not be able to wipe its logs.
- Detect gaps. Alert when a source stops sending, which is often the first sign of trouble.
- Mind personal data. Logs often hold names, emails and addresses; treat them as personal data and avoid logging secrets.
Retention is a policy decision. Set it from your investigation needs, contracts and law, and record it per log type. For organisations in India, the CERT-In directions of April 2022 set their own expectations on log retention and on synchronising clocks; check the current text and fold it into the policy.
CERT-In's directions are commonly read as requiring a rolling log retention period kept within India and clock synchronisation to national time servers. Confirm the current wording with counsel.
03 · Monitoring
Monitoring: who looks, and what they do
Control 8.16 is about acting on anomalies, not collecting them.
Monitoring turns logs into decisions. Define a short list of things that should raise an alert, such as sign-ins from new countries for administrators, logging being switched off, large exports or repeated failed access. Then name who receives each alert, how quickly they respond, and how an alert becomes an incident under your incident process.
A small company
- Logs from the identity provider, cloud and application sent to one place
- A dozen alert rules built on the questions above
- Alerts to a shared channel with a named on-call person each week
- A short weekly review of the alert log, signed off in a ticket
A large company
- A security information and event management platform with many sources
- A security operations team or managed service watching around the clock
- Use cases mapped to threats from the risk assessment and threat intelligence
- Metrics on alert volume, response time and false positives, reviewed by management
Outsourcing monitoring is fine. Owning the decisions it raises is not optional.
04 · Clock sync
Why the clocks matter
Without one time source, the timeline falls apart.
Control 8.17 is short and easy to overlook. If the firewall, the application and the identity provider each keep their own time, a sequence of events across them cannot be trusted, and evidence handed to a regulator or a court is weaker. Point every system at an approved time source, record which one, and store timestamps with a time zone or in UTC.
- Cloud services usually sync for you; record that fact and the provider's time service.
- On-premises servers and network devices need explicit configuration, checked as part of the baseline.
- Log pipelines should keep the original event time, not just the time the log arrived.
05 · Evidence
What the auditor samples
Coverage, protection, review and time.
- A logging standard. Sources, events, retention and access, per system type.
- Coverage. In-scope systems in the inventory, matched against sources in the log platform.
- Alert handling. A sample of alerts, each traced to a response or a reasoned close.
- Review records. Evidence that someone looked, on the schedule you set.
- Time configuration. Settings on a few sampled systems pointing to the approved source.
- Logs nobody reads. Collection without review fails control 8.16 however much is stored.
- Alert floods. Hundreds of noisy alerts a day hide the one that counts and wear out the reviewer.
- Application blind spots. Infrastructure is logged, but nobody can say which user exported a customer list.
- Secrets in logs. Tokens and passwords captured in debug logs create a new exposure.
Sources: ISO/IEC 27001:2022 Annex A controls 8.15, 8.16 and 8.17 (cited by number and name only); NIST SP 800-92 on computer security log management; NIST SP 800-53 Rev. 5, Audit and Accountability (AU) family and SI-4 system monitoring; CERT-In directions of April 2022 under section 70B of the Information Technology Act, 2000, named only. The log-source table is our own.
Questions about logging and monitoring
How long should we keep logs for ISO 27001?
Your policy decides, within what law and contracts require.
The standard does not set a period. Set retention from investigation needs, customer contracts and law, such as CERT-In's directions for organisations in India, and record it per log type.
Do we need a SIEM to pass?
No. You need central logs and someone reviewing them.
A security information and event management tool helps at scale. A small company can meet 8.15 and 8.16 with central logging, a few well-chosen alerts and a recorded review.
Can a managed service provider do the monitoring?
Yes, but the decisions and the evidence stay yours.
Outsourcing is common. The auditor will still expect your contract, the provider's reports, escalations to your team and evidence that you acted on them.
What does clock synchronisation have to do with security?
It lets you trust a timeline built from many systems.
Investigations depend on putting events in order. If clocks disagree, that order is uncertain, and log evidence becomes harder to rely on.
Related guides
Find the gaps in what you can see.
An ISO 27001 gap analysis checks your log sources, retention, alert handling and time settings against controls 8.15 to 8.17.