<?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: Problem with optimization of the regex: limits.conf in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Problem-with-optimization-of-the-regex-limits-conf/m-p/498309#M138832</link>
    <description>&lt;P&gt;Hi ololdach,&lt;/P&gt;

&lt;P&gt;Thank you for your message.&lt;BR /&gt;
I used the spath, but I lost the data relation. E.g. In CSV file there is a relation data model guarantied by the first row (header). How would I select here all test name where testResultCode is failed? Using spath of course. And than using the spath the subTest names, which are failed, depending on testname?&lt;/P&gt;</description>
    <pubDate>Mon, 07 Oct 2019 06:47:07 GMT</pubDate>
    <dc:creator>spisiakmi</dc:creator>
    <dc:date>2019-10-07T06:47:07Z</dc:date>
    <item>
      <title>Problem with optimization of the regex: limits.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Problem-with-optimization-of-the-regex-limits-conf/m-p/498305#M138828</link>
      <description>&lt;P&gt;Hi I have a problem with the error message of the Splunk:  Error in 'rex' command: regex="(?ms)]+&lt;A href="https://community.splunk.com/?P.*?"&gt;^\s&lt;/A&gt;\" has exceeded configured match_limit, consider raising the value in limits.conf&lt;BR /&gt;
The problem is, that the regex &lt;CODE&gt;regex="(?ms)\&amp;lt;test[^\&amp;gt;]+[^\s](?P&amp;lt;tmp&amp;gt;.*?)\&amp;lt;/test\&amp;gt;"&lt;/CODE&gt;for + xml file generates 8099 steps.&lt;BR /&gt;
I tested it on this xml file:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;?xml version="1.0" encoding="UTF-8" ?&amp;gt;
&amp;lt;unitData  endtime="2019-09-30T05:39:08+02:00"  equipment="eq1"  equipmentClass="eqc1"  locale="german"  operator="ADMINISTRATOR"  senderID="sender1"  starttime="2019-09-30T05:38:09+02:00"  state="nok"  unit="74375513159930675"  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  xsi:noNamespaceSchemaLocation="unitData-1.1.xsd"&amp;gt;
   &amp;lt;subUnitData  position="1"  positionType="Panel Nr."  state="ok"  subUnit="74375513159930675"&amp;gt;
      &amp;lt;test  description="A10-007 7437551"  name="CU102_BAY2_QR"  testResultCode="passed"&amp;gt;
         &amp;lt;subTest  name="Verbindung zum Pr³fling aufbauen"  testPosition="unknown"&amp;gt;
            &amp;lt;subTestResult  testResultClass="pass"  testResultCode="passed"/&amp;gt;
         &amp;lt;/subTest&amp;gt;
         &amp;lt;subTest  name="Initialisierung"  testPosition="unknown"&amp;gt;
            &amp;lt;subTestResult  testResultClass="pass"  testResultCode="passed"/&amp;gt;
         &amp;lt;/subTest&amp;gt;
         &amp;lt;subTest  name="Fehlerflag lesen"  testPosition="unknown"&amp;gt;
            &amp;lt;subTestResult  testResultClass="pass"  testResultCode="passed"/&amp;gt;
         &amp;lt;/subTest&amp;gt;
         &amp;lt;subTest  name="ID lesen"  testPosition="unknown"&amp;gt;
            &amp;lt;subTestResult  testResultClass="pass"  testResultCode="passed"/&amp;gt;
         &amp;lt;/subTest&amp;gt;
         &amp;lt;subTest  name="Sachnummer lesen"  testPosition="unknown"&amp;gt;
            &amp;lt;subTestResult  testResultClass="pass"  testResultCode="passed"/&amp;gt;
         &amp;lt;/subTest&amp;gt;
         &amp;lt;subTest  name="Trigger setzen"  testPosition="unknown"&amp;gt;
            &amp;lt;subTestResult  testResultClass="pass"  testResultCode="passed"/&amp;gt;
         &amp;lt;/subTest&amp;gt;
         &amp;lt;subTest  name="ADC Abschalten"  testPosition="unknown"&amp;gt;
            &amp;lt;subTestResult  testResultClass="pass"  testResultCode="passed"/&amp;gt;
         &amp;lt;/subTest&amp;gt;
      &amp;lt;/test&amp;gt;
   &amp;lt;/subUnitData&amp;gt;
   &amp;lt;subUnitData  position="2"  positionType="Panel Nr."  state="ok"  subUnit="74375513159930676"&amp;gt;
      &amp;lt;test  description="A10-007 7437551"  name="CU102_BAY2_QR"  testResultCode="passed"&amp;gt;
         &amp;lt;subTest  name="Verbindung zum Pr³fling aufbauen"  testPosition="unknown"&amp;gt;
            &amp;lt;subTestResult  testResultClass="pass"  testResultCode="passed"/&amp;gt;
         &amp;lt;/subTest&amp;gt;
         &amp;lt;subTest  name="Initialisierung"  testPosition="unknown"&amp;gt;
            &amp;lt;subTestResult  testResultClass="pass"  testResultCode="passed"/&amp;gt;
         &amp;lt;/subTest&amp;gt;
         &amp;lt;subTest  name="Fehlerflag lesen"  testPosition="unknown"&amp;gt;
            &amp;lt;subTestResult  testResultClass="pass"  testResultCode="passed"/&amp;gt;
         &amp;lt;/subTest&amp;gt;
         &amp;lt;subTest  name="ID lesen"  testPosition="unknown"&amp;gt;
            &amp;lt;subTestResult  testResultClass="pass"  testResultCode="passed"/&amp;gt;
         &amp;lt;/subTest&amp;gt;
         &amp;lt;subTest  name="Sachnummer lesen"  testPosition="unknown"&amp;gt;
            &amp;lt;subTestResult  testResultClass="pass"  testResultCode="passed"/&amp;gt;
         &amp;lt;/subTest&amp;gt;
         &amp;lt;subTest  name="Trigger setzen"  testPosition="unknown"&amp;gt;
            &amp;lt;subTestResult  testResultClass="pass"  testResultCode="passed"/&amp;gt;
         &amp;lt;/subTest&amp;gt;
         &amp;lt;subTest  name="ADC Abschalten"  testPosition="unknown"&amp;gt;
            &amp;lt;subTestResult  testResultClass="pass"  testResultCode="passed"/&amp;gt;
         &amp;lt;/subTest&amp;gt;
      &amp;lt;/test&amp;gt;
   &amp;lt;/subUnitData&amp;gt;
   &amp;lt;subUnitData  position="3"  positionType="Panel Nr."  state="ok"  subUnit="74375513159930678"&amp;gt;
      &amp;lt;test  description="A10-007 7437551"  name="CU102_BAY2_QR"  testResultCode="passed"&amp;gt;
         &amp;lt;subTest  name="Verbindung zum Pr³fling aufbauen"  testPosition="unknown"&amp;gt;
            &amp;lt;subTestResult  testResultClass="pass"  testResultCode="passed"/&amp;gt;
         &amp;lt;/subTest&amp;gt;
         &amp;lt;subTest  name="Initialisierung"  testPosition="unknown"&amp;gt;
            &amp;lt;subTestResult  testResultClass="pass"  testResultCode="passed"/&amp;gt;
         &amp;lt;/subTest&amp;gt;
         &amp;lt;subTest  name="Fehlerflag lesen"  testPosition="unknown"&amp;gt;
            &amp;lt;subTestResult  testResultClass="pass"  testResultCode="passed"/&amp;gt;
         &amp;lt;/subTest&amp;gt;
         &amp;lt;subTest  name="ID lesen"  testPosition="unknown"&amp;gt;
            &amp;lt;subTestResult  testResultClass="pass"  testResultCode="passed"/&amp;gt;
         &amp;lt;/subTest&amp;gt;
         &amp;lt;subTest  name="Sachnummer lesen"  testPosition="unknown"&amp;gt;
            &amp;lt;subTestResult  testResultClass="pass"  testResultCode="passed"/&amp;gt;
         &amp;lt;/subTest&amp;gt;
         &amp;lt;subTest  name="Trigger setzen"  testPosition="unknown"&amp;gt;
            &amp;lt;subTestResult  testResultClass="pass"  testResultCode="passed"/&amp;gt;
         &amp;lt;/subTest&amp;gt;
         &amp;lt;subTest  name="ADC Abschalten"  testPosition="unknown"&amp;gt;
            &amp;lt;subTestResult  testResultClass="pass"  testResultCode="passed"/&amp;gt;
         &amp;lt;/subTest&amp;gt;
      &amp;lt;/test&amp;gt;
   &amp;lt;/subUnitData&amp;gt;
   &amp;lt;subUnitData  position="4"  positionType="Panel Nr."  state="nok"  subUnit="74375513159930677"&amp;gt;
      &amp;lt;test  description="A10-007 7437551"  name="CU102_BAY2_QR"  testResultCode="failed"&amp;gt;
         &amp;lt;subTest  name="FLOAT"  testPosition="unknown"&amp;gt;
            &amp;lt;subPositions&amp;gt;
               &amp;lt;subPosition  name="{27}"/&amp;gt;
            &amp;lt;/subPositions&amp;gt;
            &amp;lt;subTestResult  testResultClass="fail"  testResultCode="failed"/&amp;gt;
         &amp;lt;/subTest&amp;gt;
         &amp;lt;subTest  name="Components not tested"  testPosition="unknown"&amp;gt;
            &amp;lt;subTestResult  testResultClass="pass"  testResultCode="passed"/&amp;gt;
         &amp;lt;/subTest&amp;gt;
      &amp;lt;/test&amp;gt;
   &amp;lt;/subUnitData&amp;gt;
&amp;lt;/unitData&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Can you help me, please, to optimize the regex? I want to extract the test tag.&lt;/P&gt;</description>
      <pubDate>Sat, 05 Oct 2019 11:03:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Problem-with-optimization-of-the-regex-limits-conf/m-p/498305#M138828</guid>
      <dc:creator>spisiakmi</dc:creator>
      <dc:date>2019-10-05T11:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with optimization of the regex: limits.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Problem-with-optimization-of-the-regex-limits-conf/m-p/498306#M138829</link>
      <description>&lt;P&gt;Hi spisiakmi,&lt;BR /&gt;
try this regex&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(?ms)\&amp;lt;test\s(?P&amp;lt;tmp&amp;gt;.*?)\&amp;lt;\/test\&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;that you can test at &lt;A href="https://regex101.com/r/HHTNrR/1"&gt;https://regex101.com/r/HHTNrR/1&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Sat, 05 Oct 2019 11:41:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Problem-with-optimization-of-the-regex-limits-conf/m-p/498306#M138829</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2019-10-05T11:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with optimization of the regex: limits.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Problem-with-optimization-of-the-regex-limits-conf/m-p/498307#M138830</link>
      <description>&lt;P&gt;Hi Giuseppe,&lt;/P&gt;

&lt;P&gt;thank you, but your regex generates more steps, than mine. Mine has 8099, but your 8871. Sorry.&lt;/P&gt;</description>
      <pubDate>Sat, 05 Oct 2019 12:41:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Problem-with-optimization-of-the-regex-limits-conf/m-p/498307#M138830</guid>
      <dc:creator>spisiakmi</dc:creator>
      <dc:date>2019-10-05T12:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with optimization of the regex: limits.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Problem-with-optimization-of-the-regex-limits-conf/m-p/498308#M138831</link>
      <description>&lt;P&gt;Hi, take a look at spath. It might be the better solution to extract the fields: &lt;A href="https://docs.splunk.com/Documentation/Splunk/7.3.1/SearchReference/Spath"&gt;https://docs.splunk.com/Documentation/Splunk/7.3.1/SearchReference/Spath&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Oct 2019 17:13:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Problem-with-optimization-of-the-regex-limits-conf/m-p/498308#M138831</guid>
      <dc:creator>ololdach</dc:creator>
      <dc:date>2019-10-05T17:13:59Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with optimization of the regex: limits.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Problem-with-optimization-of-the-regex-limits-conf/m-p/498309#M138832</link>
      <description>&lt;P&gt;Hi ololdach,&lt;/P&gt;

&lt;P&gt;Thank you for your message.&lt;BR /&gt;
I used the spath, but I lost the data relation. E.g. In CSV file there is a relation data model guarantied by the first row (header). How would I select here all test name where testResultCode is failed? Using spath of course. And than using the spath the subTest names, which are failed, depending on testname?&lt;/P&gt;</description>
      <pubDate>Mon, 07 Oct 2019 06:47:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Problem-with-optimization-of-the-regex-limits-conf/m-p/498309#M138832</guid>
      <dc:creator>spisiakmi</dc:creator>
      <dc:date>2019-10-07T06:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with optimization of the regex: limits.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Problem-with-optimization-of-the-regex-limits-conf/m-p/498310#M138833</link>
      <description>&lt;P&gt;Hi ololdach,&lt;/P&gt;

&lt;P&gt;I used the spath and it worked. I had only problem with mvexpand, because of the error message: command.mvexpand: output will be truncated at 300 results due to excessive memory usage. Memory threshold of 500MB as configured in limits.conf / [mvexpand] / max_mem_usage_mb has been reached.&lt;BR /&gt;
I solved it, with the command: |fields - _*&lt;BR /&gt;
But thank you anyway.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 02:31:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Problem-with-optimization-of-the-regex-limits-conf/m-p/498310#M138833</guid>
      <dc:creator>spisiakmi</dc:creator>
      <dc:date>2020-09-30T02:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with optimization of the regex: limits.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Problem-with-optimization-of-the-regex-limits-conf/m-p/498311#M138834</link>
      <description>&lt;P&gt;hi spisiakmi, glad I could help!&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2019 13:06:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Problem-with-optimization-of-the-regex-limits-conf/m-p/498311#M138834</guid>
      <dc:creator>ololdach</dc:creator>
      <dc:date>2019-10-11T13:06:32Z</dc:date>
    </item>
  </channel>
</rss>

