Pcornel
Security

Logging & Monitoring

Cheat sheet · https://pcornel.dk/topic.php?topic=412

Back to the Topic

Answer

Logging & Monitoring is the security telemetry lifecycle that defines which security-relevant activity must be recorded, verifies event generation at the source, transports and preserves records with usable time and identity context, and turns that evidence into monitoring and investigation without treating logging as proof of complete visibility.

Remember

  • Log present ≠ complete telemetry coverage or trustworthy interpretation.
  • No matching event ≠ the activity did not occur; generation, filtering, transport, retention and query coverage must be proven.
  • Source configured ≠ required event generated, transported, retained and queryable.
  • Telemetry observation ≠ root cause, intent or complete security state without independent context.

First checks

  • Log source inventory — which systems send logs
  • SIEM ingestion health — sources reporting
  • timedatectl / w32tm /query /status — time sync

Commands

show logging
Local state

Verify in this order

sources → collection → SIEM → detections → response

Where it usually breaks

First mismatch in event source → collection → parsing/normalization → enrichment/correlation → detection/alert → analyst/automation response → outcome; preserve identity/policy/pre-state before mutation.

Logging & Monitoring proof map

BoundaryEstablishDoes not establish
SourceRequired asset/service, audit policy, provider/channel and event classSource inventory alone does not prove event generation
DeliveryLocal queue, transport, collector receipt and timestampsConfigured destination does not prove lossless delivery
PreservationRetention, access, raw record, integrity and provenanceStored record does not prove source truth or complete coverage
InterpretationProvider fields, identity, policy/result and adjacent evidenceEvent presence does not prove intent, causation or root cause
MonitoringQuery/detection plus source and pipeline healthNo alert does not prove no activity or compromise

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=412

Confirmation

Confirm action

Continue?