/var/log/rsyslog/local/squid/squid[0-9n].info.log {
    daily
    rotate 366
    compress
    compresscmd /usr/bin/lzma
    compressoptions -4
    compressext .lzma
    dateext
    notifempty
    missingok
    postrotate
       /usr/lib/rsyslog/rsyslog-rotate > /dev/null
       %if %%getVar('lightsquid_auto', 'non') == 'oui'
       /usr/share/eole/sbin/squid_parselogs.sh --yesterday
       %end if
       %if %%is_defined('lightsquid_auto')
       find /var/log/lightsquid/reports/ -mindepth 1 -type d -mtime +366 -prune -exec rm -rf '{}' \;
       %end if
    endscript
}

/var/log/rsyslog/local/squid/squid[0-9n].[!i]*.log
 {
    weekly
    rotate 10
    compress
    notifempty
    missingok
    postrotate
       /usr/share/eole/sbin/squid_logrotate.sh
    endscript
}

