Skip to content

DefaultRolloverStrategy creating rolled over log files more than the configured limit #3475

Closed as not planned
@vshreens

Description

@vshreens

Hi,

We are using the log4j version 2.24.3 and have an observation where the rolling over of the log files was not in control and rolled over numbering went beyond the configured limit as the logs were getting generated continuously.

Log4j configuration used in application:

Image

Rolled over logs:
$ ls -alhtr test.log*
26M Feb 15 13:02 test.log.33075973
26M Feb 15 13:02 test.log.33075972
26M Feb 15 13:02 test.log.33075971
26M Feb 15 13:02 test.log.33075970
$ ls -alhtr test.log*
26M Feb 15 13:02 test.log.33075979
26M Feb 15 13:02 test.log.33075978
26M Feb 15 13:02 test.log.33075977
26M Feb 15 13:02 test.log.33075976

We wanted to understand if there is any known issue that is causing this or reported already in log4j 2.24.3. Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions