-
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
drop_event does not work in a Metricbeat module filter #2249
Comments
@ruflin Should The examples on that page are wrong. The |
I remember we had the discussion about filters vs processors in the past. I think the conclusion was to keep it filter here and if possible only expose the pure filter capabilities. Perhaps worth discussing again. For the fields: As it is inside the module config I would expect |
After thinking about it a bit more, the benefit of having module specific filters is that you don't waste CPU cycles running the filter on all events and you don't need as many conditions on your filters since they only apply to that module. If we require uses to specify the full field name like If we decide to go with |
I opened PR #2256 to address the drop_event filtering issue. It does not change any of the naming or how the filters are applied within the module. |
+1 on useing The reason I'm kind of hesitant to use processors is as I'm not sure yet if all future capabilities of processors will be / should be available already on the module level before the final event was generated. This would also mean that the filters are only a subset of processors and not all functionality is available on the module level. |
I just realized that if we changed the filters to be applied post event creation that this would change the behavior of include_fields. If you set |
@andrewkroh Thanks for the fix. We should definitively apply "filters" before the event creation. To still use the full field names we could probably add some magic? |
When the event is published this is what you get. Notice the
null
. What should happen is the whole event is dropped.The text was updated successfully, but these errors were encountered: