Hacks to split stdout to log files.
With tee:
| LOGPREFIX="/path/to/log/locations/log-" LOGSUFFIX=".log" split -l 10000 --filter 'rm -f `ls -t "$LOGPREFIX"*"$LOGSUFFIX"|tail -n +3`; exec tee -a "$LOGPREFIX`date +%Y%m%d%H`$LOGSUFFIX"' - none
Without tee:
| LOGPREFIX="/path/to/log/locations/log-" LOGSUFFIX=".log" split -l 10000 --filter 'rm -f `ls -t "$LOGPREFIX"*"$LOGSUFFIX"|tail -n +3`; exec cat >> "$LOGPREFIX`date +%Y%m%d%H`$LOGSUFFIX"' - none
Note, not working in CentOS 7 because of buggy version of split.