The IAM logs in IdentityAccessManager/standalone/log:
Can we restrict the number of log files here?
Restrict based on size of log file, and rotate it when reaching the size of file and only keep max 4 log files.
All supported DevTest releases.
N/A
Please use the attached standalone.xml file to rotate the logging file based on file size.
This configuration will rotate the log file if the size of the log file exceeds 500kb.
This log settings below will generate a total of 6 files.
The current files and 5 backup files.
If you want to set this to 10 MB per standard you would use a file size 10m
(For 10 Megabytes)
<profile>
<subsystem xmlns="urn:jboss:domain:logging:3.0">
<console-handler name="CONSOLE">
<level name="INFO"/>
<formatter>
<named-formatter name="COLOR-PATTERN"/>
</formatter>
</console-handler>
<size-rotating-file-handler name="FILE" autoflush="true">
<formatter>
<pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>
</formatter>
<file relative-to="jboss.server.log.dir" path="server.log"/>
<rotate-size value="500k"/>
<max-backup-index value="5"/>
<append value="false"/>
</size-rotating-file-handler>