Want to subscribe to topics you're interested in?
Become a Member

Log rotation by size like 500MB

Discussion in 'Feature Requests & Suggestions' started by pamamolf, May 22, 2016.

  1. pamamolf

    pamamolf Well-Known Member

    2,824
    253
    83
    May 31, 2014
    Ratings:
    +448
    Local Time:
    3:07 PM
    Nginx-1.13.x
    MariaDB 10.1.x
    Hi

    I just notice that the logs are compressed daily and not by size...

    like:

    Code:
    /var/log/php-fpm/www-error.log
    /var/log/php-fpm/www-php.error.log
    /home/nginx/domains/domain.com/log/access.log
    /home/nginx/domains/domain.com/log/error.log
    I thought it was per size and i prefer it like this so a daily check if the file size is more than 500MB to rotate it....

    Thanks
     
  2. eva2000

    eva2000 Administrator Staff Member

    30,961
    6,918
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,420
    Local Time:
    11:07 PM
    Nginx 1.13.x
    MariaDB 5.5
    was revised at [Solved] - NGINX vhost logs | Centmin Mod Community
     
    • Informative Informative x 1