<?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 use regex and format strings for an XML sample without using KV_MODE=XML? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-regex-and-format-strings-for-an-XML-sample-without/m-p/398812#M115651</link>
    <description>&lt;P&gt;[REPORT-dreamcrusher_extractions]&lt;BR /&gt;
REGEX =  &amp;lt;(\w+)&amp;gt;([^&amp;lt;]+)&lt;BR /&gt;
FORMAT = $1::$2&lt;/P&gt;</description>
    <pubDate>Sat, 22 Feb 2020 21:25:58 GMT</pubDate>
    <dc:creator>santiagoaloi</dc:creator>
    <dc:date>2020-02-22T21:25:58Z</dc:date>
    <item>
      <title>How to use regex and format strings for an XML sample without using KV_MODE=XML?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-regex-and-format-strings-for-an-XML-sample-without/m-p/398798#M115637</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I want to use REGEX and FORMAT strings for an xml sample as given without using KV_MODE=xml&lt;BR /&gt;
So i am trying to use different regex to get hold of parsing fields but failing &lt;BR /&gt;
Please find the sample log for your reference and help&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;   &amp;lt;Interceptor&amp;gt;
            &amp;lt;AttackCoords&amp;gt;-80.03107887624853,25.351308629611&amp;lt;/AttackCoords&amp;gt;
            &amp;lt;Outcome&amp;gt;Interdiction&amp;lt;/Outcome&amp;gt;
            &amp;lt;Infiltrators&amp;gt;6&amp;lt;/Infiltrators&amp;gt;
            &amp;lt;Enforcer&amp;gt;Assured&amp;lt;/Enforcer&amp;gt;
            &amp;lt;ActionDate&amp;gt;2013-11-03&amp;lt;/ActionDate&amp;gt;
            &amp;lt;ActionTime&amp;gt;04:40:00&amp;lt;/ActionTime&amp;gt;
            &amp;lt;RecordNotes&amp;gt;Infiltrators: 
                Savanna&amp;amp;#32;Carrera,
                Gregoria&amp;amp;#32;Far&amp;amp;#237;as,
                Julina&amp;amp;#32;Abeyta,
                Mariquita&amp;amp;#32;Alonso,
                Urbano&amp;amp;#32;Brise&amp;amp;#241;o,
                Victoro&amp;amp;#32;Montano     &amp;lt;/RecordNotes&amp;gt;
            &amp;lt;NumEscaped&amp;gt;3&amp;lt;/NumEscaped&amp;gt;
            &amp;lt;LaunchCoords&amp;gt;&amp;lt;/LaunchCoords&amp;gt;
            &amp;lt;AttackVessel&amp;gt;Raft&amp;lt;/AttackVessel&amp;gt;
        &amp;lt;/Interceptor&amp;gt;
        &amp;lt;Interceptor&amp;gt;
            &amp;lt;AttackCoords&amp;gt;-80.33045250710296,24.93574264936793&amp;lt;/AttackCoords&amp;gt;
            &amp;lt;Outcome&amp;gt;Interdiction&amp;lt;/Outcome&amp;gt;
            &amp;lt;Infiltrators&amp;gt;9&amp;lt;/Infiltrators&amp;gt;
            &amp;lt;Enforcer&amp;gt;Pompano&amp;lt;/Enforcer&amp;gt;
            &amp;lt;ActionDate&amp;gt;2013-05-04&amp;lt;/ActionDate&amp;gt;
            &amp;lt;ActionTime&amp;gt;04:22:00&amp;lt;/ActionTime&amp;gt;
            &amp;lt;RecordNotes&amp;gt;&amp;lt;/RecordNotes&amp;gt;
            &amp;lt;NumEscaped&amp;gt;0&amp;lt;/NumEscaped&amp;gt;
            &amp;lt;LaunchCoords&amp;gt;-80.30497342463124,24.07890526980327&amp;lt;/LaunchCoords&amp;gt;
            &amp;lt;AttackVessel&amp;gt;Rustic&amp;lt;/AttackVessel&amp;gt;
        &amp;lt;/Interceptor&amp;gt;
        &amp;lt;Interceptor&amp;gt;
            &amp;lt;AttackCoords&amp;gt;-79.94720757796837,24.82172611548247&amp;lt;/AttackCoords&amp;gt;
            &amp;lt;Outcome&amp;gt;Interdiction&amp;lt;/Outcome&amp;gt;
            &amp;lt;Infiltrators&amp;gt;12&amp;lt;/Infiltrators&amp;gt;
            &amp;lt;Enforcer&amp;gt;Barracuda&amp;lt;/Enforcer&amp;gt;
            &amp;lt;ActionDate&amp;gt;2013-01-01&amp;lt;/ActionDate&amp;gt;
            &amp;lt;ActionTime&amp;gt;05:22:00&amp;lt;/ActionTime&amp;gt;
            &amp;lt;RecordNotes&amp;gt;Infiltrators: 
                Cristian&amp;amp;#32;Caballero,
                Vicenta&amp;amp;#32;Olivares,
                Leonides&amp;amp;#32;Cintr&amp;amp;#243;n,
                Ascencion&amp;amp;#32;Betancourt,
                Alanzo&amp;amp;#32;Arenas,
                Primeiro&amp;amp;#32;S&amp;amp;#225;nchez,
                Serena&amp;amp;#32;Monroy,
                Madina&amp;amp;#32;Mojica,
                Consolacion&amp;amp;#32;Cordero,
                Faqueza&amp;amp;#32;Serrano,
                Grazia&amp;amp;#32;Quesada,
                Ivette&amp;amp;#32;Partida      &amp;lt;/RecordNotes&amp;gt;
            &amp;lt;NumEscaped&amp;gt;0&amp;lt;/NumEscaped&amp;gt;
            &amp;lt;LaunchCoords&amp;gt;&amp;lt;/LaunchCoords&amp;gt;
            &amp;lt;AttackVessel&amp;gt;Rustic&amp;lt;/AttackVessel&amp;gt;
        &amp;lt;/Interceptor&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Props.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[dreamcrusher]
LINE_BREAKER = (\&amp;lt;Interceptor\&amp;gt;)
TIME_PREFIX = &amp;lt;ActionDate&amp;gt;
TIME_FORMAT = %Y-%m-%d&amp;lt;\/ActionDate&amp;gt;[\r\n]\t+&amp;lt;ActionTime&amp;gt;%H:%M:%S
SHOULD_LINEMERGE = false
MAX_DAYS_AGO = 2500
SEDCMD-aremoveheader = s/\&amp;lt;\?xml.*\s*\&amp;lt;dataroot\&amp;gt;\s*//g
SEDCMD-bremovefooter = s/\&amp;lt;\/dataroot\&amp;gt;//g
REPORT-f = dream_attack
KV_MODE = none
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;transforms.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[dream_attack]
REGEX = (?m)^[^&amp;lt;]+.(.*?)\&amp;gt;([\S\s]*?)\&amp;lt;(?=[^\s])
FORMAT = $1::$2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Please suggest to me why am I failing?&lt;BR /&gt;
Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 10 Aug 2018 09:32:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-regex-and-format-strings-for-an-XML-sample-without/m-p/398798#M115637</guid>
      <dc:creator>gaurav_ramteke</dc:creator>
      <dc:date>2018-08-10T09:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to use regex and format strings for an XML sample without using KV_MODE=XML?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-regex-and-format-strings-for-an-XML-sample-without/m-p/398799#M115638</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;&amp;lt;Interceptor&amp;gt;
        &amp;lt;AttackCoords&amp;gt;-80.03107887624853,25.351308629611&amp;lt;/AttackCoords&amp;gt;
        &amp;lt;Outcome&amp;gt;Interdiction&amp;lt;/Outcome&amp;gt;
        &amp;lt;Infiltrators&amp;gt;6&amp;lt;/Infiltrators&amp;gt;
        &amp;lt;Enforcer&amp;gt;Assured&amp;lt;/Enforcer&amp;gt;
        &amp;lt;ActionDate&amp;gt;2013-11-03&amp;lt;/ActionDate&amp;gt;
        &amp;lt;ActionTime&amp;gt;04:40:00&amp;lt;/ActionTime&amp;gt;
        &amp;lt;RecordNotes&amp;gt;Infiltrators: 
            Savanna&amp;amp;#32;Carrera,
            Gregoria&amp;amp;#32;Far&amp;amp;#237;as,
            Julina&amp;amp;#32;Abeyta,
            Mariquita&amp;amp;#32;Alonso,
            Urbano&amp;amp;#32;Brise&amp;amp;#241;o,
            Victoro&amp;amp;#32;Montano     &amp;lt;/RecordNotes&amp;gt;
        &amp;lt;NumEscaped&amp;gt;3&amp;lt;/NumEscaped&amp;gt;
        &amp;lt;LaunchCoords&amp;gt;&amp;lt;/LaunchCoords&amp;gt;
        &amp;lt;AttackVessel&amp;gt;Raft&amp;lt;/AttackVessel&amp;gt;
    &amp;lt;/Interceptor&amp;gt;
    &amp;lt;Interceptor&amp;gt;
        &amp;lt;AttackCoords&amp;gt;-80.33045250710296,24.93574264936793&amp;lt;/AttackCoords&amp;gt;
        &amp;lt;Outcome&amp;gt;Interdiction&amp;lt;/Outcome&amp;gt;
        &amp;lt;Infiltrators&amp;gt;9&amp;lt;/Infiltrators&amp;gt;
        &amp;lt;Enforcer&amp;gt;Pompano&amp;lt;/Enforcer&amp;gt;
        &amp;lt;ActionDate&amp;gt;2013-05-04&amp;lt;/ActionDate&amp;gt;
        &amp;lt;ActionTime&amp;gt;04:22:00&amp;lt;/ActionTime&amp;gt;
        &amp;lt;RecordNotes&amp;gt;&amp;lt;/RecordNotes&amp;gt;
        &amp;lt;NumEscaped&amp;gt;0&amp;lt;/NumEscaped&amp;gt;
        &amp;lt;LaunchCoords&amp;gt;-80.30497342463124,24.07890526980327&amp;lt;/LaunchCoords&amp;gt;
        &amp;lt;AttackVessel&amp;gt;Rustic&amp;lt;/AttackVessel&amp;gt;
    &amp;lt;/Interceptor&amp;gt;
    &amp;lt;Interceptor&amp;gt;
        &amp;lt;AttackCoords&amp;gt;-79.94720757796837,24.82172611548247&amp;lt;/AttackCoords&amp;gt;
        &amp;lt;Outcome&amp;gt;Interdiction&amp;lt;/Outcome&amp;gt;
        &amp;lt;Infiltrators&amp;gt;12&amp;lt;/Infiltrators&amp;gt;
        &amp;lt;Enforcer&amp;gt;Barracuda&amp;lt;/Enforcer&amp;gt;
        &amp;lt;ActionDate&amp;gt;2013-01-01&amp;lt;/ActionDate&amp;gt;
        &amp;lt;ActionTime&amp;gt;05:22:00&amp;lt;/ActionTime&amp;gt;
        &amp;lt;RecordNotes&amp;gt;Infiltrators: 
            Cristian&amp;amp;#32;Caballero,
            Vicenta&amp;amp;#32;Olivares,
            Leonides&amp;amp;#32;Cintr&amp;amp;#243;n,
            Ascencion&amp;amp;#32;Betancourt,
            Alanzo&amp;amp;#32;Arenas,
            Primeiro&amp;amp;#32;S&amp;amp;#225;nchez,
            Serena&amp;amp;#32;Monroy,
            Madina&amp;amp;#32;Mojica,
            Consolacion&amp;amp;#32;Cordero,
            Faqueza&amp;amp;#32;Serrano,
            Grazia&amp;amp;#32;Quesada,
            Ivette&amp;amp;#32;Partida      &amp;lt;/RecordNotes&amp;gt;
        &amp;lt;NumEscaped&amp;gt;0&amp;lt;/NumEscaped&amp;gt;
        &amp;lt;LaunchCoords&amp;gt;&amp;lt;/LaunchCoords&amp;gt;
        &amp;lt;AttackVessel&amp;gt;Rustic&amp;lt;/AttackVessel&amp;gt;
    &amp;lt;/Interceptor&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 10 Aug 2018 09:36:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-regex-and-format-strings-for-an-XML-sample-without/m-p/398799#M115638</guid>
      <dc:creator>gaurav_ramteke</dc:creator>
      <dc:date>2018-08-10T09:36:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to use regex and format strings for an XML sample without using KV_MODE=XML?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-regex-and-format-strings-for-an-XML-sample-without/m-p/398800#M115639</link>
      <description>&lt;P&gt;what is failing? extracting all the fields? extractiing the fields with multiple values (e.g.RecordNotes)?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Aug 2018 09:46:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-regex-and-format-strings-for-an-XML-sample-without/m-p/398800#M115639</guid>
      <dc:creator>diogofgm</dc:creator>
      <dc:date>2018-08-10T09:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to use regex and format strings for an XML sample without using KV_MODE=XML?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-regex-and-format-strings-for-an-XML-sample-without/m-p/398801#M115640</link>
      <description>&lt;P&gt;extracting all the fields using multivalues&lt;/P&gt;</description>
      <pubDate>Fri, 10 Aug 2018 09:51:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-regex-and-format-strings-for-an-XML-sample-without/m-p/398801#M115640</guid>
      <dc:creator>gaurav_ramteke</dc:creator>
      <dc:date>2018-08-10T09:51:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to use regex and format strings for an XML sample without using KV_MODE=XML?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-regex-and-format-strings-for-an-XML-sample-without/m-p/398802#M115641</link>
      <description>&lt;P&gt;Use this regex instead&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;REGEX = ^\s*\&amp;lt;([^\&amp;gt;]*)\&amp;gt;([^\&amp;lt;\/]*)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 10 Aug 2018 09:53:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-regex-and-format-strings-for-an-XML-sample-without/m-p/398802#M115641</guid>
      <dc:creator>diogofgm</dc:creator>
      <dc:date>2018-08-10T09:53:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to use regex and format strings for an XML sample without using KV_MODE=XML?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-regex-and-format-strings-for-an-XML-sample-without/m-p/398803#M115642</link>
      <description>&lt;P&gt;Thanks, I have tried and no fields were extracted&lt;BR /&gt;
For you to know i am using splunk enterprise on windows 10 &lt;/P&gt;</description>
      <pubDate>Fri, 10 Aug 2018 10:12:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-regex-and-format-strings-for-an-XML-sample-without/m-p/398803#M115642</guid>
      <dc:creator>gaurav_ramteke</dc:creator>
      <dc:date>2018-08-10T10:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to use regex and format strings for an XML sample without using KV_MODE=XML?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-regex-and-format-strings-for-an-XML-sample-without/m-p/398804#M115643</link>
      <description>&lt;P&gt;can you try to use it in search?&lt;BR /&gt;
your index|rex "^\s*&amp;lt;([^&amp;gt;]&lt;EM&gt;)&amp;gt;([^&amp;lt;\/]&lt;/EM&gt;)"&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:50:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-regex-and-format-strings-for-an-XML-sample-without/m-p/398804#M115643</guid>
      <dc:creator>diogofgm</dc:creator>
      <dc:date>2020-09-29T20:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to use regex and format strings for an XML sample without using KV_MODE=XML?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-regex-and-format-strings-for-an-XML-sample-without/m-p/398805#M115644</link>
      <description>&lt;P&gt;index=* sourcetype="dream" | rex field=_raw "^\s*&amp;lt;([^&amp;gt;]&lt;EM&gt;)&amp;gt;([^&amp;lt;\/]&lt;/EM&gt;)" &lt;/P&gt;

&lt;P&gt;Getting error like as given below in the search &lt;/P&gt;

&lt;P&gt;Error in 'rex' command: The regex '^\s*&amp;lt;([^&amp;gt;]&lt;EM&gt;)&amp;gt;([^&amp;lt;\/]&lt;/EM&gt;)' does not extract anything. It should specify at least one named group. Format: (?...).&lt;BR /&gt;
The search job has failed due to an error. You may be able view the job in the Job Inspector.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:50:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-regex-and-format-strings-for-an-XML-sample-without/m-p/398805#M115644</guid>
      <dc:creator>gaurav_ramteke</dc:creator>
      <dc:date>2020-09-29T20:50:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to use regex and format strings for an XML sample without using KV_MODE=XML?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-regex-and-format-strings-for-an-XML-sample-without/m-p/398806#M115645</link>
      <description>&lt;P&gt;Hello there,&lt;/P&gt;

&lt;P&gt;Try adding &lt;CODE&gt;..| spath&lt;/CODE&gt; at the end of your search. &lt;/P&gt;</description>
      <pubDate>Fri, 10 Aug 2018 12:11:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-regex-and-format-strings-for-an-XML-sample-without/m-p/398806#M115645</guid>
      <dc:creator>sudosplunk</dc:creator>
      <dc:date>2018-08-10T12:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to use regex and format strings for an XML sample without using KV_MODE=XML?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-regex-and-format-strings-for-an-XML-sample-without/m-p/398807#M115646</link>
      <description>&lt;P&gt;hi nittala_surya,&lt;/P&gt;

&lt;P&gt;Same error please &lt;BR /&gt;
Search string used &lt;BR /&gt;
index=* sourcetype="dreamcrusher" | rex field=_raw "^\s*&amp;lt;([^&amp;gt;]&lt;EM&gt;)&amp;gt;([^&amp;lt;\/]&lt;/EM&gt;)" | spath &lt;/P&gt;

&lt;P&gt;Error string&lt;BR /&gt;
Error in 'rex' command: The regex '^\s*&amp;lt;([^&amp;gt;]&lt;EM&gt;)&amp;gt;([^&amp;lt;\/]&lt;/EM&gt;)' does not extract anything. It should specify at least one named group. Format: (?...).&lt;BR /&gt;
The search job has failed due to an error. You may be able view the job in the Job Inspector.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:50:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-regex-and-format-strings-for-an-XML-sample-without/m-p/398807#M115646</guid>
      <dc:creator>gaurav_ramteke</dc:creator>
      <dc:date>2020-09-29T20:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to use regex and format strings for an XML sample without using KV_MODE=XML?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-regex-and-format-strings-for-an-XML-sample-without/m-p/398808#M115647</link>
      <description>&lt;P&gt;Get rid of rex. &lt;CODE&gt;index= sourcetype="dreamcrusher" | spath&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;You can find more info about spath &lt;A href="http://docs.splunk.com/Documentation/Splunk/7.1.2/SearchReference/Spath"&gt;here&lt;/A&gt;.&lt;/P&gt;

&lt;P&gt;On a side note: You regex doesn't have name capturing group. Hence the error. &lt;/P&gt;</description>
      <pubDate>Fri, 10 Aug 2018 12:27:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-regex-and-format-strings-for-an-XML-sample-without/m-p/398808#M115647</guid>
      <dc:creator>sudosplunk</dc:creator>
      <dc:date>2018-08-10T12:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to use regex and format strings for an XML sample without using KV_MODE=XML?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-regex-and-format-strings-for-an-XML-sample-without/m-p/398809#M115648</link>
      <description>&lt;P&gt;Thanks nittala_surya,&lt;/P&gt;

&lt;P&gt;It worked &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;However, just for my knowledge is it mandatory to use "| spath" to extract the fields while we are using transformation - REGEX and FORMAT in configuration files? OR it should format the _raw events (parse)the data using props and transforms? please suggest&lt;/P&gt;</description>
      <pubDate>Fri, 10 Aug 2018 12:38:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-regex-and-format-strings-for-an-XML-sample-without/m-p/398809#M115648</guid>
      <dc:creator>gaurav_ramteke</dc:creator>
      <dc:date>2018-08-10T12:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to use regex and format strings for an XML sample without using KV_MODE=XML?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-regex-and-format-strings-for-an-XML-sample-without/m-p/398810#M115649</link>
      <description>&lt;P&gt;No. &lt;CODE&gt;spath&lt;/CODE&gt; works only for search-time field extractions. To use props and transforms, the settings in your configuration files should be adjusted a little.&lt;/P&gt;

&lt;P&gt;Give this a try: &lt;/P&gt;

&lt;P&gt;Props.conf: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[dreamcrusher]
## Optional: Your setting will discard &amp;lt;Interceptor&amp;gt; from your events. To keep &amp;lt;Interceptor&amp;gt;, use below
LINE_BREAKER = ([\r\n])\&amp;lt;Interceptor\&amp;gt;
## Escape angular brackets in TIME_PREFIX
TIME_PREFIX = \&amp;lt;ActionDate\&amp;gt;
## TIME_FORMAT doesn't honor regex switches, use,
TIME_FORMAT = %Y-%m-%d&amp;lt;/ActionDate&amp;gt;%n&amp;lt;ActionTime&amp;gt;%H:%M:%S
SHOULD_LINEMERGE = false
## Use this to improve efficiency while extracting timestamps
MAX_TIMESTAMP_LOOKAHEAD = 50
MAX_DAYS_AGO = 2500 
SEDCMD-aremoveheader = s/\&amp;lt;\?xml.*\s*\&amp;lt;dataroot\&amp;gt;\s*//g
SEDCMD-bremovefooter = s/\&amp;lt;\/dataroot\&amp;gt;//g
REPORT-f = dream_attack
KV_MODE = none
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Transforms.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[dream_attack]
REGEX = (?m)^[^&amp;lt;]+\&amp;lt;+(.*?)\&amp;gt;([\S\s]*?)\&amp;lt;(?=[^\s])
FORMAT = $1::$2
MV_ADD = true
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 10 Aug 2018 13:27:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-regex-and-format-strings-for-an-XML-sample-without/m-p/398810#M115649</guid>
      <dc:creator>sudosplunk</dc:creator>
      <dc:date>2018-08-10T13:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to use regex and format strings for an XML sample without using KV_MODE=XML?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-regex-and-format-strings-for-an-XML-sample-without/m-p/398811#M115650</link>
      <description>&lt;P&gt;Use this &lt;STRONG&gt;transforms.conf&lt;/STRONG&gt; instead&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[dream_attack]
REGEX = \&amp;gt;\s+\&amp;lt;([^\&amp;gt;]+)\&amp;gt;([^\&amp;lt;]+)\&amp;lt;
FORMAT = $1::$2
REPEAT_MATCH = true
WRITE_META = true
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 08 Oct 2019 05:19:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-regex-and-format-strings-for-an-XML-sample-without/m-p/398811#M115650</guid>
      <dc:creator>moon92</dc:creator>
      <dc:date>2019-10-08T05:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to use regex and format strings for an XML sample without using KV_MODE=XML?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-regex-and-format-strings-for-an-XML-sample-without/m-p/398812#M115651</link>
      <description>&lt;P&gt;[REPORT-dreamcrusher_extractions]&lt;BR /&gt;
REGEX =  &amp;lt;(\w+)&amp;gt;([^&amp;lt;]+)&lt;BR /&gt;
FORMAT = $1::$2&lt;/P&gt;</description>
      <pubDate>Sat, 22 Feb 2020 21:25:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-regex-and-format-strings-for-an-XML-sample-without/m-p/398812#M115651</guid>
      <dc:creator>santiagoaloi</dc:creator>
      <dc:date>2020-02-22T21:25:58Z</dc:date>
    </item>
  </channel>
</rss>

