I would like some recommendation on how to parse a given xml document at logstash if i am looking for value of specific field which can appear in different fields in multiple xmls doc , for ex product ,sales, inventory,xml being uploaded from file beats, but they all go same elastic index as the eventual requirement is the get the fields data out of those and not the xml data itself.
for ex I am looking for Product Num which may be come from several different xml files under different nodes and attributes. for ex , and i am always interest in Value field if the match is for Product Num or similar fields representing the information.
<A><B><C name=Prod value=xyz></B><A>
Based on my limited knowledge, of logstash, I can only think of one way, - using a long conditional block , but that looks and feels wierd
Please let me know if there are primitives there can be used, to avoid this long conditionals