<?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: Error with Rex exceeding match_limit, asking raising the value in limits.conf in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Error-with-Rex-exceeding-match-limit-asking-raising-the-value-in/m-p/459109#M129647</link>
    <description>&lt;P&gt;Can you please save your changes &lt;A href="https://regex101.com/r/fUcjqi/1"&gt;https://regex101.com/r/fUcjqi/1&lt;/A&gt; with version where it failed&lt;/P&gt;</description>
    <pubDate>Tue, 14 May 2019 22:36:12 GMT</pubDate>
    <dc:creator>ss026381</dc:creator>
    <dc:date>2019-05-14T22:36:12Z</dc:date>
    <item>
      <title>Error with Rex exceeding match_limit, asking raising the value in limits.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Error-with-Rex-exceeding-match-limit-asking-raising-the-value-in/m-p/459107#M129645</link>
      <description>&lt;P&gt;I am fairly new to regex. I wrote a regex that works fine in regex101, but because I am doing lots of back tracking I guess , Splunk rex throws below error.&lt;BR /&gt;
&lt;CODE&gt;has exceeded configured match_limit, consider raising the value in limits.conf&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;I don't have access to limits.conf file, can someone help me with regex optimization. &lt;/P&gt;

&lt;P&gt;URL to regex: &lt;A href="https://regex101.com/r/fUcjqi/1"&gt;https://regex101.com/r/fUcjqi/1&lt;/A&gt; &lt;/P&gt;

&lt;P&gt;regex:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(?m)^(?&amp;lt;exceptionName&amp;gt;[\w.]*Exception).*\s*(\S*\s*)?(?&amp;lt;endStateComponent&amp;gt;[\w$#.]*)\.(?&amp;lt;endStateFunction&amp;gt;[\w$#.]+\.[\w$#]+)\(\D*(?&amp;lt;endStateOffset&amp;gt;\d+)?\S*\s*\S*\s*(?:\k&amp;lt;endStateComponent&amp;gt;|((?!com.custom).)\.\S*\s*\S*\s*)*((?&amp;lt;firstcustomComponent&amp;gt;com.custom.*)\.(?&amp;lt;firstcustomFunction&amp;gt;[\w$#.]+\.[\w$#]+)\(\D*(?&amp;lt;firstcustomOffset&amp;gt;\d+)?\S*\s*\S*\s*)?(?:(\k&amp;lt;endStateComponent&amp;gt;|\k&amp;lt;firstcustomComponent&amp;gt;|((?!com.custom).)*)\.\S*\s*\S*\s*)*((?&amp;lt;secondcustomComponent&amp;gt;com.custom.*)\.(?&amp;lt;secondcustomFunction&amp;gt;[\w$#.]+\.[\w$#]+)\(\D*(?&amp;lt;secondcustomOffset&amp;gt;\d+)?)?
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;sample log:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    Tue May 07 10:32:11 CDT 2019 SEVERE com.custom.financials.service.enterprise.server.financialinfo.PostRemittanceHandler [RequestHandler [1]] - [Error occurred when trying to post self pay remittance wrapper model][com.custom.system.enterprise.server:customdomain.custom.com][com.custom.system.enterprise.server:service:Financials][com.custom.system.enterprise.server:scp:368][com.custom.system.enterprise.server:message:PostRemittanceWrapperModel:4091003]
java.lang.NullPointerException: 
at 
com.custom.financials.service.enterprise.server.financialinfo.PostRemittanceHandler.handleRequest(PostRemittanceHandler.java:216)
at com.custom.financials.service.enterprise.server.FinancialsServer.handlePostRemittanceWrapperModel(FinancialsServer.java:1553)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.custom.financials.service.enterprise.server.FinancialsServer.handlePostRemittanceWrapperModel(FinancialsServer.java:1553)
at com.custom.system.enterprise.server.Server$ExecuteHandler.invoke(Server.java:422)
at com.custom.system.enterprise.server.Server.execute(Server.java:346)
at com.custom.system.enterprise.server.container.ServerContainer$EndInterceptor.intercept(ServerContainer.java:583)
at com.custom.system.enterprise.server.container.InterceptorChainImpl.execute(InterceptorChainImpl.java:53)
at com.custom.system.enterprise.server.container.ServerContainer$1.run(ServerContainer.java:386)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:360)
at com.custom.system.enterprise.server.container.ServerContainer.execute(ServerContainer.java:382)
at com.custom.system.enterprise.server.cadence.service.RRService$HandlerRunner.run(RRService.java:104)
at com.custom.system.enterprise.server.cadence.service.InstrumentedThreadPoolExecutor$InstrumentedRunnable.run(InstrumentedThreadPoolExecutor.java:210)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at com.custom.system.enterprise.server.cadence.service.ServiceManager$ContextCleaningThread.run(ServiceManager.java:373)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 14 May 2019 20:38:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Error-with-Rex-exceeding-match-limit-asking-raising-the-value-in/m-p/459107#M129645</guid>
      <dc:creator>ss026381</dc:creator>
      <dc:date>2019-05-14T20:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: Error with Rex exceeding match_limit, asking raising the value in limits.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Error-with-Rex-exceeding-match-limit-asking-raising-the-value-in/m-p/459108#M129646</link>
      <description>&lt;P&gt;Your regex is causing catastrophic backtracking. You need to check it with different types of examples, and more of them.&lt;/P&gt;

&lt;P&gt;By adding just two spaces to the example you pasted I was able to cause it to fail.&lt;/P&gt;

&lt;P&gt;Splunk (thankfully) protects itself from catastrophic backtracking with a limit of 100K.&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2019 22:16:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Error-with-Rex-exceeding-match-limit-asking-raising-the-value-in/m-p/459108#M129646</guid>
      <dc:creator>codebuilder</dc:creator>
      <dc:date>2019-05-14T22:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: Error with Rex exceeding match_limit, asking raising the value in limits.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Error-with-Rex-exceeding-match-limit-asking-raising-the-value-in/m-p/459109#M129647</link>
      <description>&lt;P&gt;Can you please save your changes &lt;A href="https://regex101.com/r/fUcjqi/1"&gt;https://regex101.com/r/fUcjqi/1&lt;/A&gt; with version where it failed&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2019 22:36:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Error-with-Rex-exceeding-match-limit-asking-raising-the-value-in/m-p/459109#M129647</guid>
      <dc:creator>ss026381</dc:creator>
      <dc:date>2019-05-14T22:36:12Z</dc:date>
    </item>
  </channel>
</rss>

