Page MenuHomeDevCentral

Rotate nginx logs on PaaS Docker
Open, NormalPublic

Description

If T2129 takes care of PaaS Alkane web logs rotation, we could also do the same for nginx logs in PaaS docker role with logrotate.

There is already a file /etc/logrotate.d/nginx, but it handles /var/log/nginx/*.log.

To use the same 90 days rotation, we can use:

/var/log/www/*/*.log {
    daily
    rotate 90
}

Event Timeline

dereckson triaged this task as Normal priority.Sun, Sep 21, 15:09
dereckson created this task.