https://openshift.redhat.com/community/forums/openshift/log-rotation-not-enabled
cd $OPENSHIFT_LOGS_DIR find . -type f ( -name access_log-* , -name error_log-* ) -mtime +180 # Add this to the above command to backup as a gzipped tarball: | xargs tar -czvf backup-logs-$(date +%Y%m%d).tar.gz # Add this to the above command to delete 'em: -exec rm {} \; or | xargs rm)
Nessun commento:
Posta un commento