Most incident investigations fail because the decisive log is missing or already rotated. Which sources to collect from, what to capture, and how long to keep it.
A significant share of incident investigations hinges not on the quality of the specialist but on whether there is anything to investigate. The most common sentence on day three of an investigation: "that log is only retained for 7 days." Yet the attacker typically entered weeks earlier.
This article covers what is worth collecting, how long to keep it, and what most organisations omit.
The goal is not to collect everything. Licensing is typically volume-based, so unnecessary logs cost money while obscuring what matters.
The goal is that after an incident you can answer four questions:
Every logging decision traces back to these four questions.
If you can choose one source, choose this. The overwhelming majority of attacks begin with credentials.
Two numbers must be set, and they are not the same.
| Data | Immediately searchable | Archived |
|---|---|---|
| Identity | 90 days | 12-24 months |
| Endpoint | 30-90 days | 6-12 months |
| Firewall, proxy | 30 days | 6-12 months |
| DNS | 30 days | 6 months |
| Mail, cloud | 90 days | 12 months |
The 90 days is not arbitrary. Attacker dwell time has been measured in weeks for years, and detection often starts from an external notification, therefore late. With 30-day retention it frequently proves impossible to establish how they got in.
The archive tier can be cheaper, slower storage. It need not be immediately searchable, but it must exist.
Time synchronisation. If device clocks differ, correlation is useless. NTP everywhere, a consistent time zone, ideally logging in UTC. This sounds trivial and is still the most common problem at the start of an investigation.
Alerting on log deletion. An attacker's first act is erasing traces. Deleting logs or disabling logging should itself be an alert, because nobody does it in normal operation.
Copying logs off the host. A log left on the machine is in the attacker's hands. A log copied into the SIEM or separate storage is not. That difference decides whether there is anything to investigate.
Network devices. In many organisations servers are logged while switches, routers and edge appliances are not. Yet attackers enter precisely at the edge.
Your own security tools' logs. EDR, WAF and mail filters all log. These are the densest signal sources, because they are already filtered.
For rough orientation, per user per day:
For a 200-person organisation this is roughly 10-25 GB per day if you collect everything. Hence the importance of prioritisation: identity and endpoint deliver most of the value, while retaining raw network traffic rarely pays back.
You need answers to these now, before an incident:
Wherever the answer is no, that is where to start. We covered SIEM deployment and the first 24 hours of an incident in separate articles, and designing the logging architecture is part of our IT security services.
Comprehensive IT security services including firewalls, WAF, IPS, SIEM, DLP and endpoint protection from…
When an organisation needs a SIEM, which log sources to start with, how to avoid alert flooding, and what…
Hour by hour: what to do and what to avoid from discovery to regulatory notification, and why preserving…
Our specialists are happy to discuss what this means in your organisation's environment.