GitHub user ppkarwasz added a comment to the discussion: Delete and roll
configuration help
Hi @Shawcs,
There are two problems in your `KafkaServerAppender`:
- There is no `%i` specifier in the file pattern
(`${sys:kafka.logs.dir}/server.%d{yyyy-MM-dd:HH'h':mm'm'}.log`). This will
cause rollovers triggered by the **size** of the file to simply override the
previous one (or fail, while attempting to do it).
- Your regex for the delete action (`server.log.*`) does not match any of the
archived files.
GitHub link:
https://github.com/apache/logging-log4j2/discussions/4029#discussioncomment-16190063
----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]