<?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 Search generates this error - Regex: regular expression is too large in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Search-generates-this-error-Regex-regular-expression-is-too/m-p/700919#M237790</link>
    <description>&lt;P&gt;This is the search with some anonymization.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=index_1 sourcetype=sourcetype_1 field_1 IN ( 
    [ search index=index_2 field_2 IN ( 
        [ search index=index_2 field_2=abcdefg
        | fields field_3
        | mvcombine field_3 delim=" " 
        | nomv field_3 
        | dedup field_3 
        | sort field_3 
        | return $field_3]) 
    | fields field_3 
    | sort field_3 
    | mvcombine field_3 delim=" " 
    | nomv field_3])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The deepest subsearch returns a list of managers that report to a director, 10 names.&amp;nbsp; The subsearch returns a list of users who report to those managers, 1137 names.&amp;nbsp; If I run the search like this, I get output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=index_1 sourcetype=sourcetype_1 field_1 IN (1137 entries)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't find a reason that the first search returns this,&amp;nbsp; 'Regex: regular expression is too large', since there is no command that uses regex.&amp;nbsp; I can run each subsearch without any issues.&amp;nbsp; I can't find anything in the _internal index.&amp;nbsp; Any thoughts on why this is happening or a better search?&lt;/P&gt;&lt;P&gt;TIA,&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 03 Oct 2024 16:26:01 GMT</pubDate>
    <dc:creator>jwhughes58</dc:creator>
    <dc:date>2024-10-03T16:26:01Z</dc:date>
    <item>
      <title>Search generates this error - Regex: regular expression is too large</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-generates-this-error-Regex-regular-expression-is-too/m-p/700919#M237790</link>
      <description>&lt;P&gt;This is the search with some anonymization.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=index_1 sourcetype=sourcetype_1 field_1 IN ( 
    [ search index=index_2 field_2 IN ( 
        [ search index=index_2 field_2=abcdefg
        | fields field_3
        | mvcombine field_3 delim=" " 
        | nomv field_3 
        | dedup field_3 
        | sort field_3 
        | return $field_3]) 
    | fields field_3 
    | sort field_3 
    | mvcombine field_3 delim=" " 
    | nomv field_3])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The deepest subsearch returns a list of managers that report to a director, 10 names.&amp;nbsp; The subsearch returns a list of users who report to those managers, 1137 names.&amp;nbsp; If I run the search like this, I get output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=index_1 sourcetype=sourcetype_1 field_1 IN (1137 entries)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't find a reason that the first search returns this,&amp;nbsp; 'Regex: regular expression is too large', since there is no command that uses regex.&amp;nbsp; I can run each subsearch without any issues.&amp;nbsp; I can't find anything in the _internal index.&amp;nbsp; Any thoughts on why this is happening or a better search?&lt;/P&gt;&lt;P&gt;TIA,&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2024 16:26:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-generates-this-error-Regex-regular-expression-is-too/m-p/700919#M237790</guid>
      <dc:creator>jwhughes58</dc:creator>
      <dc:date>2024-10-03T16:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: Search generates this error - Regex: regular expression is too large</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-generates-this-error-Regex-regular-expression-is-too/m-p/700926#M237792</link>
      <description>&lt;P&gt;Hello! There could be a regex defined on that sourcetype. Please run a btool on the backend for that sourcetype and figure out if you find any spaces or typos in that regex, then try to remove them.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;/opt/splunk/bin/splunk btool validate-regex --debug&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I would check out the search.log instead on whats happening there.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2024 17:00:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-generates-this-error-Regex-regular-expression-is-too/m-p/700926#M237792</guid>
      <dc:creator>sainag_splunk</dc:creator>
      <dc:date>2024-10-03T17:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: Search generates this error - Regex: regular expression is too large</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-generates-this-error-Regex-regular-expression-is-too/m-p/700928#M237794</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/187813"&gt;@sainag_splunk&lt;/a&gt;The command doesn't return anything.&amp;nbsp; Is there supposed to be an index or sourcetype in the command?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2024 17:16:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-generates-this-error-Regex-regular-expression-is-too/m-p/700928#M237794</guid>
      <dc:creator>jwhughes58</dc:creator>
      <dc:date>2024-10-03T17:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: Search generates this error - Regex: regular expression is too large</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-generates-this-error-Regex-regular-expression-is-too/m-p/700931#M237795</link>
      <description>&lt;P&gt;First Lets find the transforms.conf by running the below btool.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;opt/splunk/bin/splunk btool transforms list --debug | grep sourcetype_1&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Then you can try something like this on your transforms.conf from the above the app?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;splunk@idx1:/opt/splunk/bin$ /opt/splunk/bin/splunk btool validate-regex /opt/splunk/etc/apps/learned/local/transforms.conf --debug
			Bad regex value: '-zA-Z0-9_\.]+)=\"?([a-zA-Z0-9_\.:-]+)', of param: transforms.conf / [metrics_field_extraction] / REGEX; why: unmatched closing parenthesis&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2024 18:07:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-generates-this-error-Regex-regular-expression-is-too/m-p/700931#M237795</guid>
      <dc:creator>sainag_splunk</dc:creator>
      <dc:date>2024-10-03T18:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: Search generates this error - Regex: regular expression is too large</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-generates-this-error-Regex-regular-expression-is-too/m-p/700946#M237799</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/187813"&gt;@sainag_splunk&lt;/a&gt;I didn't get any results back from the searches.&amp;nbsp; This isn't surprising since the information is a csv file ingested by Splunk for reference.&amp;nbsp; We don't do any modifications of the data.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2024 21:45:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-generates-this-error-Regex-regular-expression-is-too/m-p/700946#M237799</guid>
      <dc:creator>jwhughes58</dc:creator>
      <dc:date>2024-10-03T21:45:15Z</dc:date>
    </item>
    <item>
      <title>Re: Search generates this error - Regex: regular expression is too large</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-generates-this-error-Regex-regular-expression-is-too/m-p/700947#M237800</link>
      <description>&lt;P&gt;The solution was&amp;nbsp; filtering what was returned.&amp;nbsp; The search went from 1139 users reporting up to 233.&amp;nbsp; The 233 didn't error.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2024 21:54:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-generates-this-error-Regex-regular-expression-is-too/m-p/700947#M237800</guid>
      <dc:creator>jwhughes58</dc:creator>
      <dc:date>2024-10-03T21:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: Search generates this error - Regex: regular expression is too large</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-generates-this-error-Regex-regular-expression-is-too/m-p/700948#M237801</link>
      <description>&lt;P&gt;Thanks for the assistance &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/187813"&gt;@sainag_splunk&lt;/a&gt; .&amp;nbsp; I didn't know about some of the btool options.&amp;nbsp; I normally do&lt;/P&gt;&lt;P&gt;btool --debug [inputs|props|transforms] list &amp;lt;stanza&amp;gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2024 21:56:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-generates-this-error-Regex-regular-expression-is-too/m-p/700948#M237801</guid>
      <dc:creator>jwhughes58</dc:creator>
      <dc:date>2024-10-03T21:56:49Z</dc:date>
    </item>
  </channel>
</rss>

