-
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
Fields merging in 6.0 differs from 5.x #5795
Comments
I did a quick test here to reproduce it. The following still works as expected:
But if I add global fields like below, I have
@urso The problem must happen when merging global with local fields. Perhaps some state? @tehmoon Thanks for reporting. A workaround for now would be to specify all fields local for each prospector. |
@ruflin Thanks for checking! Interestingly enough, I didn't think of completely copying the whole Regards, |
Thanks for testing. I will have a look. |
@ruflin I do confirm that duplicating the whole field Thank you for responding so quick!! |
Following the bug report I filed on discuss: https://discuss.elastic.co/t/fields-merging-in-6-0-differs-from-5-x/109838
I was in the process of upgrade my filebeats from
5.6
to6.0
onlinux
. But it broke mylogstash
pipeline. The reason is -- I think -- a bug in the merging fields process of thefields
option in the yaml config file.My configuration is as follow:
I do all the sorting on the
fields.type
field. Everything worked fine in5.6.4
, the filessyslog
,auth.log
andkern.log
would havefields.type
set tosyslog
.events.log
would have it set toansible_events
andmain.log
tocs_main
.After upgrading to
6.0.0
all my events were set tosyslog
. A quick debugging showed thatfilebeat
was taking the lastinput_type
declared. To prove it, I just moved some section on top to the bottom and all of the events got thatfields.type
.I'm not too sure how to debug further, but I'll happy to answer quickly if need help.
The text was updated successfully, but these errors were encountered: