How to set up forced log rotation for all domains in Plesk

Follow

Comments

7 comments

  • Avatar
    Julian Bonpland Mignaquy

    Hi @Ehud Ziegelman:

    2. Use logrotate_force to enable it and logrotate_period for the number of days:

     

    0
    Comment actions Permalink
  • Avatar
    Julian Bonpland Mignaquy

    Hi Ehud,

    The first command changes "Force daily log.." and the second command changes "Allow to store website log files .."

    0
    Comment actions Permalink
  • Avatar
    Ehud Ziegelman (Edited )

    Hi Julian Bonpland Mignaquy,

    So, isn't the Plesk GUI stating "Force daily logrotation" Different than the "8" value in the GUI or in the CLI.

    To the best of my understanding, In English, "daily", mean each day, and not on any other certain basis.

    Or.. is it by "number of days" you mean the copies to be saved and not removed after a daily log rotation?

     

     

    0
    Comment actions Permalink
  • Avatar
    David Hubbard

    I'm finding that, as has been the case dating well back into Plesk 17, even with this new setting configured we end up with endless access_ssl_log.processed files never being properly rotated.

    0
    Comment actions Permalink
  • Avatar
    Ehud Ziegelman

    Hi Julian Bonpland Mignaquy,

     

    May I ask what does the below stand for:

    logrotate_period=123
    0
    Comment actions Permalink
  • Avatar
    David Hubbard

    Is there a CLI or database equivalent to set this so we can bulk configure?

    0
    Comment actions Permalink
  • Avatar
    Julian Bonpland Mignaquy

    Hi @David Hubbard the commands are:

    plesk bin settings --set logrotate_force=true
    plesk bin settings --set logrotate_period=123
    0
    Comment actions Permalink

Please sign in to leave a comment.

Have more questions? Submit a request