<?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 save my rex statement as a field extraction? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-save-my-rex-statement-as-a-field-extraction/m-p/200477#M58117</link>
    <description>&lt;P&gt;I have an extraction that retrieves all the &lt;STRONG&gt;error_reason&lt;/STRONG&gt;'s in a long string that are separated by a substring &lt;STRONG&gt;err_sep&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Example long_error_string: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"Blah blah blah error_reason=divided by zero err_sep error_reason=#num is bad$$$ err_sep error_reason=Infinite loop! err_sep"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This regex works perfectly and creates multiple error_reasons. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex field=long_error_string "error_reason=(?P&amp;lt;error_reason&amp;gt;.*?)err_sep" max_match=9999
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I was wondering if I can replicate the same behavior using Splunk's field extraction. Without the max_match, it only gets one result and I want to get them all. I am guessing I am missing some simple setting. &lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 08:47:23 GMT</pubDate>
    <dc:creator>ifeldshteyn</dc:creator>
    <dc:date>2020-09-29T08:47:23Z</dc:date>
    <item>
      <title>How do I save my rex statement as a field extraction?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-save-my-rex-statement-as-a-field-extraction/m-p/200477#M58117</link>
      <description>&lt;P&gt;I have an extraction that retrieves all the &lt;STRONG&gt;error_reason&lt;/STRONG&gt;'s in a long string that are separated by a substring &lt;STRONG&gt;err_sep&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Example long_error_string: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"Blah blah blah error_reason=divided by zero err_sep error_reason=#num is bad$$$ err_sep error_reason=Infinite loop! err_sep"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This regex works perfectly and creates multiple error_reasons. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex field=long_error_string "error_reason=(?P&amp;lt;error_reason&amp;gt;.*?)err_sep" max_match=9999
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I was wondering if I can replicate the same behavior using Splunk's field extraction. Without the max_match, it only gets one result and I want to get them all. I am guessing I am missing some simple setting. &lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:47:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-save-my-rex-statement-as-a-field-extraction/m-p/200477#M58117</guid>
      <dc:creator>ifeldshteyn</dc:creator>
      <dc:date>2020-09-29T08:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: How do I save my rex statement as a field extraction?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-save-my-rex-statement-as-a-field-extraction/m-p/200478#M58118</link>
      <description>&lt;P&gt;If you're looking for saving this field extraction, see below link &lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1/Knowledge/Managefieldtransforms#Review_and_update_search-time_field_transforms_in_Splunk_Web"&gt;http://docs.splunk.com/Documentation/Splunk/6.1/Knowledge/Managefieldtransforms#Review_and_update_search-time_field_transforms_in_Splunk_Web&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2016 23:26:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-save-my-rex-statement-as-a-field-extraction/m-p/200478#M58118</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-02-10T23:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: How do I save my rex statement as a field extraction?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-save-my-rex-statement-as-a-field-extraction/m-p/200479#M58119</link>
      <description>&lt;P&gt;Oh I see that there is a "create multivalue button" in transforms. I'll try that out - thanks! &lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2016 01:05:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-save-my-rex-statement-as-a-field-extraction/m-p/200479#M58119</guid>
      <dc:creator>ifeldshteyn</dc:creator>
      <dc:date>2016-02-11T01:05:01Z</dc:date>
    </item>
  </channel>
</rss>

