What should you never put in logs?
BeginnerProductionLogs, Limits & High-Traffic Tuning
Answer
Passwords, API keys, tokens, session cookies, private keys, full card numbers, and unnecessary personal data. Logs are copied to many systems with broad access and long retention, so they become a data breach. Mask or drop sensitive fields at the source, add redaction in the shipping pipeline as a second layer, and restrict log file permissions (0640).
More on Logs, Limits & High-Traffic Tuning
How does log management work on a modern Linux server?BeginnerWhy centralize logs instead of reading them on each server?BeginnerWrite a logrotate config for an application log.BeginnerWhat is the difference between `copytruncate` and `create` + postrotate signal?IntermediateLogs rotated but disk usage did not drop. Why?IntermediateHow often does logrotate run, and why does `maxsize` sometimes not trigger in time?Intermediate