-
Notifications
You must be signed in to change notification settings - Fork 33
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
Target is required value as xml_store is default to true #37
Comments
But... then people would have to set the |
Just ran into this issue today. Tried to set an xml filter with only a source field. A concrete and descriptive error message seems to be raised here:
But this error does not actually make it to the end user, at least in my case, here's what I got:
Actually receiving this error and/or more clearly stated documentation would solve a lot of headaches. I found this open issue because after some extensive googling I could not find why my XML was failing so I went and looked at the register block in the xml filter code. |
@mut3, your bad experience is due to a bug in Logstash 2.4.0 that was fixed in 2.4.1 and 5.x (although in different ways). See elastic/logstash#6011 for the fix that went into 2.4.1. |
According to documentation:
https://github.com/logstash-plugins/logstash-filter-xml/blob/master/lib/logstash/filters/xml.rb#L40
what makes this field required, but is not like this in the documentation causing probably many unknown errors until this is discovered.
Easy fix would be to just make the target field required.
The text was updated successfully, but these errors were encountered: