You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by "wedka (via GitHub)" <gi...@apache.org> on 2023/08/07 07:02:11 UTC
[GitHub] [pulsar] wedka created a discussion: [Bug] log4j.yaml DefaultRolloverStrategy doesn't work
GitHub user wedka created a discussion: [Bug] log4j.yaml DefaultRolloverStrategy doesn't work
### Search before asking
- [X] I searched in the [issues](https://github.com/apache/pulsar/issues) and found nothing similar.
### Version
Pulsar 2.10.2
### Minimal reproduce step
In the log4j.yaml,the default configuration of DefaultRolloverStrategy is:
DefaultRolloverStrategy:
Delete:
basePath: ${sys:pulsar.log.dir}
maxDepth: 2
IfFileName:
glob: "*/${sys:pulsar.log.file}*log.gz"
IfLastModified:
age: 30d
However, after 30 days, the files are not deleted
### What did you expect to see?
After 30 days, the files are deleted
### What did you see instead?
After 30 days, the files are not deleted
### Anything else?
_No response_
### Are you willing to submit a PR?
- [X] I'm willing to submit a PR!
GitHub link: https://github.com/apache/pulsar/discussions/20942
----
This is an automatically sent email for commits@pulsar.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@pulsar.apache.org
[GitHub] [pulsar] tisonkun added a comment to the discussion: [Bug] log4j.yaml DefaultRolloverStrategy doesn't work
Posted by "tisonkun (via GitHub)" <gi...@apache.org>.
GitHub user tisonkun added a comment to the discussion: [Bug] log4j.yaml DefaultRolloverStrategy doesn't work
@wedka would you share the files remaining in your system (with proper redact)?
`DefaultRolloverStrategy` doesn't delete logs 30 days ago, but delete logs rolling file 30 days ago. Perhaps you can use `ls -l` to show the age of all the remaining files you expect to be deleted.
GitHub link: https://github.com/apache/pulsar/discussions/20942#discussioncomment-6655370
----
This is an automatically sent email for commits@pulsar.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@pulsar.apache.org
[GitHub] [pulsar] tisonkun added a comment to the discussion: [Bug] log4j.yaml DefaultRolloverStrategy doesn't work
Posted by "tisonkun (via GitHub)" <gi...@apache.org>.
GitHub user tisonkun added a comment to the discussion: [Bug] log4j.yaml DefaultRolloverStrategy doesn't work
This is more likely a usage issue than a bug.
GitHub link: https://github.com/apache/pulsar/discussions/20942#discussioncomment-6655372
----
This is an automatically sent email for commits@pulsar.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@pulsar.apache.org