Go to your standalone-full.xml this file is located on this location
<STAT_HOME>/app/standalone/configuration/standalone-full.xml file.
There is a subsystem for logging:2.0 and currently the rotate-size is at 20m, but we can change it to rotate by date.
1) Shut down the Stat Central Agent.
2) Back up the above standalone-full.xml file.
3) Open standalone-full.xml in an editor.
4) Locate this block in logging subsystem:
<size-rotating-file-handler name="FILE" autoflush="true">
<formatter>
<named-formatter name="PATTERN"/>
</formatter>
<file relative-to="jboss.server.log.dir" path="server.log"/>
<rotate-size value="20m"/>
<max-backup-index value="10"/>
<append value="true"/>
</size-rotating-file-handler>
and replace it with this information:
<periodic-rotating-file-handler name="FILE" autoflush="true">
<level name="ALL"/>
<file relative-to="jboss.server.log.dir" path="server.log"/>
<suffix value=".yyyy-MM-dd"/>
<append value="true"/>
</periodic-rotating-file-handler>
5) Restart the Stat Central Agent.
© ALL RIGHTS RESERVED. Feedback Terms of Use Privacy Cookie Preference Center