Topics in this domain
- IT Service Management
- Hardware Components and Architecture
- Operating Systems
- OSI Model
- TCP/IP and Common Protocols
- Network Devices: Switches, Routers, Gateways
- LAN/WAN Topologies
- Database Models and DBMS
- Database Controls and Normalization
- Asset Management
- Configuration Management
- Job Scheduling and Batch Processing
- Incident Management
- Problem Management
- Change Management
- Release and Patch Management
- Operational Log Management
- Service Level Management
- Capacity and Performance Monitoring
- End-User Computing
- BCP Lifecycle
- Business Impact Analysis
- RTO, RPO, MTD, SDO
- Recovery Strategies
- Alternate Sites: Hot, Warm, Cold
- Backup Types: Full, Incremental, Differential
- Backup Storage and Rotation
- DRP Contents
- Testing BCP/DRP
- High Availability, RAID, Insurance
- Auditing BCP
Operational Log Management
The organisation’s memory
Logs are like an aircraft’s flight recorder. Nobody looks at it on a normal day, but when something goes wrong, it’s the only reliable account of what happened, and it’s only useful if it was recording and nobody could tamper with it.
Systems record what happens to them: logins, changes, errors, job runs, data access, configuration updates. These records, or logs, are how anyone can later establish what happened, when, and who did it.
The CISA outline lists operational log management under IS operations, alongside change, problem and capacity management. Logs serve many users:
- Operations uses them to troubleshoot failures and manage performance and capacity.
- Security uses them to detect attacks and misuse.
- Auditors and investigators use them as evidence.
- Compliance relies on them to show that controls operated.
Example. A critical report shows wrong figures one morning. The job logs show the overnight batch ran twice after a restart, and the change log shows who restarted it. Without logs, the cause would be guesswork.
The log life cycle
- Generate: systems log the right events, at the right level of detail, with accurate timestamps. A logging policy says what must be logged on which systems.
- Collect: logs are sent to a central store as they’re created, rather than left on each system.
- Protect: integrity and access controls stop logs from being altered or deleted, especially by the people whose activity they record.
- Retain: logs are kept as long as policy, law, contracts and likely investigations require.
- Review: automated alerting flags important events, and people review high-risk activity on a schedule.
- Dispose: logs are deleted securely when their retention period ends, unless a legal hold applies.
What to log
The diagram shows the events that matter most: logins (successes, failures, lockouts), privileged activity, access to and changes of sensitive data, changes to security settings such as access rights and firewall rules, system events such as starts, stops and errors, and signs of log tampering, such as logs being cleared or logging switched off.
A useful log record answers five questions: who (a unique user or system ID), when (an accurate timestamp), where from (the device, address or location), what (the action and the object it affected), and whether it worked (success or failure). Shared accounts break the “who”, which is one reason they’re a finding.
Typical log sources include operating systems, applications, databases, network devices, security tools, job schedulers and cloud platforms, whose audit logs record administrative actions in the cloud console.
Logging everything at maximum detail isn’t the goal: it fills storage, costs money and buries important events in noise. The logging policy should focus on what matters, such as authentication, privileged actions, changes to configuration and access rights, access to sensitive data, and system errors.
Protecting the logs
- Central and separate: logs are copied off the source system immediately, to a store the system’s own administrators can’t change.
- Access control: only authorised people can read logs, and very few can delete them.
- Integrity: techniques such as write-once storage or hashing make tampering detectable.
- Time synchronisation: every system takes its time from the same source, usually using the Network Time Protocol (NTP), so events from different systems can be put in the right order.
If administrators can edit the logs of their own activity, those logs prove nothing about administrators.
Retention and review
Retention periods come from the organisation’s retention policy, which reflects legal and regulatory requirements, contracts, and how far back investigations typically need to look. Many attacks are discovered months after they start, so very short retention can leave investigators blind.
Review is where many programs fail. Large volumes need automated analysis, often in a security information and event management (SIEM) system, which raises alerts on suspicious patterns. But some activity, especially privileged and emergency access, should also be reviewed by a person independent of the administrators, with the review evidenced.
Common audit findings
- Logging disabled, or set too low, on critical systems.
- Logs kept only on the source system and overwritten within days.
- Administrators able to change or delete their own logs.
- Clocks not synchronised, so events can’t be correlated.
- Logs collected but never reviewed, or reviewed with no evidence.
- No logging policy, so coverage depends on each system’s default settings.
Example. An auditor asks for database administrator activity from six months ago, to test a suspected unauthorised change. The logs were kept on the database server, which overwrites them after 14 days. The finding is about the missing central log store and retention policy, not just the one change.
How the exam asks about it
| If the question asks… | The answer is usually… |
|---|---|
| Best way to protect logs from tampering | A central log server that admins of the source systems can’t alter |
| Why synchronise clocks | So events can be correlated across systems |
| Basis for log retention | Policy, legal requirements and investigation needs |
| Logs exist but problems go unnoticed | There’s no review process; add alerting and review |
| Who reviews privileged activity logs | Someone independent of the administrators |
| Biggest problem with shared accounts in logs | Actions can’t be traced to an individual |
In short
- Logs support accountability, troubleshooting, performance management, security detection, investigations and compliance.
- A log management program covers the whole life cycle: generate, collect, protect, retain, review and dispose.
- Each log record should show who did what, when, from where, to what, and whether it worked.
- Logs must be centralised, time-synchronised and protected so administrators can't alter or delete records of their own activity.
- Retention is set by policy, law and investigation needs; legal holds suspend deletion.
- Logs are only useful if reviewed: automated alerting plus scheduled human review of high-risk activity.
Exam traps
- Collecting logs nobody reviews gives a false sense of control.
- Logs stored only on the system that produced them can be deleted by an attacker or an administrator.
- Without synchronised clocks, events from different systems can't be put in order.
- Logging everything at maximum detail can fill storage and hide important events; log what matters.
Check yourself
-
Logs are stored only on the servers that produce them. What is the risk?
Centralise and protect logs. -
Why must clocks be synchronised across systems?
Correlation needs consistent time. -
What should a log record show?
Complete records support accountability.
Slides
Click the slide and use the arrow keys. F toggles full screen.
Turn your phone sideways for a bigger view. Tap any diagram to enlarge it.