Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Docs] Document log4j2.properties default rolling strategy #15930

Closed
edmocosta opened this issue Feb 9, 2024 · 0 comments · Fixed by #16179
Closed

[Docs] Document log4j2.properties default rolling strategy #15930

edmocosta opened this issue Feb 9, 2024 · 0 comments · Fixed by #16179

Comments

@edmocosta
Copy link
Contributor

edmocosta commented Feb 9, 2024

Tell us about the issue

Description:

We should document the default rolling strategy configured on Logstash log4j2.properties. It's also important to explain that it does not provide any default archiving action and that logs are store indefinitely, with a maximum of 30 files per day, following the time and size policies.

Example of archiving strategy for cleaning logs older than 30D:

appender.rolling.strategy.action.type = Delete
appender.rolling.strategy.action.basepath = ${sys:ls.logs}
appender.rolling.strategy.action.maxdepth = 1
appender.rolling.strategy.action.condition.type = IfLastModified
appender.rolling.strategy.action.condition.age = 30D
appender.rolling.strategy.action.pathConditions.type = IfFileName
appender.rolling.strategy.action.pathConditions.glob = logstash-plain-*.log.gz

URL:

https://www.elastic.co/guide/en/logstash/current/logging.html


Another option would be deciding about the #7482 issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants