root@mta3:/var/log# du -sh kumomta
3.8G kumomta
root@mta3:/var/log# find kumomta -type f | wc -l
233730
How do we prune and limit these log files? Maybe a maximum of 2-3 days.
root@mta3:/var/log# du -sh kumomta
3.8G kumomta
root@mta3:/var/log# find kumomta -type f | wc -l
233730
How do we prune and limit these log files? Maybe a maximum of 2-3 days.
We intentionally did not force a TTL on log files so they will live forever if you don’t prune them manually.
You can use a scripted (corn’d) job to find and delete logs older than X days.
Sounds good. I’ll add that tn ![]()
Eg:
sudo find /var/log/kumomta/ -mtime +10 -type f -delete
That will delete logs more then 10 days old