
# define output channels with file size limit
# $outchannel name,file-name,max-size,action-on-max-size
# and activate channels by selector line:
# selector action

$outchannel syslog_outchannel, /var/log/syslog, 7340032, /usr/lib/armbian/jethub-remove-log-file.sh /var/log/syslog 
*.*;auth,authpriv.none         :omfile:$syslog_outchannel

$outchannel auth_outchannel, /var/log/auth.log, 3145728, /usr/lib/armbian/jethub-remove-log-file.sh /var/log/auth.log
auth,authpriv.*                :omfile:$auth_outchannel

$outchannel kern_outchannel, /var/log/kern.log, 4194304, /usr/lib/armbian/jethub-remove-log-file.sh /var/log/kern.log
kern.*                         :omfile:$kern_outchannel

$outchannel mail_outchannel, /var/log/mail.log, 1048576, /usr/lib/armbian/jethub-remove-log-file.sh /var/log/mail.log
mail.*                         :omfile:$mail_outchannel

$outchannel mail_err_outchannel, /var/log/mail.err, 1048576, /usr/lib/armbian/jethub-remove-log-file.sh /var/log/mail.err
mail.err                       :omfile:$mail_err_outchannel

