Log Sources and Telemetry

Know which logs matter (Windows events, Sysmon, Linux, firewall, DNS, proxy, cloud, identity) and what questions each one answers.

Beginner · about 8 hours · difficulty 2/5

Learn first: How a SOC Works, Windows Internals for Defenders, Linux Users, Permissions and Processes

Detection is only as good as the data you collect. Before touching a SIEM, learn which log sources exist, what they record and which events defenders care about most.

Endpoint logs

  • Windows Security log: logons (4624), failed logons (4625), special privileges (4672), new services (7045 in System), account changes (4720, 4728), log cleared (1102).
  • Sysmon: free Microsoft tool that adds process creation with command lines (event 1), network connections (3), file creation (11) and more.
  • PowerShell logging: script block logging (4104) shows what scripts actually ran.
  • Linux: auth.log/secure, journald, auditd rules for sensitive files and commands.

Network and infrastructure

  • Firewall allow and deny logs, VPN connections.
  • DNS query logs: great for spotting malware domains.
  • Web proxy logs with URLs and user identity.
  • IDS alerts and Zeek metadata.

Identity and cloud

  • Identity provider sign-ins (Entra ID, Okta, Google Workspace), MFA events.
  • Cloud control plane logs such as AWS CloudTrail and Azure Activity Log.

Practical concerns

  • Time sync (NTP) across everything, and store timestamps in UTC.
  • Retention long enough for investigations, often months.
  • Protect logs from tampering by forwarding them off the host quickly.

Pitfalls

  • Collecting everything with no plan, driving cost up and value down.
  • Missing command lines, which leaves process events nearly useless.

Move on when you can name the log source that would reveal a new admin account, a suspicious PowerShell command and a login from an unusual country.

Key concepts

  • Windows Security event IDs
  • Sysmon configuration
  • PowerShell script block logging
  • Linux auth logs and auditd
  • Firewall, DNS and proxy logs
  • Identity provider sign-in logs
  • Time sync and retention
  • Log forwarding and integrity

Mini project

Install Sysmon with a community configuration on a Windows VM and auditd on a Linux VM, perform normal admin tasks, then find and explain the resulting events.

Check yourself

Why is process creation logging without command-line arguments of limited value?

Free resources