<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How do I parse this XML output into splunk? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-parse-this-XML-output-into-splunk/m-p/205387#M40534</link>
    <description>&lt;P&gt;This works quite well actually. This is what I need. Thanks for the assistance and the knowledge.&lt;/P&gt;</description>
    <pubDate>Fri, 10 Jun 2016 12:17:15 GMT</pubDate>
    <dc:creator>edtayloreyc</dc:creator>
    <dc:date>2016-06-10T12:17:15Z</dc:date>
    <item>
      <title>How do I parse this XML output into splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-parse-this-XML-output-into-splunk/m-p/205383#M40530</link>
      <description>&lt;P&gt;How do I parse this XML output into Splunk?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;configResolveClass cookie="1465464629/12a64fe8-34d5-14d5-8038-86f9029bca70" response="yes" classId="faultInst"&amp;gt;
    &amp;lt;outConfigs&amp;gt;
        &amp;lt;faultInst ack="yes" cause="equipment-degraded" code="F0997" created="Thu Jan  7 20:29:58 2016" descr="Storage Raid Battery SLOT-3 Degraded: please check the battery or the storage controller" affectedDN="sys/rack-unit-1/board/storage-SAS-SLOT-3/raid-battery" highestSeverity="critical" id="3539993344" lastTransition="Thu Jan  7 19:46:32 2016" lc="flapping" occur="45" origSeverity="cleared" prevSeverity="cleared" rule="fltStorageRaidBatteryDegraded" severity="minor" tags="storage" type="server" dn="sys/rack-unit-1/board/storage-SAS-SLOT-3/raid-battery/fault-F0997" /&amp;gt;
    &amp;lt;/outConfigs&amp;gt;
&amp;lt;/configResolveClass&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Currently Splunk treats the whole chunk as a block. Here is my props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[ciscofaults]
DATETIME_CONFIG = CURRENT
KV_MODE = xml
LINE_BREAKER = &amp;lt;faultInst
MUST_BREAK_AFTER = &amp;lt;/faultInst&amp;gt;
NO_BINARY_CHECK = 1
SHOULD_LINEMERGE = false
TRUNCATE = 0
pulldown_type = 1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 09 Jun 2016 13:29:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-parse-this-XML-output-into-splunk/m-p/205383#M40530</guid>
      <dc:creator>edtayloreyc</dc:creator>
      <dc:date>2016-06-09T13:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: How do I parse this XML output into splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-parse-this-XML-output-into-splunk/m-p/205384#M40531</link>
      <description>&lt;P&gt;Is your data coming into the sourcetype ciscofaults?&lt;/P&gt;

&lt;P&gt;Is this props.conf file on an Indexer or Heavy Forwarder? &lt;/P&gt;

&lt;P&gt;Keep in mind MUST_BREAK_AFTER will only be applied if SHOULD_LINEMERGE=true so you don't need the MUST_BREAK_AFTER line. &lt;/P&gt;

&lt;P&gt;You're probably going to need a different LINE_BREAKER command. Can you post the raw events of a couple events? &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 09:55:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-parse-this-XML-output-into-splunk/m-p/205384#M40531</guid>
      <dc:creator>ryanoconnor</dc:creator>
      <dc:date>2020-09-29T09:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: How do I parse this XML output into splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-parse-this-XML-output-into-splunk/m-p/205385#M40532</link>
      <description>&lt;P&gt;Do you want to just pull out the key value pairs or parse the actual XML or both?&lt;/P&gt;

&lt;P&gt;This will at least pull out the key-value pairs:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[ciscofaults]
BREAK_ONLY_BEFORE = &amp;lt;/faultInst&amp;gt;
DATETIME_CONFIG = 
LINE_BREAKER = &amp;lt;faultInst
NO_BINARY_CHECK = true
category = Custom
kv_mode = auto
pulldown_type = true
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 09 Jun 2016 23:00:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-parse-this-XML-output-into-splunk/m-p/205385#M40532</guid>
      <dc:creator>coltwanger</dc:creator>
      <dc:date>2016-06-09T23:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: How do I parse this XML output into splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-parse-this-XML-output-into-splunk/m-p/205386#M40533</link>
      <description>&lt;P&gt;Thanks for the replies. I'd like to also parse the actual XML. This does pull out the KV pairs..&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2016 10:20:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-parse-this-XML-output-into-splunk/m-p/205386#M40533</guid>
      <dc:creator>edtayloreyc</dc:creator>
      <dc:date>2016-06-10T10:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: How do I parse this XML output into splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-parse-this-XML-output-into-splunk/m-p/205387#M40534</link>
      <description>&lt;P&gt;This works quite well actually. This is what I need. Thanks for the assistance and the knowledge.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2016 12:17:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-parse-this-XML-output-into-splunk/m-p/205387#M40534</guid>
      <dc:creator>edtayloreyc</dc:creator>
      <dc:date>2016-06-10T12:17:15Z</dc:date>
    </item>
  </channel>
</rss>

