# Log Sources and Telemetry

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

Canonical: https://www.internhack.in/roadmaps/tracks/cybersecurity/log-sources
Last updated: 2026-11-28

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](https://www.internhack.in/roadmaps/tracks/cybersecurity/soc-fundamentals), [Windows Internals for Defenders](https://www.internhack.in/roadmaps/tracks/cybersecurity/windows-fundamentals), [Linux Users, Permissions and Processes](https://www.internhack.in/roadmaps/tracks/cybersecurity/linux-permissions-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

- [Sysmon](https://learn.microsoft.com/en-us/sysinternals/downloads/sysmon) (Microsoft Learn)
- [Events to monitor (Active Directory)](https://learn.microsoft.com/en-us/windows-server/identity/ad-ds/plan/security-best-practices/appendix-l--events-to-monitor) (Microsoft Learn)
- [NIST SP 800-92: Guide to Computer Security Log Management](https://csrc.nist.gov/pubs/sp/800/92/final) (NIST)

Previous: [How a SOC Works](https://www.internhack.in/roadmaps/tracks/cybersecurity/soc-fundamentals) · Next: [SIEM with Splunk](https://www.internhack.in/roadmaps/tracks/cybersecurity/siem-splunk)

## More in Security Operations (Blue Team)

- [How a SOC Works](https://www.internhack.in/roadmaps/tracks/cybersecurity/soc-fundamentals)
- [Log Sources and Telemetry](https://www.internhack.in/roadmaps/tracks/cybersecurity/log-sources)
- [SIEM with Splunk](https://www.internhack.in/roadmaps/tracks/cybersecurity/siem-splunk)
- [SIEM with the Elastic Stack](https://www.internhack.in/roadmaps/tracks/cybersecurity/siem-elastic)
- [Log Analysis and Alert Triage](https://www.internhack.in/roadmaps/tracks/cybersecurity/alert-triage)
- [Detection Engineering with Sigma](https://www.internhack.in/roadmaps/tracks/cybersecurity/detection-engineering-sigma)
- [Threat Intelligence for Defenders](https://www.internhack.in/roadmaps/tracks/cybersecurity/threat-intelligence)
- [MITRE ATT&CK for Defenders](https://www.internhack.in/roadmaps/tracks/cybersecurity/mitre-attack-defenders)

## Related

- [Roadmaps](https://www.internhack.in/roadmaps)
- [Cybersecurity Roadmap](https://www.internhack.in/roadmaps/tracks/cybersecurity)
