/var/log
The directory on Linux where system services write their log files.
In more detail
Security-relevant files here include the auth log (/var/log/auth.log or /var/log/secure) and the audit log (/var/log/audit/audit.log). Attackers sometimes delete or edit these files, which is why logs should also be forwarded to a SIEM as they are written.
Related terms
- auth.log — The Linux log file that records logins, SSH sessions, sudo use and other authentication events.
- auditd — The Linux audit daemon, which records kernel events such as system calls and file changes according to audit rules.
- syslog — The standard way that programs on Unix-like systems send log messages, and the service that collects, stores and forwards them.
Taught in
- Event Correlation Rules, Thresholds & Anomaly Pipelines — Security Operations & Threat Hunting (SOC)