Logging and Monitoring Policy

Defines which events are logged, how logs are protected and retained, and how systems are monitored so that security events are detected and investigated.

SXL-A20Policy1,412 words 6 min readOwner: Head of IT Security
Sign in to download the PDFFree. You return straight to this document after you sign in.
Template draft. Replace everything in [square brackets] with your own decision, delete what does not describe what you really do, and approve it through your own document control. It is not legal advice and does not make an organisation compliant or certified.

1. Purpose

This policy makes sure that systems record enough reliable information to detect misuse, attacks, faults and policy breaches, to investigate them, and to give evidence for legal, regulatory and audit needs. It also sets limits on monitoring so that it respects privacy and is proportionate.

2. Scope

The policy applies to every system, application, network device, security tool, cloud service and endpoint that processes Organisation information, and to the people who administer or monitor them.

  • In scope: operating systems, directories, databases, applications, web and API gateways, firewalls, VPN, DNS, email, endpoint protection, cloud control planes, physical access systems and the logging platform itself.
  • Out of scope: content of personal communications of staff, except as allowed under the monitoring conditions in this policy.

3. Terms and Definitions

TermMeaning
EventAn occurrence recorded by a system, such as a login or file change.
LogA time-ordered record of events.
SIEMA security information and event management platform that collects, correlates and alerts on logs.
AlertA signal raised when events match a detection rule or exceed a threshold.
Clock synchronisationKeeping system time aligned to an authoritative source so events can be correlated.
Log retentionThe period for which logs are kept in searchable or archived form.

4. Roles and Responsibilities

RoleResponsibilities
Head of IT Security (document owner)Owns this policy, the minimum logging standard and the detection rule set; reports monitoring coverage and results to management.
Security operations analystReviews alerts, triages and escalates events, and tunes rules.
System ownerEnsures their system logs to standard and sends logs to the central platform; fixes causes of repeat alerts.
Platform administratorOperates the log platform, protects logs, keeps time sources and storage healthy.
Data protection officerReviews monitoring that involves personal data and advises on proportionality and notices to staff.
Human resourcesAuthorises the use of logs in disciplinary matters, with legal advice.
Internal auditTests coverage, retention and integrity once a [year].
ActivityResponsibleAccountableConsultedInformed
Define the minimum logging standardHead of IT SecurityHead of IT SecuritySystem owners, DPOPlatform administrator
Enable logging and send logs to the platformSystem ownerSystem ownerPlatform administratorSecurity operations
Run the log platform and time sourcesPlatform administratorHead of IT SecuritySystem ownersSecurity operations
Review and triage alertsSecurity operations analystHead of IT SecuritySystem ownerIncident response lead
Investigate and preserve evidenceIncident response leadHead of IT SecurityLegal, HRManagement
Review monitoring against privacy rulesData protection officerHead of IT SecurityLegal, HRStaff representatives

5. Policy Statements

5.1 Event logging

  • Every in-scope system must produce logs that include, as a minimum, the events in the table below, and each record must carry timestamp, source, user or process identity, action, object and result.
  • Logs must be sent to the central log platform in near real time, within [5 minutes], and must not rely only on a copy held on the source system.
  • System clocks must be synchronised to a common, reliable time source and checked for drift above [1 second]. Time zone must be recorded in a consistent way.
SourceEvents that must be logged
Identity and accessSuccessful and failed logins, lockouts, password and multi-factor changes, privilege grants and removals, use of administrator and break-glass accounts
Operating systems and serversStart-up and shut-down, service and process changes, software installation, security policy change, audit log clearing
Network and security devicesAllowed and denied connections of interest, rule changes, VPN sessions, intrusion and web filtering alerts
Applications and databasesAuthentication, authorisation failures, access to sensitive records, data export, administrator actions, schema and configuration change, errors and exceptions
Cloud and SaaSConsole and API activity, role changes, key use, storage access policy change, resource creation and deletion
EndpointsMalware detections, blocked execution, device encryption status, removable media use
Physical accessEntry and exit to secure areas, door forced or held open, visitor log

5.2 Protection of logs

  • Logs must be protected from unauthorised change and deletion. Access to the log platform must be limited to named people, with multi-factor authentication, and use of it logged.
  • System administrators must not be able to alter or delete logs of their own activity; the platform must keep logs in write-once or tamper-evident storage, or use hash chaining, for security-relevant records.
  • Logs may hold personal data, passwords or secrets by accident. Applications must mask passwords, tokens, payment data and sensitive personal data before logging.
  • The log platform must be sized, backed up and monitored for capacity and ingestion failure. A source that stops sending logs for more than [30 minutes] raises an alert.

5.3 Retention

Log typeOnline searchableArchiveBasis
Security and authentication logs[90 days]Up to [12 months]Investigation and audit
ICT and network logs required by regulators in India[180 days]Held in IndiaCERT-In Directions of 28 April 2022 [confirm the current requirement]
Application audit logs for sensitive data[90 days][12 months]Accountability and data protection
Physical access logs[90 days][12 months]Investigation
Debug and performance logs[14 days]NoneTroubleshooting only

Where the minimum periods differ, the longer applies. Logs must be deleted when the period ends, unless a legal hold applies. Where logs hold personal data, retention follows the Data Protection and Privacy Policy.

5.4 Monitoring and detection

  • Security operations must monitor alerts [24 hours a day] for Tier 1 systems, and during [business hours] for others, or use an equivalent managed service under contract with defined response times.
  • Detection rules must cover at least: repeated failed logins, logins from impossible locations, privilege escalation, new administrator accounts, disabled logging, malware alerts, large data transfers, access to sensitive data outside normal patterns, and communication with known malicious addresses.
  • Rules must be reviewed each [quarter] against current threats from the Threat Intelligence Policy and tuned to reduce noise. Each rule has an owner and a documented response action.
  • Alerts must be triaged by severity: critical within [15 minutes], high within [1 hour], medium within [1 working day], low within [5 working days]. Events that meet the definition of an incident are escalated under the Information Security Incident Management Policy.
  • Cyber incidents subject to reporting duties are reported to the authority within [6 hours] of the Organisation noticing them, as set out in the CERT-In Directions of 28 April 2022 [confirm the current requirement].

5.5 Privacy and proportionality

  • Monitoring of staff activity is limited to what is needed for security and compliance, is described in the Acceptable Usage Policy and in the notice given to staff, and is not used for other purposes without the data protection officer's approval.
  • Content inspection of personal communications, and targeted monitoring of a named person, needs written approval from the Head of IT Security, HR and legal, and must be time-limited and recorded.
  • Access to logs is on a need-to-know basis, and every investigator use of logs holding personal data is recorded in the case file.

5.6 Review of administrator and privileged activity

  • Privileged sessions on Tier 1 systems must be recorded or logged in enough detail to reconstruct actions, and a sample of at least [10%] of privileged sessions is reviewed each month.
  • Use of break-glass accounts raises a critical alert and must be reviewed within [1 working day] against the approved ticket.

6. Compliance and Monitoring

CheckPerformed byFrequency
Coverage check: systems in the asset register against log sourcesSecurity operations[Monthly]
Silent source report (systems that stopped logging)Platform administrator[Daily], automated
Clock drift checkPlatform administrator[Weekly]
Log access and deletion reviewInformation security manager[Quarterly]
Detection rule test (simulated events)Security operations[Twice a year]
Retention and deletion sampleData protection officer[Yearly]
Internal audit of this policyInternal audit[Yearly]

The Logging and Monitoring Procedure sets out the steps for onboarding a log source, tuning detection rules and handling alerts.

7. Measures

MeasureTargetHow measured
In-scope systems sending logs to the platform[98%]Asset register against log sources
Critical alerts triaged within target[95%]Alert timestamps
Mean time to detect a confirmed incident[under 4 hours]Incident records
Silent sources fixed within [1 working day][95%]Ticket data
Detection rules tested in the last [6 months][100%]Test records

8. Records and Evidence

  • Logs, in line with the retention table.
  • Alert triage records and investigation notes, kept for [2 years].
  • Log source register, detection rule register and test results, kept while current plus [2 years].
  • Approvals for targeted monitoring, kept for [5 years].

Annexure A: Log source register

SystemOwnerLog typesCollection methodRetentionDate onboardedLast coverage check

9. Exception

Exceptions to this document are allowed only where compliance is not practicable and the risk has been assessed. A request must state what is to be excepted, why, the risk it creates, the compensating controls, and an end date no later than [6 months]. It is approved in writing by the document owner and the risk owner, recorded in the exceptions register, and reviewed at the end date. An exception does not change the document.

10. Enforcement

Compliance is monitored through internal audits, management review and routine checks by the document owner. Non-compliance is reported through the incident or non-conformity process and handled under the organisation's disciplinary procedure, and under the terms of any contract for people who are not employees. Serious or repeated non-compliance may lead to loss of access and, where the law is broken, to referral to the authorities.

11. Review

This document is reviewed at least every [12 months], and when there is a significant change to the organisation, its systems, its risks or the law, or after an incident that shows it was not effective. Each review is recorded in the revision history.

ISO/IEC 27001:2022 references

ReferenceTitle
A.8.15Logging
A.8.16Monitoring activities
A.8.17Clock synchronization
A.5.25Assessment and decision on information security events
A.5.28Collection of evidence
A.5.31Legal, statutory, regulatory and contractual requirements
Sign in to download the PDFFree. You return straight to this document after you sign in.