<?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 do I write the regex to extract all instances of this field from unstructured data? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-write-the-regex-to-extract-all-instances-of-this-field/m-p/287410#M87001</link>
    <description>&lt;P&gt;In the transforms, you need to use &lt;CODE&gt;MV_ADD=true&lt;/CODE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;MV_ADD = [true|false]
* NOTE: This attribute is only valid for search-time field extractions.
* Optional. Controls what the extractor does when it finds a field which already exists.
* If set to true, the extractor makes the field a multivalued field and appends the 
* newly found value, otherwise the newly found value is discarded.
* Defaults to false
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 06 Jun 2016 20:15:32 GMT</pubDate>
    <dc:creator>sundareshr</dc:creator>
    <dc:date>2016-06-06T20:15:32Z</dc:date>
    <item>
      <title>How do I write the regex to extract all instances of this field from unstructured data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-write-the-regex-to-extract-all-instances-of-this-field/m-p/287405#M86996</link>
      <description>&lt;P&gt;This is the first time I am using IFE and having some difficulty extracting data.  I am not good at regex, so I used the Interactive Field Extractor to extract the field. &lt;/P&gt;

&lt;P&gt;I have the string &lt;CODE&gt;trans(1234)&lt;/CODE&gt; in the records. I am creating a field &lt;STRONG&gt;Trans&lt;/STRONG&gt; - this field is storing the number inside the brackets as the value. In this case, Value is 1234. I have multiple such trans(####) vales in one entry. Splunk is identifying just the first occurring such trans(value) in each record. Is there a way to identify all of the different trans() in each event as a separate entry? &lt;/P&gt;

&lt;P&gt;Also is there a good documentation with examples on how to write rex for beginners? &lt;/P&gt;</description>
      <pubDate>Mon, 06 Jun 2016 18:02:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-write-the-regex-to-extract-all-instances-of-this-field/m-p/287405#M86996</guid>
      <dc:creator>sushmitha_mj</dc:creator>
      <dc:date>2016-06-06T18:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: How do I write the regex to extract all instances of this field from unstructured data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-write-the-regex-to-extract-all-instances-of-this-field/m-p/287406#M86997</link>
      <description>&lt;P&gt;IFX does not do well with regex and particularly with multi-value fields. Try this in your search instead&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;.... | rex max_match=0 "trans\((?&amp;lt;trans&amp;gt;\d+)\)" | table trans
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 06 Jun 2016 18:11:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-write-the-regex-to-extract-all-instances-of-this-field/m-p/287406#M86997</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-06-06T18:11:15Z</dc:date>
    </item>
    <item>
      <title>Re: How do I write the regex to extract all instances of this field from unstructured data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-write-the-regex-to-extract-all-instances-of-this-field/m-p/287407#M86998</link>
      <description>&lt;P&gt;Do you suggest I use this expression in the "write your own regular expression section inside the Extract fields? &lt;/P&gt;

&lt;P&gt;When I write it as a query it works but inside the extract fields regex it does not work.... &lt;/P&gt;</description>
      <pubDate>Mon, 06 Jun 2016 19:03:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-write-the-regex-to-extract-all-instances-of-this-field/m-p/287407#M86998</guid>
      <dc:creator>sushmitha_mj</dc:creator>
      <dc:date>2016-06-06T19:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: How do I write the regex to extract all instances of this field from unstructured data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-write-the-regex-to-extract-all-instances-of-this-field/m-p/287408#M86999</link>
      <description>&lt;P&gt;you cannot use max_match in IFX. However, you update your conf files to extract this field at search time. Here's some good docs on that &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.4.1/Knowledge/Createandmaintainsearch-timefieldextractionsthroughconfigurationfiles#Steps_for_defining_custom_search-time_field_extractions_that_reference_field_transforms" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/6.4.1/Knowledge/Createandmaintainsearch-timefieldextractionsthroughconfigurationfiles#Steps_for_defining_custom_search-time_field_extractions_that_reference_field_transforms&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 09:53:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-write-the-regex-to-extract-all-instances-of-this-field/m-p/287408#M86999</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2020-09-29T09:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: How do I write the regex to extract all instances of this field from unstructured data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-write-the-regex-to-extract-all-instances-of-this-field/m-p/287409#M87000</link>
      <description>&lt;P&gt;If I put this on the regex part : trans((?\d+)) It identifies the first trans id in each event. How can I extract all the trans as a separate field? I am unable to specify max_match =0. &lt;/P&gt;</description>
      <pubDate>Mon, 06 Jun 2016 20:03:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-write-the-regex-to-extract-all-instances-of-this-field/m-p/287409#M87000</guid>
      <dc:creator>sushmitha_mj</dc:creator>
      <dc:date>2016-06-06T20:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: How do I write the regex to extract all instances of this field from unstructured data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-write-the-regex-to-extract-all-instances-of-this-field/m-p/287410#M87001</link>
      <description>&lt;P&gt;In the transforms, you need to use &lt;CODE&gt;MV_ADD=true&lt;/CODE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;MV_ADD = [true|false]
* NOTE: This attribute is only valid for search-time field extractions.
* Optional. Controls what the extractor does when it finds a field which already exists.
* If set to true, the extractor makes the field a multivalued field and appends the 
* newly found value, otherwise the newly found value is discarded.
* Defaults to false
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 06 Jun 2016 20:15:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-write-the-regex-to-extract-all-instances-of-this-field/m-p/287410#M87001</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-06-06T20:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: How do I write the regex to extract all instances of this field from unstructured data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-write-the-regex-to-extract-all-instances-of-this-field/m-p/287411#M87002</link>
      <description>&lt;P&gt;Looks like there is no way I can extract multiple values in same row using IFX then. Thanks  &lt;/P&gt;</description>
      <pubDate>Mon, 06 Jun 2016 20:18:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-write-the-regex-to-extract-all-instances-of-this-field/m-p/287411#M87002</guid>
      <dc:creator>sushmitha_mj</dc:creator>
      <dc:date>2016-06-06T20:18:24Z</dc:date>
    </item>
  </channel>
</rss>

