/var/log/mpfs/tests.log
/var/log/mpfs/error-tskv.log
/var/log/mpfs/stat-tskv.log
/var/log/mpfs/deleted-stids-tskv.log
/var/log/mpfs/stat-empty-disk-info.log
/var/log/mpfs/stat-listing.log
/var/log/mpfs/stat-social.log
/var/log/mpfs/stat-store.log
/var/log/mpfs/stat-video-listing.log
/var/log/mpfs/stat-analytics-daily-personal.log
/var/log/mpfs/storage-cleaner-worker.log.tskv
/var/log/mpfs/event-history.log
{
    daily
    compress
    compresscmd /usr/bin/pigz
    compressoptions -p1
    maxsize 5000M
    dateext
    dateformat -%Y%m%d-%s
    rotate 30
    nocreate
    missingok
    postrotate
        file_name="${1%.log*}.log"
        if [[ "${file_name}" != ".log" ]]; then
            (umask 000; touch "${file_name}")
            chown nginx:nginx "${file_name}"
            chmod 644 "${file_name}"
        fi
    endscript
}

/var/log/mpfs/default-tskv.log
/var/log/mpfs/access-tskv.log
/var/log/mpfs/requests-tskv.log
/var/log/mpfs/service-tskv.log
{
    compress
    compresscmd /usr/bin/pigz
    compressoptions -p1
    size 5000M
    dateext
    dateformat -%Y%m%d-%s
    rotate 30
    nocreate
    missingok
    postrotate
        file_name="${1%.log*}.log"
        if [[ "${file_name}" != ".log" ]]; then
            (umask 000; touch "${file_name}")
            chown nginx:nginx "${file_name}"
            chmod 644 "${file_name}"
        fi
    endscript
}

/var/log/mpfs/uwsgi-tskv.log
{
    compress
    compresscmd /usr/bin/pigz
    compressoptions -p1
    size 800M
    dateext
    dateformat -%Y%m%d-%s
    rotate 40
    nocreate
    missingok
    copytruncate
}
