<?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: KV_MODE not extracting xml fields in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/KV-MODE-not-extracting-xml-fields/m-p/474349#M81457</link>
    <description>&lt;P&gt;Can you please provide raw data (mask any sensitive information) ? This answer might help you &lt;A href="https://answers.splunk.com/answers/744449/how-to-parse-out-fields.html"&gt;https://answers.splunk.com/answers/744449/how-to-parse-out-fields.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 09 Apr 2020 15:27:20 GMT</pubDate>
    <dc:creator>harsmarvania57</dc:creator>
    <dc:date>2020-04-09T15:27:20Z</dc:date>
    <item>
      <title>KV_MODE not extracting xml fields</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/KV-MODE-not-extracting-xml-fields/m-p/474346#M81454</link>
      <description>&lt;P&gt;I have an app on a deployment server that runs a script and has splunk ingest the output which is valid xml. I've added a props.conf on the Search Heads with KV_MODE=xml but no fields are being extracted. When I run | xmlkv at the end of my query it extracts all xml fields. Is there anything I'm missing that would cause Splunk not to extract the xml fields automatically?&lt;/P&gt;

&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2020 14:45:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/KV-MODE-not-extracting-xml-fields/m-p/474346#M81454</guid>
      <dc:creator>willcwhite</dc:creator>
      <dc:date>2020-04-09T14:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: KV_MODE not extracting xml fields</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/KV-MODE-not-extracting-xml-fields/m-p/474347#M81455</link>
      <description>&lt;P&gt;Can you post props.conf?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2020 15:11:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/KV-MODE-not-extracting-xml-fields/m-p/474347#M81455</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2020-04-09T15:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: KV_MODE not extracting xml fields</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/KV-MODE-not-extracting-xml-fields/m-p/474348#M81456</link>
      <description>&lt;P&gt;[mysourcetype]&lt;BR /&gt;
SHOULD_LINEMERGE=true&lt;BR /&gt;
LINE_BREAKER=([\r\n]+)&lt;BR /&gt;
NO_BINARY_CHECK=true&lt;BR /&gt;
BREAK_ONLY_BEFORE=^\s+(&amp;lt;\w+:\w+&amp;gt;)&lt;BR /&gt;
CHARSET=UTF-8&lt;BR /&gt;
disabled=false&lt;BR /&gt;
KV_MODE=xml&lt;BR /&gt;
DATETIME_CONFIG=CURRENT&lt;BR /&gt;
TRUNCATE=10000&lt;/P&gt;

&lt;P&gt;This is the same props I have on the deployment server as well as the search heads&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:59:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/KV-MODE-not-extracting-xml-fields/m-p/474348#M81456</guid>
      <dc:creator>willcwhite</dc:creator>
      <dc:date>2020-09-30T04:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: KV_MODE not extracting xml fields</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/KV-MODE-not-extracting-xml-fields/m-p/474349#M81457</link>
      <description>&lt;P&gt;Can you please provide raw data (mask any sensitive information) ? This answer might help you &lt;A href="https://answers.splunk.com/answers/744449/how-to-parse-out-fields.html"&gt;https://answers.splunk.com/answers/744449/how-to-parse-out-fields.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2020 15:27:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/KV-MODE-not-extracting-xml-fields/m-p/474349#M81457</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2020-04-09T15:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: KV_MODE not extracting xml fields</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/KV-MODE-not-extracting-xml-fields/m-p/474350#M81458</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;    &amp;lt;d:GenID m:type="Edm.String"&amp;gt;xxx&amp;lt;/d:GenID&amp;gt;
    &amp;lt;d:PLANT_ID m:type="Edm.String"&amp;gt;xxx&amp;lt;/d:PLANT_ID&amp;gt;
    &amp;lt;d:TOTAL_SD_LINES m:type="Edm.Double"&amp;gt;xxx&amp;lt;/d:TOTAL_SD_LINES&amp;gt;
    &amp;lt;d:TOTAL_SD_LINES_WO_DELV m:type="Edm.Double"&amp;gt;xxx&amp;lt;/d:TOTAL_SD_LINES_WO_DELV&amp;gt;
    &amp;lt;d:TOTAL_DELV_LINES m:type="Edm.Double"&amp;gt;xxx&amp;lt;/d:TOTAL_DELV_LINES&amp;gt;
    &amp;lt;d:TOTAL_DELV_LINES_WO_TO m:type="Edm.Double"&amp;gt;xxx&amp;lt;/d:TOTAL_DELV_LINES_WO_TO&amp;gt;
    &amp;lt;d:TOTAL_TO_LINES m:type="Edm.Double"&amp;gt;xxx&amp;lt;/d:TOTAL_TO_LINES&amp;gt;
    &amp;lt;d:TOTAL_TO_LINES_CONFIRMED m:type="Edm.Double"&amp;gt;xxx&amp;lt;/d:TOTAL_TO_LINES_CONFIRMED&amp;gt;
    &amp;lt;d:TOTAL_TO_LINES_NOT_CONFIRMED m:type="Edm.Double"&amp;gt;xx&amp;lt;/d:TOTAL_TO_LINES_NOT_CONFIRMED&amp;gt;
  &amp;lt;/m:properties&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 09 Apr 2020 17:44:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/KV-MODE-not-extracting-xml-fields/m-p/474350#M81458</guid>
      <dc:creator>willcwhite</dc:creator>
      <dc:date>2020-04-09T17:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: KV_MODE not extracting xml fields</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/KV-MODE-not-extracting-xml-fields/m-p/474351#M81459</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval _raw="&amp;lt;m:properties&amp;gt;
  &amp;lt;d:GenID m:type=\"Edm.String\"&amp;gt;xxx&amp;lt;/d:GenID&amp;gt;
  &amp;lt;d:PLANT_ID m:type=\"Edm.String\"&amp;gt;xxx&amp;lt;/d:PLANT_ID&amp;gt;
  &amp;lt;d:TOTAL_SD_LINES m:type=\"Edm.Double\"&amp;gt;xxx&amp;lt;/d:TOTAL_SD_LINES&amp;gt;
  &amp;lt;d:TOTAL_SD_LINES_WO_DELV m:type=\"Edm.Double\"&amp;gt;xxx&amp;lt;/d:TOTAL_SD_LINES_WO_DELV&amp;gt;
  &amp;lt;d:TOTAL_DELV_LINES m:type=\"Edm.Double\"&amp;gt;xxx&amp;lt;/d:TOTAL_DELV_LINES&amp;gt;
  &amp;lt;d:TOTAL_DELV_LINES_WO_TO m:type=\"Edm.Double\"&amp;gt;xxx&amp;lt;/d:TOTAL_DELV_LINES_WO_TO&amp;gt;
  &amp;lt;d:TOTAL_TO_LINES m:type=\"Edm.Double\"&amp;gt;xxx&amp;lt;/d:TOTAL_TO_LINES&amp;gt;
  &amp;lt;d:TOTAL_TO_LINES_CONFIRMED m:type=\"Edm.Double\"&amp;gt;xxx&amp;lt;/d:TOTAL_TO_LINES_CONFIRMED&amp;gt;
  &amp;lt;d:TOTAL_TO_LINES_NOT_CONFIRMED m:type=\"Edm.Double\"&amp;gt;xx&amp;lt;/d:TOTAL_TO_LINES_NOT_CONFIRMED&amp;gt;
&amp;lt;/m:properties&amp;gt;
&amp;lt;m:properties&amp;gt;
  &amp;lt;d:GenID m:type=\"Edm.String\"&amp;gt;xxx&amp;lt;/d:GenID&amp;gt;
  &amp;lt;d:PLANT_ID m:type=\"Edm.String\"&amp;gt;xxx&amp;lt;/d:PLANT_ID&amp;gt;
  &amp;lt;d:TOTAL_SD_LINES m:type=\"Edm.Double\"&amp;gt;xxx&amp;lt;/d:TOTAL_SD_LINES&amp;gt;
  &amp;lt;d:TOTAL_SD_LINES_WO_DELV m:type=\"Edm.Double\"&amp;gt;xxx&amp;lt;/d:TOTAL_SD_LINES_WO_DELV&amp;gt;
  &amp;lt;d:TOTAL_DELV_LINES m:type=\"Edm.Double\"&amp;gt;xxx&amp;lt;/d:TOTAL_DELV_LINES&amp;gt;
  &amp;lt;d:TOTAL_DELV_LINES_WO_TO m:type=\"Edm.Double\"&amp;gt;xxx&amp;lt;/d:TOTAL_DELV_LINES_WO_TO&amp;gt;
  &amp;lt;d:TOTAL_TO_LINES m:type=\"Edm.Double\"&amp;gt;yyy&amp;lt;/d:TOTAL_TO_LINES&amp;gt;
  &amp;lt;d:TOTAL_TO_LINES_CONFIRMED m:type=\"Edm.Double\"&amp;gt;xxx&amp;lt;/d:TOTAL_TO_LINES_CONFIRMED&amp;gt;
  &amp;lt;d:TOTAL_TO_LINES_NOT_CONFIRMED m:type=\"Edm.Double\"&amp;gt;xx&amp;lt;/d:TOTAL_TO_LINES_NOT_CONFIRMED&amp;gt;
&amp;lt;/m:properties&amp;gt;" 
| rex mode=sed "s/(?ms)([\r\n\s]+)\&amp;lt;m/#&amp;lt;m/g" 
| makemv delim="#" _raw 
| stats count by _raw 
| xmlkv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;For this result, props.conf is following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[yoursourcetype]
SHOULD_LINEMERGE=false
LINE_BREAKER=([\r\n\s]+)\&amp;lt;m
NO_BINARY_CHECK=true
CHARSET=UTF-8
disabled=false
KV_MODE=xml
DATETIME_CONFIG=CURRENT
TRUNCATE=0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;How about this?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2020 19:55:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/KV-MODE-not-extracting-xml-fields/m-p/474351#M81459</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-04-09T19:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: KV_MODE not extracting xml fields</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/KV-MODE-not-extracting-xml-fields/m-p/474352#M81460</link>
      <description>&lt;P&gt;This issue was that the app was not visible and in scope with the user. This issue was resolved by adding a metadata file in the SHC app as follows&lt;BR /&gt;
    shcluster/apps/appname/metadata/&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;File: default.meta

[]
export=system
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 16 Apr 2020 16:50:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/KV-MODE-not-extracting-xml-fields/m-p/474352#M81460</guid>
      <dc:creator>wwhite12</dc:creator>
      <dc:date>2020-04-16T16:50:24Z</dc:date>
    </item>
  </channel>
</rss>

