-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[Filebeat][module][elastisearch] exclude gc and audit log from server fileset #32781
Conversation
This pull request is now in conflicts. Could you fix it? 🙏
|
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
5c131cf
to
cb07ae3
Compare
This pull request is now in conflicts. Could you fix it? 🙏
|
Another workaround would be specifying more precise path names in the filebeat configuration to avoid pulling unnecessary files, but it's great to add guards around the suggested defaults. Going that route |
@alioug are you still interested in merging this change ? We should also filter out audit logs to be exhaustive |
yes of course, i will add the audit log file. |
a783e2c
to
fc4dbfd
Compare
/test |
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.
At first I thought we should add rotated GC as well based on https://github.com/elastic/beats/blob/main/filebeat/module/elasticsearch/gc/manifest.yml#L6
But since the manifest default is *.log
I think only the initial gc log will get picked up. LGTM!
/test |
I've assigned myself to this and the associated issue to make sure we merge it for @alioug once it's green. |
All green! Merging. Thanks for the fix @alioug ! |
What does this PR do?
Fix filebeat sending gc.log even if gc fileset is disabled
Why is it important?
gc.log is verbose and unnecessarily fills filebeat indices/data streams
Checklist
I have commented my code, particularly in hard-to-understand areasI have made corresponding changes to the documentationI have made corresponding change to the default configuration filesI have added tests that prove my fix is effective or that my feature worksCHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.Author's Checklist
How to test this PR locally
Install filebeat and elasticsearch locally, only enable server fileset (disable gc fileset) and check in filebeat indices there is no more gc logs.
Related issues
Use cases
Screenshots
Logs