<?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: Where and how do I configure a sourcetype for generic xml? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Where-and-how-do-I-configure-a-sourcetype-for-generic-xml/m-p/625064#M107439</link>
    <description>&lt;P&gt;is there a way to see how it will work before applying it ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;so if it won't work as planned i won't have to delete all the data inserted?&lt;/P&gt;&lt;P&gt;did you happen to check how it works on generic xml files or any sample from some place else?&lt;/P&gt;</description>
    <pubDate>Thu, 22 Dec 2022 09:28:19 GMT</pubDate>
    <dc:creator>dorbi</dc:creator>
    <dc:date>2022-12-22T09:28:19Z</dc:date>
    <item>
      <title>Where and how do I configure a sourcetype for generic xml?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Where-and-how-do-I-configure-a-sourcetype-for-generic-xml/m-p/624864#M107410</link>
      <description>&lt;P&gt;Hey there!&lt;/P&gt;
&lt;P&gt;I'm trying to monitor(batch)) a folder congaing&amp;nbsp; xml files,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the XML files don't necessarily have the same structure, also they have multiple hierarchy and the level of it might vary .&lt;/P&gt;
&lt;P&gt;where and how do i configure a sourcetype the know's how to handle this kind of a case so i won't have to parse the data with rex on search time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;example for a file that may exists:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dorbi_0-1671549060796.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/23093i21130A91C6F16307/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dorbi_0-1671549060796.png" alt="dorbi_0-1671549060796.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2022 15:23:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Where-and-how-do-I-configure-a-sourcetype-for-generic-xml/m-p/624864#M107410</guid>
      <dc:creator>dorbi</dc:creator>
      <dc:date>2022-12-20T15:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: Where and how do I configure a sourcetype for generic xml?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Where-and-how-do-I-configure-a-sourcetype-for-generic-xml/m-p/624870#M107413</link>
      <description>&lt;P&gt;The &lt;FONT face="courier new,courier"&gt;rex&lt;/FONT&gt; command is very flexible, but there are others you can use.&amp;nbsp; Consider &lt;FONT face="courier new,courier"&gt;xpath&lt;/FONT&gt; and &lt;FONT face="courier new,courier"&gt;xmlkv&lt;/FONT&gt;.&lt;/P&gt;&lt;P&gt;In props.conf, consider using &lt;FONT face="courier new,courier"&gt;KV_MODE = xml&lt;/FONT&gt; to have Splunk automatically extract fields.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2022 16:41:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Where-and-how-do-I-configure-a-sourcetype-for-generic-xml/m-p/624870#M107413</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-12-20T16:41:44Z</dc:date>
    </item>
    <item>
      <title>Re: Where and how do I configure a sourcetype for generic xml?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Where-and-how-do-I-configure-a-sourcetype-for-generic-xml/m-p/624950#M107424</link>
      <description>&lt;P&gt;Writing regex with Rex field =_raw..&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is a great solution but I would like to do it at source type level so I won't have to write long and complicated querys.&lt;/P&gt;&lt;P&gt;I tried xmlkv and kv_mode = xml both doesn't extract fields with 2 or more levels of hierarchy so I'm missing a lot of fields.&lt;/P&gt;&lt;P&gt;Any more suggestions please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2022 10:38:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Where-and-how-do-I-configure-a-sourcetype-for-generic-xml/m-p/624950#M107424</guid>
      <dc:creator>dorbi</dc:creator>
      <dc:date>2022-12-21T10:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: Where and how do I configure a sourcetype for generic xml?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Where-and-how-do-I-configure-a-sourcetype-for-generic-xml/m-p/624985#M107428</link>
      <description>&lt;P&gt;Have you tried &lt;FONT face="courier new,courier"&gt;KV_MODE = xml&lt;/FONT&gt; in props.conf?&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2022 14:16:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Where-and-how-do-I-configure-a-sourcetype-for-generic-xml/m-p/624985#M107428</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-12-21T14:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: Where and how do I configure a sourcetype for generic xml?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Where-and-how-do-I-configure-a-sourcetype-for-generic-xml/m-p/625064#M107439</link>
      <description>&lt;P&gt;is there a way to see how it will work before applying it ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;so if it won't work as planned i won't have to delete all the data inserted?&lt;/P&gt;&lt;P&gt;did you happen to check how it works on generic xml files or any sample from some place else?&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 09:28:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Where-and-how-do-I-configure-a-sourcetype-for-generic-xml/m-p/625064#M107439</guid>
      <dc:creator>dorbi</dc:creator>
      <dc:date>2022-12-22T09:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: Where and how do I configure a sourcetype for generic xml?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Where-and-how-do-I-configure-a-sourcetype-for-generic-xml/m-p/625099#M107445</link>
      <description>&lt;P&gt;Regrettably, there is no way to see how fields will be extracted before ingesting data.&amp;nbsp; The Extract FIeld wizard lets you preview extractions, but requires onboarded events.&lt;/P&gt;&lt;P&gt;This is a good use for a test system, even if it's your workstation.&amp;nbsp; Capture some sample data in a file, transfer the file to the test system and experiment with field extractions there.&amp;nbsp; Once you have it working as desired, export the settings in an app for installation in Production.&amp;nbsp; When you're done, just delete the index you used for testing.&lt;/P&gt;&lt;P&gt;If you can't use a test system then you'll have to test in Production.&amp;nbsp; Use a separate index (I call mine "test") until you have the extractions working right.&amp;nbsp; Since you're likely to be using search-time extractions, you should need to ingest the data only once.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 14:49:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Where-and-how-do-I-configure-a-sourcetype-for-generic-xml/m-p/625099#M107445</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-12-22T14:49:57Z</dc:date>
    </item>
  </channel>
</rss>

