Quantcast
Channel: Questions in topic: "splunk-enterprise"
Viewing all articles
Browse latest Browse all 47296

How to parse a XML log file?

$
0
0
Hi I reviewed different questions related to XML, but I haven't found a solution to this. I already know how parse this type of xml where you have a repeated pattern: PASSED2015-06-18T10:10:212015-06-18T10:11:05Rivera, Pedro501FAILED2015-06-18T10:11:052015-06-18T10:12:30Rivera, Pedro502 The issue is how to parse some headers elements. In this case, I want the TEST, CONF, and DESC fields available to all RESULTS. In my current configuration, I have a line breaker that divides this xml log and makes each RESULTS an event which is what I'm looking for, but none of those events have information about the TEST, CONF, and DESC. I'm looking in a way to provide those fields to all RESULTS events. AA-3ER34556W34R-VDSSome test description...PASSED2015-06-18T10:10:212015-06-18T10:11:05Rivera, Pedro501FAILED2015-06-18T10:11:052015-06-18T10:12:30Rivera, Pedro502 I understand that the best thing is to have the TEST, CONF and DESC elements inside of each RESULTS, but this a xml log and I cannot change it. Thanks

Viewing all articles
Browse latest Browse all 47296

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>