macOS / binaries /

newsyslog

/usr/sbin/newsyslog
Maintain system log files to manageable sizes

The newsyslog utility should be scheduled to run periodically by cron. When it is executed it archives log files if necessary. If a log file is determined to require archiving, newsyslog rearranges the files so that “logfile” is empty, “logfile.0” has the last period's logs in it, “logfile.1” has the next to last period's logs in it, and so on, up to a user-specified number of archived logs. Optionally the archived logs can be compressed to save space.

source: man