<?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 How do I configure Splunk to parse XML log files for each transaction in POS? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-configure-Splunk-to-parse-XML-log-files-for-each/m-p/157537#M9718</link>
    <description>&lt;P&gt;I have XML Log files for each transaction in POS&lt;/P&gt;

&lt;P&gt;How to get Splunk to process these log file so key-value pairs are created per transaction.&lt;BR /&gt;
In my case, each transaction is producing a log file - one XML file. So there are a lot of XML files needed to be processed by Splunk.&lt;/P&gt;

&lt;P&gt;Is there an approach in Splunk to do it easily?&lt;/P&gt;</description>
    <pubDate>Sun, 26 Apr 2015 23:48:22 GMT</pubDate>
    <dc:creator>jensonthottian</dc:creator>
    <dc:date>2015-04-26T23:48:22Z</dc:date>
    <item>
      <title>How do I configure Splunk to parse XML log files for each transaction in POS?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-configure-Splunk-to-parse-XML-log-files-for-each/m-p/157537#M9718</link>
      <description>&lt;P&gt;I have XML Log files for each transaction in POS&lt;/P&gt;

&lt;P&gt;How to get Splunk to process these log file so key-value pairs are created per transaction.&lt;BR /&gt;
In my case, each transaction is producing a log file - one XML file. So there are a lot of XML files needed to be processed by Splunk.&lt;/P&gt;

&lt;P&gt;Is there an approach in Splunk to do it easily?&lt;/P&gt;</description>
      <pubDate>Sun, 26 Apr 2015 23:48:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-configure-Splunk-to-parse-XML-log-files-for-each/m-p/157537#M9718</guid>
      <dc:creator>jensonthottian</dc:creator>
      <dc:date>2015-04-26T23:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: How do I configure Splunk to parse XML log files for each transaction in POS?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-configure-Splunk-to-parse-XML-log-files-for-each/m-p/157538#M9719</link>
      <description>&lt;P&gt;There are two things you want to do in your props.conf file in order to parts XML files.&lt;BR /&gt;
First... you need to tell Splunk where to break your event. Depending on what else is in the file you might want to use something like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;BREAK_ONLY_BEFORE=[you put your regex here]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Or &lt;CODE&gt;LINE_BREAKER&lt;/CODE&gt;.&lt;BR /&gt;
Both of these are detailed in the spec for props.conf &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.2/Admin/Propsconf"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.2/Admin/Propsconf&lt;/A&gt;&lt;BR /&gt;
Then you'll want to add the directive:&lt;BR /&gt;
&lt;CODE&gt;KV_MODE=XML&lt;/CODE&gt;&lt;BR /&gt;
Which will produce search time field extractions based on your KV pairs.&lt;/P&gt;

&lt;P&gt;If the data is already in Splunk and/or you don't have access to the props.conf file you can use &lt;CODE&gt;spath&lt;/CODE&gt; to do field-time extractions within your search:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.2/SearchReference/Spath"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.2/SearchReference/Spath&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;If you want more specifics, you'll have to show some sample data.&lt;/P&gt;

&lt;P&gt;Edit your question, and past sample data within the original question.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2015 00:49:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-configure-Splunk-to-parse-XML-log-files-for-each/m-p/157538#M9719</guid>
      <dc:creator>rsennett_splunk</dc:creator>
      <dc:date>2015-04-27T00:49:29Z</dc:date>
    </item>
  </channel>
</rss>

