Logs record all events on systems and networks. Analyzing logs helps detect anomalies, track attacks, and understand system behavior.