1 Reply Latest reply on Sep 27, 2018 7:18 PM by James Perkins

    Log compression on rotation

    Marco Rossi Newbie

      I've found this feature mentioned here : [LOGMGR-30] Support automatic log file compression in FileHandler (for compressing all files in real time) and PeriodicR… 


      But I'm not able to set this configuration, so the question is:


      1) there is an option to configure this compression on PeriodicRotationFile from admin console?

      2) and how to activate same option from jboss-cli ?


      My wildfly version is 12.0

        • 1. Re: Log compression on rotation
          James Perkins Master

          You configure it by setting the suffix to either .gz or .zip. For example with the default daily rotating file handler the follow CLI command would compress the file when it's rotated.

          /subsystem=logging/periodic-rotating-file-handler=FILE:write-attribute(name=suffix, value=".yyyy-MM-dd.zip")



          James R. Perkins