Published 2026-12-02
Start with the decisions logs must support
Logging should begin with operational and security questions. A team may need to know who changed a privileged setting, whether a payment approval occurred, which service failed or whether an account was accessed after a reported departure. Write those questions before choosing events or buying a platform. If a log cannot help an owner detect, investigate or demonstrate an important event, collecting it may add cost without improving assurance. The purpose should guide event selection, access and retention. Check the proposed event list against real operational questions with the people who will investigate alerts. Ask whether they could identify the affected identity, system, time and action from the available fields. If not, determine whether another source can provide the missing context. Avoid solving every gap by collecting more personal data. Often the better improvement is a stable identifier, a clearer event name or a documented process for correlating records from separate systems.
Identify critical systems and events
Prioritise systems that support important services, sensitive information, privileged administration and external access. Identify events such as authentication outcomes, privilege changes, account lifecycle actions, configuration updates, data exports, security alerts and significant application errors. The exact events depend on the platform and risk. Avoid assuming that every product records the same fields or that enabling a feature means the resulting data is complete. Document known gaps and identify alternative evidence where appropriate. Check the proposed event list against real operational questions with the people who will investigate alerts. Ask whether they could identify the affected identity, system, time and action from the available fields. If not, determine whether another source can provide the missing context. Avoid solving every gap by collecting more personal data. Often the better improvement is a stable identifier, a clearer event name or a documented process for correlating records from separate systems.
Make records attributable and consistent
Useful events should include a reliable timestamp, system or service identifier, event type, outcome and an identity or process reference where appropriate. Preserve the source time zone and document clock synchronisation arrangements. Use consistent identifiers across systems where possible so investigators can correlate events without guessing. Distinguish an individual account from a service identity and record the context needed to understand automated actions. Never put passwords, access tokens, private keys or unnecessary sensitive data into logs. Check the proposed event list against real operational questions with the people who will investigate alerts. Ask whether they could identify the affected identity, system, time and action from the available fields. If not, determine whether another source can provide the missing context. Avoid solving every gap by collecting more personal data. Often the better improvement is a stable identifier, a clearer event name or a documented process for correlating records from separate systems.
Protect integrity, availability and confidentiality
Logs can be valuable evidence and sensitive operational information at the same time. Restrict who can read, export, change or delete them. Where the platform supports it, separate log administration from ordinary system administration and use protected or immutable storage for high-value records. Monitor failures in collection and alert when critical sources stop reporting. Protect exports and backups, and ensure that retention arrangements account for legal holds and relevant organisational requirements. A log that can be silently altered or routinely disappears may not support a reliable investigation. Check the proposed event list against real operational questions with the people who will investigate alerts. Ask whether they could identify the affected identity, system, time and action from the available fields. If not, determine whether another source can provide the missing context. Avoid solving every gap by collecting more personal data. Often the better improvement is a stable identifier, a clearer event name or a documented process for correlating records from separate systems.
Set retention according to purpose
Retention should reflect the reason the data is collected, applicable legal and contractual requirements, investigation needs, storage costs and privacy obligations. There is no single period suitable for every event type or organisation. Keep high-value security events long enough to support the defined response and assurance needs, but do not retain personal or sensitive data indefinitely without a valid basis. Document the retention schedule, deletion method, exceptions and approval process. Make sure archived data remains retrievable and readable for as long as it is required. Check the proposed event list against real operational questions with the people who will investigate alerts. Ask whether they could identify the affected identity, system, time and action from the available fields. If not, determine whether another source can provide the missing context. Avoid solving every gap by collecting more personal data. Often the better improvement is a stable identifier, a clearer event name or a documented process for correlating records from separate systems.
Control access and respect privacy
Define which roles may view different log categories and whether access is justified for routine operations, incident response, audit or legal review. Limit broad searches and exports, especially where records contain employee, customer or authentication information. Tell relevant stakeholders about monitoring in accordance with applicable policies and law. Use redaction or filtering when sharing evidence outside the operational team. Logging is not a reason to collect every possible detail about every person; it should be proportionate to a defined security or business purpose. Check the proposed event list against real operational questions with the people who will investigate alerts. Ask whether they could identify the affected identity, system, time and action from the available fields. If not, determine whether another source can provide the missing context. Avoid solving every gap by collecting more personal data. Often the better improvement is a stable identifier, a clearer event name or a documented process for correlating records from separate systems.
Test coverage and response workflows
Periodically confirm that critical events are generated, collected, timestamped and available to the people who need them. Test alerts with controlled scenarios and verify that the right team receives and understands them. Record expected response times, escalation contacts and the steps for preserving relevant records. Check that a failure in the logging pipeline is itself visible. A dashboard can look healthy while a particular source has stopped sending events, so validate coverage against the system inventory and service owner’s expectations. Check the proposed event list against real operational questions with the people who will investigate alerts. Ask whether they could identify the affected identity, system, time and action from the available fields. If not, determine whether another source can provide the missing context. Avoid solving every gap by collecting more personal data. Often the better improvement is a stable identifier, a clearer event name or a documented process for correlating records from separate systems.
Measure quality, not just volume
Useful measures include coverage of critical systems, collection delay, alert delivery success, unresolved source outages, access review completion and the proportion of important events with sufficient context. Large volumes do not demonstrate useful monitoring. Review false positives and missed events with the teams who investigate them, then tune collection and alert rules. When an incident occurs, capture lessons about missing timestamps, unclear identities or inaccessible archives. Use those lessons to improve the design rather than simply increasing data volume. Check the proposed event list against real operational questions with the people who will investigate alerts. Ask whether they could identify the affected identity, system, time and action from the available fields. If not, determine whether another source can provide the missing context. Avoid solving every gap by collecting more personal data. Often the better improvement is a stable identifier, a clearer event name or a documented process for correlating records from separate systems.