<?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 REST API modular input xml data parsing in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/REST-API-modular-input-xml-data-parsing/m-p/338553#M40760</link>
    <description>&lt;P&gt;hello splunk &lt;BR /&gt;
i have a question that About extracting by specifying sourcetype in props.conf.&lt;BR /&gt;
i want parsing xml data that Xml data received in response&lt;BR /&gt;
but that data is not parsing&lt;/P&gt;

&lt;P&gt;this is my develop environment &lt;BR /&gt;
1. use REST API&lt;BR /&gt;
- use REST API modular input &lt;BR /&gt;
- Every 300 seconds https call setting&lt;BR /&gt;
- index=main sourcetype=ex_st&lt;BR /&gt;
- install in heavy Forwarder &lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;cluster&lt;/LI&gt;
&lt;LI&gt;1 search head (heavy forwarder and indexer master in 1 search header)&lt;/LI&gt;
&lt;LI&gt;2 indexer(cluster)&lt;/LI&gt;
&lt;LI&gt;props.conf
[xmlData]
category = Custom
SHOULD_LINEMERGE = true
KV_MODE = xml
disabled = false
TRUNCATE = 0
BREAK_ONLY_BEFORE = 
NO_BINARY_CHECK = true
description = XML Data Field extract&lt;/LI&gt;
&lt;LI&gt;received xml data sample &lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;&lt;IMG src="https://community.splunk.com/storage/temp/240587-%E1%84%80%E1%85%B3%E1%84%85%E1%85%B5%E1%86%B71.jpg" alt="alt text" /&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 19:02:56 GMT</pubDate>
    <dc:creator>leeyounsoo</dc:creator>
    <dc:date>2020-09-29T19:02:56Z</dc:date>
    <item>
      <title>REST API modular input xml data parsing</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/REST-API-modular-input-xml-data-parsing/m-p/338553#M40760</link>
      <description>&lt;P&gt;hello splunk &lt;BR /&gt;
i have a question that About extracting by specifying sourcetype in props.conf.&lt;BR /&gt;
i want parsing xml data that Xml data received in response&lt;BR /&gt;
but that data is not parsing&lt;/P&gt;

&lt;P&gt;this is my develop environment &lt;BR /&gt;
1. use REST API&lt;BR /&gt;
- use REST API modular input &lt;BR /&gt;
- Every 300 seconds https call setting&lt;BR /&gt;
- index=main sourcetype=ex_st&lt;BR /&gt;
- install in heavy Forwarder &lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;cluster&lt;/LI&gt;
&lt;LI&gt;1 search head (heavy forwarder and indexer master in 1 search header)&lt;/LI&gt;
&lt;LI&gt;2 indexer(cluster)&lt;/LI&gt;
&lt;LI&gt;props.conf
[xmlData]
category = Custom
SHOULD_LINEMERGE = true
KV_MODE = xml
disabled = false
TRUNCATE = 0
BREAK_ONLY_BEFORE = 
NO_BINARY_CHECK = true
description = XML Data Field extract&lt;/LI&gt;
&lt;LI&gt;received xml data sample &lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;&lt;IMG src="https://community.splunk.com/storage/temp/240587-%E1%84%80%E1%85%B3%E1%84%85%E1%85%B5%E1%86%B71.jpg" alt="alt text" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 19:02:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/REST-API-modular-input-xml-data-parsing/m-p/338553#M40760</guid>
      <dc:creator>leeyounsoo</dc:creator>
      <dc:date>2020-09-29T19:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: REST API modular input xml data parsing</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/REST-API-modular-input-xml-data-parsing/m-p/338554#M40761</link>
      <description>&lt;P&gt;Is that XML above an example of what you want to be indexed ? &lt;/P&gt;</description>
      <pubDate>Tue, 17 Apr 2018 23:19:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/REST-API-modular-input-xml-data-parsing/m-p/338554#M40761</guid>
      <dc:creator>Damien_Dallimor</dc:creator>
      <dc:date>2018-04-17T23:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: REST API modular input xml data parsing</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/REST-API-modular-input-xml-data-parsing/m-p/338555#M40762</link>
      <description>&lt;P&gt;yes.&lt;BR /&gt;
i want parsing event from that one xml data&lt;BR /&gt;
like this :&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;event parsing &lt;/LI&gt;
&lt;LI&gt;event parsing by "data" tag&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;----------1st evnet ----------&lt;BR /&gt;
data&lt;BR /&gt;
    ...(skip)&lt;BR /&gt;
/data&lt;/P&gt;

&lt;P&gt;----------2nd evnet ----------&lt;BR /&gt;
data&lt;BR /&gt;
    ...(skip)&lt;BR /&gt;
/data&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;field extraction &lt;/LI&gt;
&lt;LI&gt;fields data_tag0, data_tag1, data_tag2 ....(skip)&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Tue, 29 Sep 2020 19:07:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/REST-API-modular-input-xml-data-parsing/m-p/338555#M40762</guid>
      <dc:creator>leeyounsoo</dc:creator>
      <dc:date>2020-09-29T19:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: REST API modular input xml data parsing</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/REST-API-modular-input-xml-data-parsing/m-p/338556#M40763</link>
      <description>&lt;P&gt;I knew why it was not automatically parsed and I solved it.&lt;/P&gt;

&lt;P&gt;The reason it has not been parsed is that the XML data passed to the response is so large that the event is restricted and the XML structure is corrupted.&lt;/P&gt;

&lt;P&gt;i modified the "TRUNCATE" setting to include all the XML data in one event so that it was automatically parsed.&lt;/P&gt;

&lt;P&gt;Here is the props.conf configuration.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[xml_data]
KV_MODE = xml
# BREAK_ONLY_BEFORE = \&amp;lt;data_list_wrap
BREAK_ONLY_BEFORE = \ &amp;lt;\? Xml version = \ "1 \ .0 \" encoding = \ "UTF-8 \" \?
SHOULD_LINEMERGE = true
TRUNCATE = 70000
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 02 May 2018 01:36:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/REST-API-modular-input-xml-data-parsing/m-p/338556#M40763</guid>
      <dc:creator>leeyounsoo</dc:creator>
      <dc:date>2018-05-02T01:36:15Z</dc:date>
    </item>
  </channel>
</rss>

