Published on

Logging what matters

Logging everything is expensive and guarantees nothing; not logging what matters is blindness. Which events to keep, where, for how long and protected from whom is a design decision, not a default setting.

Service line Cybersecurity

Too much and too little

There are two ways to fail with logs. The first: switch everything on, pay an enormous storage bill and find nothing when you need it, because nobody knows what to look for among millions of lines. The second: not switch on the logs that matter, and discover during an incident that there is no way of knowing who did what.

What to log

What to keep, for how long and howSecurity events with their retention and protection, and the cost of logging everything against only what is needed.SECURITY · LOGSWhat to keep, for how long and howEVENTRETENTIONPROTECTIONAccess and authentication failures1 yearimmutablePermission and role changes1 yearimmutableCloud configuration changes1 yearimmutableAccess to confidential data1 yearimmutableUse of keys and secrets1 yearimmutableDeployments (digest and approval)2 yearsimmutableApplication debugging14 daysnormalESTIMATED MONTHLY VOLUME AND COSTLogging everything2.1 TB · €380What is needed0.4 TB · €70In a separate account, write and read only: an intruder cannot erase their traces.Illustrative data; they do not correspond to any real caseN100F · n100f.com

The essentials, almost always:

  • Identity: sign-ins, failures, second factor, changes to permissions and roles.
  • Cloud control plane: every configuration change (who, what, when, from where).
  • Confidential data: access and exports.
  • Keys and secrets: every use.
  • Deployments: what was deployed, with which digest and who approved it (the same chain as what is running, where and why).

The rest (application debug logs, detailed traffic) is switched on where it adds value and for as long as it adds value.

Where and for how long

  • Somewhere separate from the systems doing the logging, in an account of its own (the logs account from the account structure), so that an attacker who gets into a system cannot erase their traces.
  • Protected against modification: they are only written and read; they are not edited or deleted early.
  • With retention by kind: security and compliance logs for as long as the standard or the regulation requires; operational ones, less.
  • With a planned cost: log volume is one more cost, and it is managed as such (with lifecycles that move older data to cheap storage).

Logging well is the raw material. What turns those logs into protection is detecting in them what should not be happening.


How we apply it: Cybersecurity.

If your cloud cost keeps growing and nobody knows why, or your architecture depends on whoever built it, let’s talk.

Let’s talk