IAM logfiles rotation changes based on size

book

Article ID: 192954

calendar_today

Updated On:

Products

CLOUDTEST CA Application Test CA Cloud Test Mobile MOBILECLOUD Service Virtualization

Issue/Introduction

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.
Let me know if this configuration is possible.

Environment

Devtest 10.X
lisa

Component : CA Service Virtualization

Resolution

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)

Additional Information

<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>

 

Attachments

1592205749462__standalone.xml get_app