Interview Prep/Linux/Logs, Limits & High-Traffic Tuning

How do you limit journald disk usage?

IntermediateProductionLogs, Limits & High-Traffic Tuning
Answer
# /etc/systemd/journald.conf.d/size.conf
[Journal]
SystemMaxUse=2G
SystemKeepFree=4G
MaxRetentionSec=14day
RateLimitIntervalSec=30s
RateLimitBurst=10000
sudo systemctl restart systemd-journald
journalctl --disk-usage
sudo journalctl --vacuum-size=1G
All Linux questions Roadmap: Linux

More on Logs, Limits & High-Traffic Tuning