/var/log/salinfo/raw/* {
    weekly
    ## no point in rotating more than once - the timestampped filename
    ## will be unique - this just insures the file gets compressed and moved
    ## to the old directory at some point.
    rotate 1
    olddir /var/log/salinfo/raw/old
    compress
    nocreate
    missingok
    ## override size.  these files should never be very big, there just may
    ## be a lot of them
    size 0
    ## this will only run if a log gets rotated, so old files won't get
    ## deleted if no new logs are being generated; but that also means that
    ## space used by the logs isn't increasing either
    sharedscripts
    postrotate
        find /var/log/salinfo/*/old -type f -mtime +21 -exec rm {} \;
    endscript
}

/var/log/salinfo/decoded/* {
    weekly
    ## no point in rotating more than once - the timestampped filename
    ## will be unique - this just insures the file gets compressed and moved
    ## to the old directory at some point.
    rotate 1
    olddir /var/log/salinfo/decoded/old
    compress
    nocreate
    missingok
    ## override size.  these files should never be very big, there just may
    ## be a lot of them
    size 0
    ## this will only run if a log gets rotated, so old files won't get
    ## deleted if no new logs are being generated; but that also means that
    ## space used by the logs isn't increasing either
    sharedscripts
    postrotate
        find /var/log/salinfo/*/old -type f -mtime +21 -exec rm {} \;
    endscript
}
