/var/log/slurm/*.log {
    missingok
    notifempty
    copytruncate
    rotate 5
}
