-
Notifications
You must be signed in to change notification settings - Fork 24.8k
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
Compress audit logs #64472
Compress audit logs #64472
Conversation
audit logs should be compressed when rolling over due to size based triggering policy breaching 1GB. Total number of zipped files should be the same as for other log = 4 closes elastic#63843
Pinging @elastic/es-core-infra (:Core/Infra/Logging) |
Pinging @elastic/es-security (:Security/Audit) |
@elasticmachine update branch |
I'll leave this review in @albertzaharovits's hands. |
appender.audit_rolling.policies.type = Policies | ||
appender.audit_rolling.policies.time.type = TimeBasedTriggeringPolicy | ||
appender.audit_rolling.policies.time.interval = 1 | ||
appender.audit_rolling.policies.time.modulate = true | ||
appender.audit_rolling.policies.size.type = SizeBasedTriggeringPolicy | ||
appender.audit_rolling.policies.size.size = 1GB |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we need to explicitly set the nomax
file index attribute.
appender.audit_rolling.strategy.type = DefaultRolloverStrategy
appender.audit_rolling.strategy.fileIndex = nomax
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that's right, good find.
@pgomulka Sorry for the huge delay on this PR. Because the log file name changes, some folks might consider it breaking,
Similarly for Also for safety I would label the PR as Also I would work a bit on the description of the PR, on the same lines with the deprecation notice. |
After writing the above I noticed you've removed the |
I removed the 7.11 label as the logs compression would be only enabled in 8.0 exactly for the reason you described #63843 (comment) |
@elasticmachine update branch |
Alright, then. It's cautious to merge to Thank you for solving! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…h into zipping_audit_logs
audit logs should be compressed when rolling over due to size based
triggering policy breaching 1GB.
Files are not being deleted.
closes #63843
gradle check
?