<?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: Reduce the regex steps in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Reduce-the-regex-steps/m-p/504482#M140844</link>
    <description>&lt;P&gt;This regex will reduce your steps from 1322 to 1228, but I have no idea if it will prevent your limits errors:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[{(, ](?&amp;lt;Dimensions&amp;gt;[-.\w[\]+ ]+)[.&amp;amp;[]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;The data that you are working with and the result set that you want is rather abstract and hard to make better, since it isn't very comprehendible. The actual goal of what a &lt;STRONG&gt;Dimensions&lt;/STRONG&gt; is is not clear.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 15 Jun 2020 18:37:00 GMT</pubDate>
    <dc:creator>cpetterborg</dc:creator>
    <dc:date>2020-06-15T18:37:00Z</dc:date>
    <item>
      <title>Reduce the regex steps</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Reduce-the-regex-steps/m-p/503825#M140659</link>
      <description>&lt;P&gt;Trying to extract Dimensions out of Query, but it is taking 1500 plus steps due to which I am getting limits.conf error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[{(, ](?&amp;lt;Dimensions&amp;gt;[a-z0-9A-Z\[\.\]+[\-\ \_]*)[\.&amp;amp;\[]

SELECT { [Measures].[IMS Org Count] } ON COLUMNS, NONEMPTY ( { [End User].[End User ID].[End User ID].MEMBERS * [End User].[End User Name].[End User Name].MEMBERS * [Product].[PMBU Short Desc].[PMBU Short Desc].MEMBERS * [Product].[PMBU Medium Desc].[PMBU Medium Desc].MEMBERS * [IMS Org].[Unique Id].[Unique Id].MEMBERS * [IMS Org].[IMS Org Id].[IMS Org Id].MEMBERS * [IMS Org].[MC Org Name].[MC Org Name].MEMBERS * [Is Active Account].[Is Active Account].[Is Active Account].MEMBERS* [Billing End User].[End User ID].[End User ID].MEMBERS } , [Measures].[IMS Org Count] ) ON ROWS FROM ( SELECT CASE '1' WHEN "5" THEN [Account Manager].[AM Org Lead Ldap].[AM Org Lead Ldap].[xxxx] WHEN "4" THEN [Account Manager].[Regional Manager Ldap].[Regional Manager Ldap].[xxx] WHEN "3" THEN [Account Manager].[AM Manager Ldap].[AM Manager Ldap].[xxx] WHEN "2" THEN [Account Manager].[AM Lead Ldap].[AM Lead Ldap].[xxx] WHEN "1" THEN [Account Manager].[AM Ldap].[AM Ldap].[xxxx] END ON 0 FROM XX )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://regex101.com/r/HEdUhy/1/" target="_blank" rel="noopener"&gt;https://regex101.com/r/HEdUhy/1/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jun 2020 19:50:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Reduce-the-regex-steps/m-p/503825#M140659</guid>
      <dc:creator>dpatiladobe</dc:creator>
      <dc:date>2020-06-15T19:50:48Z</dc:date>
    </item>
    <item>
      <title>Re: Reduce the regex steps</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Reduce-the-regex-steps/m-p/504456#M140802</link>
      <description>&lt;P&gt;Is the regex101 what you want extracted? all those groups? or is it not exactly what you want? what is the limit problem? is this a regex you're doing in props or transforms or are you doing it with |rex on the search line? can you provide the entire stanza or the entire search string?&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jun 2020 15:52:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Reduce-the-regex-steps/m-p/504456#M140802</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2020-06-15T15:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: Reduce the regex steps</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Reduce-the-regex-steps/m-p/504465#M140805</link>
      <description>&lt;P&gt;The issue is regex is taking almost ~1300 steps due to which i am getting limit error's.&lt;/P&gt;&lt;P&gt;The query is&amp;nbsp; as below and regex is `[{(, ](?&amp;lt;Dimensions&amp;gt;[a-z0-9A-Z\[\.\]+[\-\ \_]*)[\.&amp;amp;\[]`&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SELECT { [Measures].[IMS Org Count] } ON COLUMNS, NONEMPTY ( { [End User].[End User ID].[End User ID].MEMBERS * [End User].[End User Name].[End User Name].MEMBERS * [Product].[PMBU Short Desc].[PMBU Short Desc].MEMBERS * [Product].[PMBU Medium Desc].[PMBU Medium Desc].MEMBERS * [IMS Org].[Unique Id].[Unique Id].MEMBERS * [IMS Org].[IMS Org Id].[IMS Org Id].MEMBERS * [IMS Org].[MC Org Name].[MC Org Name].MEMBERS * [Is Active Account].[Is Active Account].[Is Active Account].MEMBERS* [Billing End User].[End User ID].[End User ID].MEMBERS } , [Measures].[IMS Org Count] ) ON ROWS FROM ( SELECT CASE '1' WHEN "5" THEN [Account Manager].[AM Org Lead Ldap].[AM Org Lead Ldap].[xxxx] WHEN "4" THEN [Account Manager].[Regional Manager Ldap].[Regional Manager Ldap].[xxx] WHEN "3" THEN [Account Manager].[AM Manager Ldap].[AM Manager Ldap].[xxx] WHEN "2" THEN [Account Manager].[AM Lead Ldap].[AM Lead Ldap].[xxx] WHEN "1" THEN [Account Manager].[AM Ldap].[AM Ldap].[xxxx] END ON 0 FROM XX )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jun 2020 16:37:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Reduce-the-regex-steps/m-p/504465#M140805</guid>
      <dc:creator>dpatiladobe</dc:creator>
      <dc:date>2020-06-15T16:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: Reduce the regex steps</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Reduce-the-regex-steps/m-p/504479#M140830</link>
      <description>&lt;P&gt;I think that&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/185679"&gt;@cmerriman&lt;/a&gt;&amp;nbsp;has a valid point about your data. Is that the exact set of matches that you want to get? If it is, then that makes it so that we know the actual constraints. If you are saying only that you want to get that data exactly as it is with that data, but you just want to reduce the steps so that you don't have to make changes to limits.conf, then that is one thing.&lt;BR /&gt;&lt;BR /&gt;Looking at the results you got in regex101, I'm not seeing any kind of correlation to useful data that you could use from the regex you are using. I think that is your biggest problem in getting a good answer. If you want to get different results, then that would make finding a better regex a whole lot easier. As it is, I'm finding this very difficult to help find you a solution because if the data changes slightly but still be valid SQL, then you won't get a similar resulting set of &lt;STRONG&gt;Dimensions&lt;/STRONG&gt;&amp;nbsp;from your regex. Hopefully you can see the point I'm trying to make.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jun 2020 18:04:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Reduce-the-regex-steps/m-p/504479#M140830</guid>
      <dc:creator>cpetterborg</dc:creator>
      <dc:date>2020-06-15T18:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: Reduce the regex steps</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Reduce-the-regex-steps/m-p/504480#M140842</link>
      <description>&lt;P&gt;Yes these what i wanted "&lt;SPAN&gt;If you are saying only that you want to get that data exactly as it is with that data, but you just want to reduce the steps so that you don't have to make changes to limits.conf, then that is one thing."&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jun 2020 18:07:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Reduce-the-regex-steps/m-p/504480#M140842</guid>
      <dc:creator>dpatiladobe</dc:creator>
      <dc:date>2020-06-15T18:07:28Z</dc:date>
    </item>
    <item>
      <title>Re: Reduce the regex steps</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Reduce-the-regex-steps/m-p/504482#M140844</link>
      <description>&lt;P&gt;This regex will reduce your steps from 1322 to 1228, but I have no idea if it will prevent your limits errors:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[{(, ](?&amp;lt;Dimensions&amp;gt;[-.\w[\]+ ]+)[.&amp;amp;[]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;The data that you are working with and the result set that you want is rather abstract and hard to make better, since it isn't very comprehendible. The actual goal of what a &lt;STRONG&gt;Dimensions&lt;/STRONG&gt; is is not clear.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jun 2020 18:37:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Reduce-the-regex-steps/m-p/504482#M140844</guid>
      <dc:creator>cpetterborg</dc:creator>
      <dc:date>2020-06-15T18:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: Reduce the regex steps</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Reduce-the-regex-steps/m-p/504621#M140922</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[{(, ](?&amp;lt;Dimensions&amp;gt;(\[[^\]]+\]\.)+)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;gives 755 steps for the data provided in your regex101.com my solution at&amp;nbsp; &lt;A href="https://regex101.com/r/HEdUhy/2" target="_blank"&gt;https://regex101.com/r/HEdUhy/2&lt;/A&gt;&amp;nbsp; with your exact prefix.&lt;/P&gt;&lt;P data-unlink="true"&gt;If you remove prefix it turns to be 357 steps for your given data.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;(?&amp;lt;Dimensions&amp;gt;(\[[^\]]+\]\.)+)&lt;/LI-CODE&gt;&lt;P&gt;solution at&amp;nbsp;&lt;A href="https://regex101.com/r/HEdUhy/3" target="_blank"&gt;https://regex101.com/r/HEdUhy/3&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jun 2020 14:59:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Reduce-the-regex-steps/m-p/504621#M140922</guid>
      <dc:creator>Birbal</dc:creator>
      <dc:date>2020-06-16T14:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: Reduce the regex steps</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Reduce-the-regex-steps/m-p/504692#M140941</link>
      <description>&lt;P&gt;These is what something i wanted. Thank you Appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jun 2020 20:30:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Reduce-the-regex-steps/m-p/504692#M140941</guid>
      <dc:creator>dpatiladobe</dc:creator>
      <dc:date>2020-06-16T20:30:10Z</dc:date>
    </item>
  </channel>
</rss>

