<?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 optimize rex to avoid the error message: Error in 'rex' command: regex= has exceeded configured match_limit, consider raising the value in limits.conf in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-optimize-rex-to-avoid-the-error-message-Error-in-rex/m-p/473497#M133223</link>
    <description>&lt;P&gt;Hi harsmarvania57, I try to paste the xml data here, but I'm affraid, that special chars will be removed:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;subTest  name="subTest_name"  testPosition="unknown"&amp;gt;
     &amp;lt;subPositions&amp;gt;
        &amp;lt;subPosition  name="{60}"/&amp;gt;
        &amp;lt;subPosition  name="{59}"/&amp;gt;
     &amp;lt;/subPositions&amp;gt;
     &amp;lt;subTestResult  testResultClass="fail"  testResultCode="failed"&amp;gt;
        &amp;lt;channel  UnitOfMeasure="V"  measureDataType="metricPrefix"  name="channel_1"&amp;gt;
           &amp;lt;sample  value="17.4375m"/&amp;gt;
           &amp;lt;limit_hh  value="100m"/&amp;gt;
           &amp;lt;limit_h  value="100m"/&amp;gt;
           &amp;lt;limit_l  value="-100m"/&amp;gt;
           &amp;lt;limit_ll  value="-100m"/&amp;gt;
        &amp;lt;/channel&amp;gt;
     &amp;lt;/subTestResult&amp;gt;
  &amp;lt;/subTest&amp;gt;
  &amp;lt;subTest  name="subTest_name"  testPosition="unknown"&amp;gt;
     &amp;lt;subPositions&amp;gt;
        &amp;lt;subPosition  name="{104}"/&amp;gt;
        &amp;lt;subPosition  name="{47}"/&amp;gt;
     &amp;lt;/subPositions&amp;gt;
     &amp;lt;subTestResult  testResultClass="fail"  testResultCode="failed"&amp;gt;
        &amp;lt;channel  UnitOfMeasure="V"  measureDataType="decimal"  name="channel_2"&amp;gt;
           &amp;lt;sample  value="1.89062"/&amp;gt;
           &amp;lt;limit_hh  value="100"/&amp;gt;
           &amp;lt;limit_h  value="100"/&amp;gt;
           &amp;lt;limit_l  value="-100"/&amp;gt;
           &amp;lt;limit_ll  value="-100"/&amp;gt;
        &amp;lt;/channel&amp;gt;
     &amp;lt;/subTestResult&amp;gt;
  &amp;lt;/subTest&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 09 Sep 2019 06:40:45 GMT</pubDate>
    <dc:creator>spisiakmi</dc:creator>
    <dc:date>2019-09-09T06:40:45Z</dc:date>
    <item>
      <title>How to optimize rex to avoid the error message: Error in 'rex' command: regex= has exceeded configured match_limit, consider raising the value in limits.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-optimize-rex-to-avoid-the-error-message-Error-in-rex/m-p/473495#M133221</link>
      <description>&lt;P&gt;Hi. Can you help me, please, to optimize the regular expression. The problem is, when I search in longer time, I receive the error message: Error in 'rex' command: regex= has exceeded configured match_limit, consider raising the value in limits.conf&lt;BR /&gt;
I do not want to adjust the limits.conf, I want to write proper regex.&lt;BR /&gt;
The search code has been uploaded as image search.jpg&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/7640i76D01CC01D5A7DF9/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;The example of the xml log file has been uploaded as an image regex_prob.jpg.&lt;/P&gt;

&lt;P&gt;I want to read the whole section which belongs to the "test".&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2019 12:14:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-optimize-rex-to-avoid-the-error-message-Error-in-rex/m-p/473495#M133221</guid>
      <dc:creator>spisiakmi</dc:creator>
      <dc:date>2019-09-06T12:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to optimize rex to avoid the error message: Error in 'rex' command: regex= has exceeded configured match_limit, consider raising the value in limits.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-optimize-rex-to-avoid-the-error-message-Error-in-rex/m-p/473496#M133222</link>
      <description>&lt;P&gt;Is it possible you to provide sample data in text instead of image (Please mask any sensitive data) ?&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2019 14:28:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-optimize-rex-to-avoid-the-error-message-Error-in-rex/m-p/473496#M133222</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2019-09-06T14:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to optimize rex to avoid the error message: Error in 'rex' command: regex= has exceeded configured match_limit, consider raising the value in limits.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-optimize-rex-to-avoid-the-error-message-Error-in-rex/m-p/473497#M133223</link>
      <description>&lt;P&gt;Hi harsmarvania57, I try to paste the xml data here, but I'm affraid, that special chars will be removed:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;subTest  name="subTest_name"  testPosition="unknown"&amp;gt;
     &amp;lt;subPositions&amp;gt;
        &amp;lt;subPosition  name="{60}"/&amp;gt;
        &amp;lt;subPosition  name="{59}"/&amp;gt;
     &amp;lt;/subPositions&amp;gt;
     &amp;lt;subTestResult  testResultClass="fail"  testResultCode="failed"&amp;gt;
        &amp;lt;channel  UnitOfMeasure="V"  measureDataType="metricPrefix"  name="channel_1"&amp;gt;
           &amp;lt;sample  value="17.4375m"/&amp;gt;
           &amp;lt;limit_hh  value="100m"/&amp;gt;
           &amp;lt;limit_h  value="100m"/&amp;gt;
           &amp;lt;limit_l  value="-100m"/&amp;gt;
           &amp;lt;limit_ll  value="-100m"/&amp;gt;
        &amp;lt;/channel&amp;gt;
     &amp;lt;/subTestResult&amp;gt;
  &amp;lt;/subTest&amp;gt;
  &amp;lt;subTest  name="subTest_name"  testPosition="unknown"&amp;gt;
     &amp;lt;subPositions&amp;gt;
        &amp;lt;subPosition  name="{104}"/&amp;gt;
        &amp;lt;subPosition  name="{47}"/&amp;gt;
     &amp;lt;/subPositions&amp;gt;
     &amp;lt;subTestResult  testResultClass="fail"  testResultCode="failed"&amp;gt;
        &amp;lt;channel  UnitOfMeasure="V"  measureDataType="decimal"  name="channel_2"&amp;gt;
           &amp;lt;sample  value="1.89062"/&amp;gt;
           &amp;lt;limit_hh  value="100"/&amp;gt;
           &amp;lt;limit_h  value="100"/&amp;gt;
           &amp;lt;limit_l  value="-100"/&amp;gt;
           &amp;lt;limit_ll  value="-100"/&amp;gt;
        &amp;lt;/channel&amp;gt;
     &amp;lt;/subTestResult&amp;gt;
  &amp;lt;/subTest&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 09 Sep 2019 06:40:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-optimize-rex-to-avoid-the-error-message-Error-in-rex/m-p/473497#M133223</guid>
      <dc:creator>spisiakmi</dc:creator>
      <dc:date>2019-09-09T06:40:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to optimize rex to avoid the error message: Error in 'rex' command: regex= has exceeded configured match_limit, consider raising the value in limits.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-optimize-rex-to-avoid-the-error-message-Error-in-rex/m-p/473498#M133224</link>
      <description>&lt;P&gt;As I thought, the non complete xml code has been pasted. Please, compare it with the uploaded regex-prob.jpg file.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2019 09:42:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-optimize-rex-to-avoid-the-error-message-Error-in-rex/m-p/473498#M133224</guid>
      <dc:creator>spisiakmi</dc:creator>
      <dc:date>2019-09-09T09:42:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to optimize rex to avoid the error message: Error in 'rex' command: regex= has exceeded configured match_limit, consider raising the value in limits.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-optimize-rex-to-avoid-the-error-message-Error-in-rex/m-p/473499#M133225</link>
      <description>&lt;P&gt;I removed ?. The previous rex has 2568 steps. The new one has only 70 steps. But the error message still appears.&lt;BR /&gt;
    | rex "(?ms)&amp;lt;test\s+[^&amp;gt;]+&lt;A href="https://community.splunk.com/?P%3Cdef%3E.*"&gt;^\s&lt;/A&gt;&amp;lt;/test&amp;gt;"&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2019 10:52:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-optimize-rex-to-avoid-the-error-message-Error-in-rex/m-p/473499#M133225</guid>
      <dc:creator>spisiakmi</dc:creator>
      <dc:date>2019-09-09T10:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to optimize rex to avoid the error message: Error in 'rex' command: regex= has exceeded configured match_limit, consider raising the value in limits.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-optimize-rex-to-avoid-the-error-message-Error-in-rex/m-p/473500#M133226</link>
      <description>&lt;P&gt;If you paste your sample data with Code Sample (button &lt;CODE&gt;101010&lt;/CODE&gt;) then you will able to paste special character as well.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2019 10:56:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-optimize-rex-to-avoid-the-error-message-Error-in-rex/m-p/473500#M133226</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2019-09-09T10:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to optimize rex to avoid the error message: Error in 'rex' command: regex= has exceeded configured match_limit, consider raising the value in limits.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-optimize-rex-to-avoid-the-error-message-Error-in-rex/m-p/473501#M133227</link>
      <description>&lt;P&gt;Unfortunatelly it is impossible to submit the code. Nothing happened, although I pasted the code through 101010 and tried to submit it.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2019 11:06:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-optimize-rex-to-avoid-the-error-message-Error-in-rex/m-p/473501#M133227</guid>
      <dc:creator>spisiakmi</dc:creator>
      <dc:date>2019-09-09T11:06:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to optimize rex to avoid the error message: Error in 'rex' command: regex= has exceeded configured match_limit, consider raising the value in limits.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-optimize-rex-to-avoid-the-error-message-Error-in-rex/m-p/473502#M133228</link>
      <description>&lt;P&gt;So I removed ? from the rex. And the steps have been reduced to 70. And the Splunk ist OK with it. No error message.&lt;BR /&gt;
    | rex "(?ms)\"&amp;lt;"test\s+[^&amp;gt;]+&lt;A href="https://community.splunk.com/?P%22%3C%22def%3E.*"&gt;^\s&lt;/A&gt;\"&amp;lt;"/test&amp;gt;" max_match=999&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2019 11:23:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-optimize-rex-to-avoid-the-error-message-Error-in-rex/m-p/473502#M133228</guid>
      <dc:creator>spisiakmi</dc:creator>
      <dc:date>2019-09-09T11:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to optimize rex to avoid the error message: Error in 'rex' command: regex= has exceeded configured match_limit, consider raising the value in limits.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-optimize-rex-to-avoid-the-error-message-Error-in-rex/m-p/473503#M133229</link>
      <description>&lt;P&gt;I also reduced the set of events: index=ind fail&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2019 11:40:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-optimize-rex-to-avoid-the-error-message-Error-in-rex/m-p/473503#M133229</guid>
      <dc:creator>spisiakmi</dc:creator>
      <dc:date>2019-09-09T11:40:06Z</dc:date>
    </item>
  </channel>
</rss>

