<?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: Optimized Rex in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/Optimized-Rex/m-p/699018#M20228</link>
    <description>&lt;P&gt;Thank you!&lt;BR /&gt;Unfortuantely&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| rex "#HLS#\s*IID:\s*(?P&amp;lt;IID&amp;gt;[^,]+),\s*.*#HLE#"
| rex "#HLS#\s*IID:\s*[^,]+,\s*STEP:\s*(?P&amp;lt;STEP&amp;gt;[^,]+),\s*.*#HLE#"
| rex "#HLS#\s*IID:\s*[^,]+,\s*STEP:\s*[^,]+,\s*PKEY:\s*(?P&amp;lt;PKEY&amp;gt;.*?),\s*.*#HLE#"
| rex "#HLS#\s*IID:\s*[^,]+,\s*STEP:\s*[^,]+,\s*PKEY:\s*.*?,\s*STATE:\s*(?P&amp;lt;STATE&amp;gt;[^,]+),\s*.*#HLE#"
| rex "#HLS#\s*IID:\s*[^,]+,\s*STEP:\s*[^,]+,\s*PKEY:\s*.*?,\s*STATE:\s*[^,]+,\s*MSG0:\s*(?P&amp;lt;MSG0&amp;gt;.*?),\s*.*#HLE#"
| rex "#HLS#\s*IID:\s*[^,]+,\s*STEP:\s*[^,]+,\s*PKEY:\s*.*?,\s*STATE:\s*[^,]+,\s*MSG0:\s*.*?,\s*EXCID:\s*(?P&amp;lt;EXCID&amp;gt;[a-zA-Z_]+),\s*.*#HLE#"
| rex "#HLS#\s*IID:\s*[^,]+,\s*STEP:\s*[^,]+,\s*PKEY:\s*.*?,\s*STATE:\s*[^,]+,\s*MSG0:\s*.*?,\s*EXCID:\s*[a-zA-Z_]+,\s*PROPS:\s*(?P&amp;lt;PROPS&amp;gt;[^#]+)\s*#HLE#"&lt;/LI-CODE&gt;
&lt;P&gt;did not help much.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 13 Sep 2024 19:19:10 GMT</pubDate>
    <dc:creator>ivoZgu</dc:creator>
    <dc:date>2024-09-13T19:19:10Z</dc:date>
    <item>
      <title>Optimized Rex</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Optimized-Rex/m-p/698905#M20215</link>
      <description>&lt;P&gt;Hey All,&lt;BR /&gt;Can anybody help me with optimization of this rex:&lt;BR /&gt;| rex "#HLS#\s*IID:\s*(?P&amp;lt;IID&amp;gt;[^,]+),\s*STEP:\s*(?P&amp;lt;STEP&amp;gt;[^,]+),\s*PKEY:\s*(?P&amp;lt;PKEY&amp;gt;.*?),\s*STATE:\s*(?P&amp;lt;STATE&amp;gt;[^,]+),\s*MSG0:\s*(?P&amp;lt;MSG0&amp;gt;.*?),\s*EXCID:\s*(?P&amp;lt;EXCID&amp;gt;[a-zA-Z_]+),\s*PROPS:\s*(?P&amp;lt;PROPS&amp;gt;[^#]+)\s*#HLE#"&lt;BR /&gt;&lt;BR /&gt;Example log:&lt;BR /&gt;"#HLS# IID: EB_FILE_S, STEP: SEND_TOF, PKEY: Ids:100063604006, 1000653604006, 6000125104001, 6000135104001, 6000145104001, 6000155104001, STATE: IN_PROGRESS, MSG0: Sending request to K, EXCID: dcd, PROPS: EVENT_TYPE: SEND_TO_S, asd: asd #HLE#&lt;BR /&gt;&lt;BR /&gt;ERROR:&lt;BR /&gt;"&lt;SPAN&gt;Streamed search execute failed because: Error in 'rex' command: regex="#HLS#\s*IID:\s*(?P&amp;lt;IID&amp;gt;[^,]+),\s*STEP:\s*(?P&amp;lt;STEP&amp;gt;[^,]+),\s*PKEY:\s*(?P&amp;lt;PKEY&amp;gt;.*?),\s*STATE:\s*(?P&amp;lt;STATE&amp;gt;[^,]+),\s*MSG0:\s*(?P&amp;lt;MSG0&amp;gt;.*?),\s*EXCID:\s*(?P&amp;lt;EXCID&amp;gt;[a-zA-Z_]+),\s*PROPS:\s*(?P&amp;lt;PROPS&amp;gt;[^#]+)\s*#HLE#" has exceeded configured match_limit, consider raising the value in limits.conf.&lt;/SPAN&gt;"&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2024 07:50:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Optimized-Rex/m-p/698905#M20215</guid>
      <dc:creator>ivoZgu</dc:creator>
      <dc:date>2024-09-13T07:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: Optimized Rex</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Optimized-Rex/m-p/698907#M20216</link>
      <description>&lt;P&gt;Something is not quite right here&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Your regex string is missing some question marks (although they do appear to be in your error message!)&lt;/LI&gt;&lt;LI&gt;Your error message says you have hit a limit with max_match, but your rex command doesn't appear to be using max_match and your sample log is a single line so even if you were using max_match there would only be one set of results&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Please can you clarify / expand your question&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2024 13:08:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Optimized-Rex/m-p/698907#M20216</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-09-12T13:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: Optimized Rex</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Optimized-Rex/m-p/698973#M20224</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;You are absolutely right, just have edited the rex .&lt;BR /&gt;I am not using max_match. This error appears once there are a lots of matching events.&amp;nbsp;&lt;BR /&gt;On the other hand rex with less steps and one property (exclude EXCID) less achieves to retrieve all events and no error thrown.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| rex "#HLS#\s*IID:\s*(?P&amp;lt;IID&amp;gt;[^,]+),\s*STEP:\s*(?P&amp;lt;STEP&amp;gt;[^,]+),\s*PKEY:\s*(?P&amp;lt;PKEY&amp;gt;.*?),\s*STATE:\s*(?P&amp;lt;STATE&amp;gt;[^,]+),\s*MSG0:\s*(?P&amp;lt;MSG0&amp;gt;.*?),\s*PROPS:\s*(?P&amp;lt;PROPS&amp;gt;[^#]+)\s*#HLE#"&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;BR,&lt;BR /&gt;Ivo&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2024 14:06:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Optimized-Rex/m-p/698973#M20224</guid>
      <dc:creator>ivoZgu</dc:creator>
      <dc:date>2024-09-13T14:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: Optimized Rex</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Optimized-Rex/m-p/698982#M20226</link>
      <description>&lt;P&gt;Try braking the large rex up into smaller chunks&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "#HLS#\s*IID:\s*(?P&amp;lt;IID&amp;gt;[^,]+),\s*.*#HLE#"
| rex "#HLS#\s*IID:\s*[^,]+,\s*STEP:\s*(?P&amp;lt;STEP&amp;gt;[^,]+),\s*.*#HLE#"
| rex "#HLS#\s*IID:\s*[^,]+,\s*STEP:\s*[^,]+,\s*PKEY:\s*(?P&amp;lt;PKEY&amp;gt;.*?),\s*.*#HLE#"
and so on&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 13 Sep 2024 09:02:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Optimized-Rex/m-p/698982#M20226</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-09-13T09:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: Optimized Rex</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Optimized-Rex/m-p/699018#M20228</link>
      <description>&lt;P&gt;Thank you!&lt;BR /&gt;Unfortuantely&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| rex "#HLS#\s*IID:\s*(?P&amp;lt;IID&amp;gt;[^,]+),\s*.*#HLE#"
| rex "#HLS#\s*IID:\s*[^,]+,\s*STEP:\s*(?P&amp;lt;STEP&amp;gt;[^,]+),\s*.*#HLE#"
| rex "#HLS#\s*IID:\s*[^,]+,\s*STEP:\s*[^,]+,\s*PKEY:\s*(?P&amp;lt;PKEY&amp;gt;.*?),\s*.*#HLE#"
| rex "#HLS#\s*IID:\s*[^,]+,\s*STEP:\s*[^,]+,\s*PKEY:\s*.*?,\s*STATE:\s*(?P&amp;lt;STATE&amp;gt;[^,]+),\s*.*#HLE#"
| rex "#HLS#\s*IID:\s*[^,]+,\s*STEP:\s*[^,]+,\s*PKEY:\s*.*?,\s*STATE:\s*[^,]+,\s*MSG0:\s*(?P&amp;lt;MSG0&amp;gt;.*?),\s*.*#HLE#"
| rex "#HLS#\s*IID:\s*[^,]+,\s*STEP:\s*[^,]+,\s*PKEY:\s*.*?,\s*STATE:\s*[^,]+,\s*MSG0:\s*.*?,\s*EXCID:\s*(?P&amp;lt;EXCID&amp;gt;[a-zA-Z_]+),\s*.*#HLE#"
| rex "#HLS#\s*IID:\s*[^,]+,\s*STEP:\s*[^,]+,\s*PKEY:\s*.*?,\s*STATE:\s*[^,]+,\s*MSG0:\s*.*?,\s*EXCID:\s*[a-zA-Z_]+,\s*PROPS:\s*(?P&amp;lt;PROPS&amp;gt;[^#]+)\s*#HLE#"&lt;/LI-CODE&gt;
&lt;P&gt;did not help much.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2024 19:19:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Optimized-Rex/m-p/699018#M20228</guid>
      <dc:creator>ivoZgu</dc:creator>
      <dc:date>2024-09-13T19:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: Optimized Rex</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Optimized-Rex/m-p/699034#M20232</link>
      <description>&lt;P&gt;Try reducing the lines until the error goes away to find out where the breakpoint is&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2024 15:42:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Optimized-Rex/m-p/699034#M20232</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-09-13T15:42:34Z</dc:date>
    </item>
  </channel>
</rss>

