macOS / binaries /

rotatelogs

/usr/sbin/rotatelogs
Piped logging program to rotate Apache logs

rotatelogs is a simple program for use in conjunction with Apache's piped logfile feature. It supports rotation based on a time interval or maximum size of the log.

source: man