<?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: Is it possible to use max_match inside a datamodel rex definition? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-use-max-match-inside-a-datamodel-rex/m-p/370441#M169828</link>
    <description>&lt;P&gt;Without trying - the datamodels are saved as a file, maybe you can try to manually manipulate/add that setting there? &lt;/P&gt;</description>
    <pubDate>Sun, 29 Apr 2018 13:36:48 GMT</pubDate>
    <dc:creator>xpac</dc:creator>
    <dc:date>2018-04-29T13:36:48Z</dc:date>
    <item>
      <title>Is it possible to use max_match inside a datamodel rex definition?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-use-max-match-inside-a-datamodel-rex/m-p/370440#M169827</link>
      <description>&lt;P&gt;In the definition of a datamodel, I would like to use a regular expression with argument max_match=10 or max_match=0. In the datamodel editor this doesn't seem to be possible.&lt;/P&gt;

&lt;P&gt;Any thoughts?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 19:18:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-use-max-match-inside-a-datamodel-rex/m-p/370440#M169827</guid>
      <dc:creator>tonniea</dc:creator>
      <dc:date>2020-09-29T19:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use max_match inside a datamodel rex definition?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-use-max-match-inside-a-datamodel-rex/m-p/370441#M169828</link>
      <description>&lt;P&gt;Without trying - the datamodels are saved as a file, maybe you can try to manually manipulate/add that setting there? &lt;/P&gt;</description>
      <pubDate>Sun, 29 Apr 2018 13:36:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-use-max-match-inside-a-datamodel-rex/m-p/370441#M169828</guid>
      <dc:creator>xpac</dc:creator>
      <dc:date>2018-04-29T13:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use max_match inside a datamodel rex definition?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-use-max-match-inside-a-datamodel-rex/m-p/370442#M169829</link>
      <description>&lt;P&gt;Thanks for the hint. In the JSON export I found a multivalue option that I'm going to try. Too bad this isn't accessible via the editor.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2018 06:10:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-use-max-match-inside-a-datamodel-rex/m-p/370442#M169829</guid>
      <dc:creator>tonniea</dc:creator>
      <dc:date>2018-04-30T06:10:39Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use max_match inside a datamodel rex definition?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-use-max-match-inside-a-datamodel-rex/m-p/370443#M169830</link>
      <description>&lt;P&gt;Good to know. Now that you have the details at hand, you could post an answer to your own question so others Googling for it can profit of your experience &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2018 07:01:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-use-max-match-inside-a-datamodel-rex/m-p/370443#M169830</guid>
      <dc:creator>xpac</dc:creator>
      <dc:date>2018-04-30T07:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use max_match inside a datamodel rex definition?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-use-max-match-inside-a-datamodel-rex/m-p/370444#M169831</link>
      <description>&lt;P&gt;Yep, sure...&lt;/P&gt;

&lt;P&gt;In the field definition of the datamodel for your rex field you find this:&lt;/P&gt;

&lt;P&gt;"calculationType":"Rex","expression":"(?[^&amp;lt;]&lt;EM&gt;?)&amp;lt;"},{"outputFields":[{"fieldName":"cpu_load","owner":"cpu2","type":"string","fieldSearch":"","required":false,&lt;/EM&gt;&lt;EM&gt;"multivalue":false&lt;/EM&gt;*,"hidden":false...etc&lt;/P&gt;

&lt;P&gt;If you change the "multivalue" attribute to true, import the datamodel and restart Splunk this appears to be working as intended.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2018 07:09:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-use-max-match-inside-a-datamodel-rex/m-p/370444#M169831</guid>
      <dc:creator>tonniea</dc:creator>
      <dc:date>2018-04-30T07:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use max_match inside a datamodel rex definition?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-use-max-match-inside-a-datamodel-rex/m-p/370445#M169832</link>
      <description>&lt;P&gt;Reposting the comment of @tonniea so it doesn't get lost &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;In the field definition of the datamodel for your rex field you find this:

"calculationType":"Rex","expression":"(?[^&amp;lt;]?)&amp;lt;"},{"outputFields":[{"fieldName":"cpu_load","owner":"cpu2","type":"string","fieldSearch":"","required":false,"multivalue":false*,"hidden":false...etc

If you change the "multivalue" attribute to true, import the datamodel and restart Splunk this appears to be working as intended.
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 30 Apr 2018 08:04:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-use-max-match-inside-a-datamodel-rex/m-p/370445#M169832</guid>
      <dc:creator>xpac</dc:creator>
      <dc:date>2018-04-30T08:04:10Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use max_match inside a datamodel rex definition?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-use-max-match-inside-a-datamodel-rex/m-p/370446#M169833</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;i have tried this approach, changed multivalve to true and restarted Splunk. Sadly it didn't work in 7.2.6.&lt;BR /&gt;
Is there something different? How else can I put into data model regular expression fields with max_match=0?&lt;/P&gt;

&lt;P&gt;Best regards&lt;BR /&gt;
Tomasz&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2019 18:44:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-use-max-match-inside-a-datamodel-rex/m-p/370446#M169833</guid>
      <dc:creator>tomaszwrona</dc:creator>
      <dc:date>2019-05-17T18:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use max_match inside a datamodel rex definition?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-use-max-match-inside-a-datamodel-rex/m-p/370447#M169834</link>
      <description>&lt;P&gt;did u get this to work?&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2020 14:24:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-use-max-match-inside-a-datamodel-rex/m-p/370447#M169834</guid>
      <dc:creator>monteiroh</dc:creator>
      <dc:date>2020-01-20T14:24:09Z</dc:date>
    </item>
  </channel>
</rss>

