From the above xml snippet i am using split on issue-group, and need the url-name to create events to have (id, urlname) based on the ref id which is the common field
Please do not ping people not already involved in the thread. This forum is manned by volunteers, so please also be patient. If you have not received any response within a few business days it is usually considered OK to bump your thread.
As far as I can see that does not look like valid XML. Where are the closing tags for xml-content, url-group and issue-group?
Then if the entire text is in a single event then this would work
xml { source => "message" target => "theXML" }
split { field => "[theXML][url-group][0][item]" }
split { field => "[theXML][issue-group][0][item]" }
if [theXML][url-group][0][item][id] != [theXML][issue-group][0][item][url][0][ref][0] { drop {} }
That would get you two events, one of which has name=first and id="-22", and the other has name=second and id="-3". But you are forcing us to guess, which is not good.
1,The number of events will be equal to the items in issue-group.
2,event should contain (issue-group) fields like severity, remediation/ref, url/ref and also the url-group corresponding (name)
so from the above
2 events will be created ::: 1st event (severity = low, remediation = fix_52741, url = -37, name =first) , 2nd evennt (severity = high, remediation = fix_52742, url = -38, name =second)
[2019-01-09T00:32:29,586][WARN ][logstash.filters.split ] Only String and Array types are splittable. field:[theXML][url-group][0][item] is of type = NilClass
[2019-01-09T00:32:29,587][WARN ][logstash.filters.split ] Only String and Array types are splittable. field:[theXML][url-group][0][item] is of type = NilClass
[2019-01-09T00:32:29,587][WARN ][logstash.filters.split ] Only String and Array types are splittable. field:[theXML][issue-group][0][item] is of type = NilClass
[2019-01-09T00:32:29,587][WARN ][logstash.filters.split ] Only String and Array types are splittable. field:[theXML][issue-group][0][item] is of type = NilClass
Split failure , the fields are not visible in the event
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.