Logging and alerting: would you notice?
Breaches are often discovered months later, by someone else. Security logging is about recording the few events that matter, alerting on the patterns that signal an attack, and keeping logs where an intruder can't erase them.
In one sentence
Log security events (auth, permission changes, exports), alert on a small set of high-signal patterns, and ship logs to an append-only store outside the servers they describe.
The same attack, with and without visibility
✕ Never (found months later by a customer)
What to log, what to alert on
| Log | Alert when |
|---|---|
| Logins, failures, MFA changes, password resets | Many failures from one IP or across many accounts; login without MFA from a new country |
| Role and permission changes | Anyone becomes admin; changes outside the normal process |
| Data exports and bulk reads | Volume far above the user's normal |
| Secret / key usage, new API keys | A key used from an unexpected network or region |
| Security tool health | Logging or agents stop reporting |
Key takeaways
- 01Logs without alerts are an archive; alerts need the right logs.
- 02Focus on authentication, permissions and data access events.
- 03Keep logs off-host and append-only so attackers can't erase them.
- 04Alert on a few high-signal patterns and on monitoring going silent.
Check your understanding
1 of 3
Which events matter most to log for security?
Related concepts
Incident response
Declare early, contain first, preserve evidence, communicate honestly, learn without blame. And write it down before you need it.
6 min read →Brute force & rate limits
Limit guesses per IP and per account, slow down rather than lock out, block known breached passwords, and require MFA so a correct guess still isn't enough.
6 min read →Defense in depth
Every control has holes. Line up several independent ones and the holes rarely align: the Swiss cheese model.
6 min read →