<?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: where can i set max_match option ? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/where-can-i-set-max-match-option/m-p/29301#M177922</link>
    <description>&lt;P&gt;oh..in that case can you transform my rex above to transforms.conf pls..&lt;/P&gt;</description>
    <pubDate>Tue, 12 Feb 2013 18:52:06 GMT</pubDate>
    <dc:creator>rakesh_498115</dc:creator>
    <dc:date>2013-02-12T18:52:06Z</dc:date>
    <item>
      <title>where can i set max_match option ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/where-can-i-set-max-match-option/m-p/29299#M177920</link>
      <description>&lt;P&gt;Hi ..&lt;/P&gt;

&lt;P&gt;For all the regular expression fields created using rex command , there is option called max_match to match all the occurrences of the rex field. Can i know where we will define this option ..to reflect to all the rex fields..&lt;/P&gt;

&lt;P&gt;In my props.conf..&lt;BR /&gt;
i have something like this&lt;/P&gt;

&lt;P&gt;EXTRACT-myapps:&lt;PRODUCT&gt;(?&lt;PRODUCTNAME&gt;[^&amp;lt;]*)&amp;lt;&lt;/PRODUCTNAME&gt;&lt;/PRODUCT&gt;&lt;/P&gt;

&lt;P&gt;So for this field ProductName i want to increase the max_match count or i need to keep max_match = 0 to match all the occurences possible....&lt;BR /&gt;
Query used with max_match :&lt;/P&gt;

&lt;P&gt;sourcetype="myapps" | rex max_match=0 "&lt;PRODUCT&gt;(?&lt;PRODUCTNAME&gt;[^&amp;lt;]*)&amp;lt;" | top ProductName&lt;/PRODUCTNAME&gt;&lt;/PRODUCT&gt;&lt;/P&gt;

&lt;P&gt;If i give it query its working but i need to know whether i can give in my conf files..please help..&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:18:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/where-can-i-set-max-match-option/m-p/29299#M177920</guid>
      <dc:creator>rakesh_498115</dc:creator>
      <dc:date>2020-09-28T13:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: where can i set max_match option ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/where-can-i-set-max-match-option/m-p/29300#M177921</link>
      <description>&lt;P&gt;You can't.&lt;/P&gt;

&lt;P&gt;You need to move the extraction to transforms.conf, and specify MV_ADD=true&lt;/P&gt;

&lt;P&gt;I dont think you can specify a max_matches, it'll just find them all.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Knowledge/Createandmaintainsearch-timefieldextractionsthroughconfigurationfiles"&gt;docs&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2013 18:26:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/where-can-i-set-max-match-option/m-p/29300#M177921</guid>
      <dc:creator>jonuwz</dc:creator>
      <dc:date>2013-02-12T18:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: where can i set max_match option ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/where-can-i-set-max-match-option/m-p/29301#M177922</link>
      <description>&lt;P&gt;oh..in that case can you transform my rex above to transforms.conf pls..&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2013 18:52:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/where-can-i-set-max-match-option/m-p/29301#M177922</guid>
      <dc:creator>rakesh_498115</dc:creator>
      <dc:date>2013-02-12T18:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: where can i set max_match option ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/where-can-i-set-max-match-option/m-p/29302#M177923</link>
      <description>&lt;P&gt;You try it, and if you get stuck, post what you tried, and why it didn't work.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2013 19:06:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/where-can-i-set-max-match-option/m-p/29302#M177923</guid>
      <dc:creator>jonuwz</dc:creator>
      <dc:date>2013-02-12T19:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: where can i set max_match option ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/where-can-i-set-max-match-option/m-p/29303#M177924</link>
      <description>&lt;P&gt;Thanks jonuwz..I finally managed to get it...:)&lt;/P&gt;</description>
      <pubDate>Fri, 15 Feb 2013 18:55:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/where-can-i-set-max-match-option/m-p/29303#M177924</guid>
      <dc:creator>rakesh_498115</dc:creator>
      <dc:date>2013-02-15T18:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: where can i set max_match option ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/where-can-i-set-max-match-option/m-p/29304#M177925</link>
      <description>&lt;P&gt;good man. the world of transform opens up a world of possibilities&lt;/P&gt;</description>
      <pubDate>Fri, 15 Feb 2013 19:08:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/where-can-i-set-max-match-option/m-p/29304#M177925</guid>
      <dc:creator>jonuwz</dc:creator>
      <dc:date>2013-02-15T19:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: where can i set max_match option ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/where-can-i-set-max-match-option/m-p/29305#M177926</link>
      <description>&lt;P&gt;yeah its really.. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Feb 2013 20:34:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/where-can-i-set-max-match-option/m-p/29305#M177926</guid>
      <dc:creator>rakesh_498115</dc:creator>
      <dc:date>2013-02-15T20:34:26Z</dc:date>
    </item>
  </channel>
</rss>

