Centralized Logging & SIEM Integration
Aggregate, ship, and analyze server logs centrally so your IDPS findings, audits, and firewall events become actionable security intelligence.
Centralized Logging & SIEM Integration is a free Linux Server Deployment & SSH Mastery lesson on CoddyKit — lesson 4 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Linux Server Deployment & SSH Mastery learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.
Why Centralized Logging Matters
After hardening firewalls and deploying intrusion detection, the next pillar is visibility. A single compromised host can hide its tracks by editing local logs.
Centralized logging ships every event off the box to a dedicated collector, so attackers cannot easily erase evidence.
- Tamper resistance
- Correlation across many servers
- Long-term retention for forensics
The Linux Logging Stack
Modern distros use systemd-journald for structured logs and rsyslog for forwarding.
You inspect the journal with journalctl and configure forwarding rules in /etc/rsyslog.conf or drop-in files under /etc/rsyslog.d/.
journalctl -u sshd --since '1 hour ago'
journalctl -p err -bWhat Is a SIEM?
A SIEM (Security Information and Event Management) platform ingests logs, normalizes them, and runs correlation rules to surface threats.
Popular options include the Elastic Stack (ELK), Wazuh, Graylog, and Splunk.
- Ingest: collect raw events
- Parse: extract fields
- Correlate: link related events
- Alert: notify on suspicious patterns
Forwarding Logs with rsyslog
To send all logs to a central collector over TCP, add a forwarding rule. The double @@ means TCP (single @ is UDP).
# /etc/rsyslog.d/90-forward.conf
*.* @@siem.internal:514Securing the Transport
Plaintext syslog over the network leaks sensitive data. Use TLS with the rsyslog GnuTLS module so logs are encrypted in transit.
# rsyslog TLS forwarding
global(DefaultNetstreamDriver="gtls")
$DefaultNetstreamDriverCAFile /etc/ssl/ca.pem
*.* @@(o)siem.internal:6514Shipping with Filebeat
In an Elastic Stack setup, Filebeat tails files and ships them to Logstash or Elasticsearch. It tracks read position so no events are lost on restart.
# filebeat.yml
filebeat.inputs:
- type: filestream
paths:
- /var/log/auth.log
- /var/log/iptables.log
output.logstash:
hosts: ['siem.internal:5044']Parsing & Normalizing Events
Raw logs are messy. A SIEM applies parsers (Logstash grok, Wazuh decoders) to turn a line into fields like src_ip, user, and action.
Normalized fields let you write rules that work across SSH, firewall, and web logs uniformly.
# Logstash grok for sshd failed login
filter {
grok {
match => { 'message' => 'Failed password for %{USERNAME:user} from %{IP:src_ip}' }
}
}Correlation Rules
The real power of a SIEM is correlation: combining low-value events into a high-value alert.
- 5 failed SSH logins in 60s from one IP, then a success = possible brute force success
- Firewall drop spike + new outbound connection = possible exfiltration
Tying In Your IDPS
Feed your existing intrusion detection alerts (Suricata, Snort, Fail2ban, AIDE) into the same SIEM.
Now a single dashboard shows firewall drops, IDS signatures, and audit findings side by side, enabling cross-source correlation.
# Send Suricata eve.json to the SIEM via Filebeat
filebeat.inputs:
- type: filestream
paths:
- /var/log/suricata/eve.json
parsers:
- ndjson:
target: ''Alerting & Response
Detection without notification is useless. Configure the SIEM to push alerts to email, Slack, or a ticketing system.
Mature teams add SOAR playbooks that auto-respond, for example dynamically adding an iptables drop rule for a flagged IP.
Retention & Integrity
Logs are evidence. Protect them:
- Append-only or WORM storage
- Define retention to meet compliance (PCI, GDPR)
- Hash log archives so tampering is detectable
sha256sum auth.log.2026-05-29.gz > auth.log.2026-05-29.gz.sha256Quick Check
Why is centralized logging preferred over relying only on local log files?
Recap
You learned to turn raw server logs into security intelligence:
- Ship logs centrally with rsyslog/Filebeat over TLS
- Parse and normalize into fields
- Correlate across firewall, IDPS, and audit sources in a SIEM
- Alert, respond, and protect log integrity
Centralized logging completes the hardening loop: prevent, detect, and now observe.
Frequently asked questions
Is the “Centralized Logging & SIEM Integration” lesson free?
Yes — the full text of “Centralized Logging & SIEM Integration” is free to read here on the web, and the Linux Server Deployment & SSH Mastery course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Linux Server Deployment & SSH Mastery course, upgrade to CoddyKit PRO.
What will I learn in “Centralized Logging & SIEM Integration”?
Aggregate, ship, and analyze server logs centrally so your IDPS findings, audits, and firewall events become actionable security intelligence. You practise Linux Server Deployment & SSH Mastery with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.
Do I need any experience to start Linux Server Deployment & SSH Mastery?
No prior experience is required. Linux Server Deployment & SSH Mastery on CoddyKit is structured for beginners through advanced learners; this is — lesson 4 of 4, so you can start here or from the beginning and move at your own pace.
How long does the “Centralized Logging & SIEM Integration” lesson take?
Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.
Can I write and run code in this Linux Server Deployment & SSH Mastery lesson?
Yes. Every Linux Server Deployment & SSH Mastery lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.
All lessons in this course
- Server Security Audit
- Advanced Firewall Rules (IPTables)
- Intrusion Detection & Prevention
- Centralized Logging & SIEM Integration