logrotate

Rotates, compresses, and mails system logs automatically

brewmacoslinux
Try with needOr install directly
Source

About

Rotates, compresses, and mails system logs

Commands

logrotate

Examples

Rotate logs based on configuration file$ logrotate /etc/logrotate.conf
Dry-run to preview what would be rotated$ logrotate -d /etc/logrotate.conf
Force rotation even if conditions aren't met$ logrotate -f /etc/logrotate.conf