<?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 to add and parse XML data in Splunk? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-add-and-parse-XML-data-in-Splunk/m-p/658758#M111403</link>
    <description>&lt;P&gt;got nasty gram for posting links&lt;/P&gt;&lt;P&gt;search online for freeload101 github in scripts nmap_fruit.sh&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 06 Mar 2024 18:13:02 GMT</pubDate>
    <dc:creator>RMcCurdyDOTcom</dc:creator>
    <dc:date>2024-03-06T18:13:02Z</dc:date>
    <item>
      <title>How to add and parse XML data in Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-add-and-parse-XML-data-in-Splunk/m-p/118810#M24653</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
I have an XML file as my source file. It has the following structure:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;photos&amp;gt;
     &amp;lt;photo id="123" title="Birthday" format="jpg"&amp;gt;
          &amp;lt;owner id="1111"&amp;gt;Jason&amp;lt;/owner&amp;gt;
          &amp;lt;comments&amp;gt;
              &amp;lt;comment ownerid="112"&amp;gt;Good pic!&amp;lt;/comment&amp;gt;
              &amp;lt;comment ownerif="223"&amp;gt;Happy birthday&amp;lt;/comment&amp;gt;
          &amp;lt;comments&amp;gt;
      &amp;lt;/photo&amp;gt;
&amp;lt;/photos&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;How do i parse this and load this data into splunk?&lt;/P&gt;

&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Nov 2014 19:48:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-add-and-parse-XML-data-in-Splunk/m-p/118810#M24653</guid>
      <dc:creator>prijila</dc:creator>
      <dc:date>2014-11-17T19:48:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to add and parse XML data in Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-add-and-parse-XML-data-in-Splunk/m-p/118811#M24654</link>
      <description>&lt;P&gt;xmlkv and path should help you. Please refer this answer &lt;A href="http://answers.splunk.com/answers/54957/how-to-extract-data-from-xml.html"&gt;http://answers.splunk.com/answers/54957/how-to-extract-data-from-xml.html&lt;/A&gt;&lt;BR /&gt;
Hope this helps.&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Raghav&lt;/P&gt;</description>
      <pubDate>Mon, 17 Nov 2014 19:53:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-add-and-parse-XML-data-in-Splunk/m-p/118811#M24654</guid>
      <dc:creator>Raghav2384</dc:creator>
      <dc:date>2014-11-17T19:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to add and parse XML data in Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-add-and-parse-XML-data-in-Splunk/m-p/118812#M24655</link>
      <description>&lt;P&gt;This might be helpful:&lt;BR /&gt;
&lt;A href="http://answers.splunk.com/answers/683/xml-input-line-breaking-and-field-extraction-how.html"&gt;http://answers.splunk.com/answers/683/xml-input-line-breaking-and-field-extraction-how.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Nov 2014 00:30:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-add-and-parse-XML-data-in-Splunk/m-p/118812#M24655</guid>
      <dc:creator>aljohnson_splun</dc:creator>
      <dc:date>2014-11-18T00:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to add and parse XML data in Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-add-and-parse-XML-data-in-Splunk/m-p/118813#M24656</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;sample xml, &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;photos&amp;gt;
&amp;lt;photo id="1231" title="Birthday" format="jpg"&amp;gt;
&amp;lt;owner id="1112"&amp;gt;Jason&amp;lt;/owner&amp;gt;
&amp;lt;comments&amp;gt;
&amp;lt;comment ownerid="113"&amp;gt;Good pic!&amp;lt;/comment&amp;gt;
&amp;lt;comment ownerid="224"&amp;gt;Happy birthday&amp;lt;/comment&amp;gt;
&amp;lt;comments&amp;gt;
&amp;lt;/photo&amp;gt;
&amp;lt;/photos&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[yoursourcetype]
DATETIME_CONFIG = CURRENT
KV_MODE = xml
LINE_BREAKER = (&amp;lt;photos&amp;gt;)
MUST_BREAK_AFTER = \&amp;lt;/photos\&amp;gt;
NO_BINARY_CHECK = 1
SHOULD_LINEMERGE = false
TRUNCATE = 0
pulldown_type = 1
FIELDALIAS-rootfields = photo.owner as Owner photo{@id} as PhotoID photo{@title} as PhotoTitle photo.owner{@id} as PhotoOwnerID photo{@format} as PhotoFormat photo.comments.comment{@ownerid} as CommentOwnerID photo.comments.comment as Comment
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Search&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=&amp;lt;yourindex&amp;gt; sourcetype=&amp;lt;yoursourcetype&amp;gt; | table  PhotoID,PhotoTitle,PhotoFormat,CommentOwnerID,Comment,Owner
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 18 Nov 2014 17:38:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-add-and-parse-XML-data-in-Splunk/m-p/118813#M24656</guid>
      <dc:creator>vasanthmss</dc:creator>
      <dc:date>2014-11-18T17:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to add and parse XML data in Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-add-and-parse-XML-data-in-Splunk/m-p/118814#M24657</link>
      <description>&lt;P&gt;Which props.con should we modify ? ../etc/system or ..etc/apps &lt;/P&gt;

&lt;P&gt;Thank you !&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2015 23:04:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-add-and-parse-XML-data-in-Splunk/m-p/118814#M24657</guid>
      <dc:creator>ifremer2015</dc:creator>
      <dc:date>2015-04-21T23:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to add and parse XML data in Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-add-and-parse-XML-data-in-Splunk/m-p/118815#M24658</link>
      <description>&lt;P&gt;In-case if the sourcetype belongs to one application you can update this in application (/etc/apps//local/props.conf. &lt;/P&gt;

&lt;P&gt;The same sourcetype can be re-used in more than one application you can add it in system props.conf&lt;BR /&gt;
/etc/system/local/props.conf.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Aug 2015 18:49:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-add-and-parse-XML-data-in-Splunk/m-p/118815#M24658</guid>
      <dc:creator>krishnarajb2304</dc:creator>
      <dc:date>2015-08-10T18:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to add and parse XML data in Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-add-and-parse-XML-data-in-Splunk/m-p/118816#M24659</link>
      <description>&lt;P&gt;Very helpful.  working with an XML that the designer decided to embed more fields in the value between the tags like this:&lt;BR /&gt;
$field1=stuff,$field2=morestuff,$field3=evenmorestuff &lt;BR /&gt;
Have not found a way to get these $fields to extract successfully.  Suggestions?&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2017 13:58:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-add-and-parse-XML-data-in-Splunk/m-p/118816#M24659</guid>
      <dc:creator>donaldwayne1975</dc:creator>
      <dc:date>2017-03-15T13:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to add and parse XML data in Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-add-and-parse-XML-data-in-Splunk/m-p/118817#M24660</link>
      <description>&lt;P&gt;@donaldwayne1975&lt;BR /&gt;
You can add EVAL into your props for this. &lt;/P&gt;</description>
      <pubDate>Thu, 30 Aug 2018 22:04:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-add-and-parse-XML-data-in-Splunk/m-p/118817#M24660</guid>
      <dc:creator>akocak</dc:creator>
      <dc:date>2018-08-30T22:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to add and parse XML data in Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-add-and-parse-XML-data-in-Splunk/m-p/658756#M111402</link>
      <description>&lt;P&gt;nmap XML to SPLUNK HEC !!!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;https://github.com/freeload101/SCRIPTS/blob/b3f83288a9f289d86f6cdd04898478d0427097ce/Bash/NMAP_FRUIT.sh#L80&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2023 13:59:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-add-and-parse-XML-data-in-Splunk/m-p/658756#M111402</guid>
      <dc:creator>RMcCurdyDOTcom</dc:creator>
      <dc:date>2023-09-26T13:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to add and parse XML data in Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-add-and-parse-XML-data-in-Splunk/m-p/658758#M111403</link>
      <description>&lt;P&gt;got nasty gram for posting links&lt;/P&gt;&lt;P&gt;search online for freeload101 github in scripts nmap_fruit.sh&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2024 18:13:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-add-and-parse-XML-data-in-Splunk/m-p/658758#M111403</guid>
      <dc:creator>RMcCurdyDOTcom</dc:creator>
      <dc:date>2024-03-06T18:13:02Z</dc:date>
    </item>
  </channel>
</rss>

