<?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 edit my transforms.conf xml field extraction? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-transforms-conf-xml-field-extraction/m-p/261747#M78576</link>
    <description>&lt;P&gt;I believe you need to setup KV_MODe=xml for your sourcetype in your search head (for search time field extractions).&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[yoursourcetype]
KV_MODE= xml
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;See this: &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.2/Knowledge/Automatickey-valuefieldextractionsatsearch-time"&gt;http://docs.splunk.com/Documentation/Splunk/6.5.2/Knowledge/Automatickey-valuefieldextractionsatsearch-time&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 26 Jan 2017 22:47:35 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2017-01-26T22:47:35Z</dc:date>
    <item>
      <title>How to edit my transforms.conf xml field extraction?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-transforms-conf-xml-field-extraction/m-p/261746#M78575</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
I am not finding any previous posts that answer my question so here it is.&lt;/P&gt;

&lt;P&gt;I have a security appliance that sends XML alerts to Splunk.&lt;/P&gt;

&lt;P&gt;in my props.conf file  I have &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[sec_app_xml]
SHOULD_LINEMERGE = false
LINE_BREAKER = ([\r\n]+)(^\&amp;lt;\?xml.*\&amp;lt;\/alerts\&amp;gt;$)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;now I would like extract all values from between the tags  for example&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;smtp-header&amp;gt;  blah blah blah ... etc ...&amp;lt;/smtp-header&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;so that I get the field smtp_header and the value contained between the xml tags.&lt;/P&gt;

&lt;P&gt;I started a Transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;#XML field extractions
[sec_app_xml]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;but I have had no luck with a regex?&lt;/P&gt;

&lt;P&gt;Please advise, Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2017 21:34:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-transforms-conf-xml-field-extraction/m-p/261746#M78575</guid>
      <dc:creator>packet_hunter</dc:creator>
      <dc:date>2017-01-26T21:34:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my transforms.conf xml field extraction?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-transforms-conf-xml-field-extraction/m-p/261747#M78576</link>
      <description>&lt;P&gt;I believe you need to setup KV_MODe=xml for your sourcetype in your search head (for search time field extractions).&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[yoursourcetype]
KV_MODE= xml
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;See this: &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.2/Knowledge/Automatickey-valuefieldextractionsatsearch-time"&gt;http://docs.splunk.com/Documentation/Splunk/6.5.2/Knowledge/Automatickey-valuefieldextractionsatsearch-time&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2017 22:47:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-transforms-conf-xml-field-extraction/m-p/261747#M78576</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-01-26T22:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my transforms.conf xml field extraction?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-transforms-conf-xml-field-extraction/m-p/261748#M78577</link>
      <description>&lt;P&gt;It works  Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2017 23:00:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-transforms-conf-xml-field-extraction/m-p/261748#M78577</guid>
      <dc:creator>packet_hunter</dc:creator>
      <dc:date>2017-01-26T23:00:11Z</dc:date>
    </item>
  </channel>
</rss>

