Learn about Centmin Mod LEMP Stack today
Become a Member

Log rotation by size like 500MB

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

  1. pamamolf

    pamamolf Premium Member Premium Member

    4,087
    428
    83
    May 31, 2014
    Ratings:
    +834
    Local Time:
    1:39 PM
    Nginx-1.25.x
    MariaDB 10.3.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

    54,935
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,812
    Local Time:
    9:39 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    was revised at [Solved] - NGINX vhost logs | Centmin Mod Community