Free tech learning for everyone, from basics to pro

Secure ArchitectureSystems ArchitectureIntermediate

Security logging architecture

In short: Security logging architecture decides what is logged, how logs reach a central platform, and how long and how safely they are kept. A good design collects high-value sources, uses synchronised time and a common format, protects logs from tampering and balances retention against cost.

Why design logging deliberately

Logs are the evidence for detecting attacks, investigating incidents and proving compliance. Without a plan, organisations either miss the logs they need or drown in expensive noise. A logging architecture defines sources, transport, format, storage, access and retention as one system, aligned with detection use cases. NIST SP 800-92 gives guidance on log management.

Security logging pipelineSourceshosts, apps,cloudCollectagents, syslogNormaliseparse, enrichStorehot and coldtiersAnalyseSIEM rules,hunting
Figure 1. Logs flow from many sources through collection and normalisation into storage and analysis.

Choosing sources

What to logAuthenticationsign-ins, MFAPrivilege useadmin actionsNetworkfirewall, DNSEndpointprocess, EDRCloud controlAPI audit logsApplicationbusiness events
Figure 2. High-value security log sources to collect first.

Start with sources that answer the most important investigation questions: who signed in, what they did with privileges, what ran on endpoints, what left the network, and what changed in cloud control planes. Identity provider logs, EDR telemetry, DNS and firewall logs, and cloud audit trails such as AWS CloudTrail or Azure Activity Log are usually top priority. Add application logs that record security-relevant business events, such as payment changes or bulk exports.

Collection, format and time

  • Transport: use agents or syslog over TLS, with buffering so logs are not lost if the collector is down. Plain UDP syslog can silently drop messages.
  • Normalisation: parse logs into common fields, such as user, source IP and action, using a schema like the Elastic Common Schema or OCSF (Open Cybersecurity Schema Framework), so rules work across sources.
  • Enrichment: add context such as asset owner, geolocation and threat intelligence.
  • Time: synchronise every source with NTP and store timestamps in UTC. Incorrect clocks make timelines useless (see syslog and NTP).

An rsyslog client forwarding to a central collector over TLS might use:

global(DefaultNetstreamDriver="gtls"
       DefaultNetstreamDriverCAFile="/etc/ssl/certs/log-ca.pem")
action(type="omfwd" target="logs.example.com" port="6514" protocol="tcp"
       StreamDriver="gtls" StreamDriverMode="1" StreamDriverAuthMode="x509/name")

Storage, retention and protection

TierPurposeTypical period
HotFast search and real-time detection in the SIEMWeeks to a few months
WarmInvestigation and threat huntingMonths
Cold or archiveCompliance and long investigationsA year or more, as law and policy require

Set retention from legal, regulatory and investigation needs, and remember that intrusions are often found long after they start. Protect logs as evidence:

  1. Send logs off the source host quickly so an attacker cannot delete them locally.
  2. Store them in a separate account or tenant with write-once or immutable storage.
  3. Restrict who can read and delete logs; log access to the logs themselves.
  4. Alert when a source goes silent, since stopping logging is a common attacker step.
  5. Avoid logging secrets, passwords or full card numbers; mask personal data where possible.

Feed the central store into your SIEM and build detections from known attacker behaviour.

Tip: start from detection use cases ("detect a new admin account created outside change windows"), then make sure the logs to support each one are collected. This keeps volume, and cost, under control.

Practice

Why should logs be forwarded off the host promptly?
So that an attacker who compromises the host cannot delete or alter the evidence stored locally.
What problem does normalisation solve?
Different sources use different formats; mapping them to common fields lets one detection rule or search work across all of them.
A log source stops sending events at 02:00. Why alert on this?
Disabling logging is a common attacker step, and missing logs also leave blind spots for detection.

Key takeaways

  • Plan sources, transport, format, storage and retention as one system.
  • Prioritise identity, privilege, endpoint, network and cloud audit logs.
  • Synchronise time and normalise fields so rules work across sources.
  • Protect logs from tampering with prompt forwarding and immutable storage.
  • Drive collection from detection use cases to control cost.
Tracks your learning on this device only. See your progress on the learning paths.

About the author

Mohamed Fayas

Founder of FM TecHub. CCNA certified, with a BTEC HND in Network Engineering, and BEng (Hons) in Computer Networking and Cloud Security. He writes practical, plain-English guides on networking, security and cloud.

More about the author

Original content written by Mohamed Fayas for FM TecHub. © 2026 FM TecHub. You're welcome to share a link to this page; please don't copy the text elsewhere without permission.

Stay up to date by email

New notes, tools and security news from FM TecHub, explained simply. Free.

We only use your email to send these updates. See our privacy policy.