<?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: subsearch limit in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/subsearch-limit/m-p/252848#M75666</link>
    <description>&lt;P&gt;How about something like this (not tested)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(index-A OR index=B) | dedup IM_ID index
| eval hash=md5(ifnull(ASSIGNEE,"Empty").ifnull(ID,"Empty")
| streamstats window=1 list(eval(if(index="A", "Y", "X"))) as TYPE_OF_REPORT by index
| table ID ASSIGNEE HASH TYPE_OF_REPORT
| stats values(*) as * dc(TYPE_OF_REPORT) as t by hash
| where t=1 and match(TYPE_OF_REPORT, "Y")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 30 Nov 2015 17:47:07 GMT</pubDate>
    <dc:creator>sundareshr</dc:creator>
    <dc:date>2015-11-30T17:47:07Z</dc:date>
    <item>
      <title>subsearch limit</title>
      <link>https://community.splunk.com/t5/Splunk-Search/subsearch-limit/m-p/252847#M75665</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;How can i overcome subsearch limitation. I do not want to change limit in conf files. I have read that this can cause instability.&lt;/P&gt;

&lt;P&gt;In my below search I want to find differences between two data sets. My subsearch is returing just 50.000 rows that is why search not working properly&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=A  earliest=-45d@| dedup IM_ID
|eval TYPE_OF_REPORT="Y"
|eval HASH=md5(ifnull(ASSIGNEE,"Empty").ifnull(ID,"Empty")
| table ID ASSIGNEE HASH  TYPE_OF_REPORT
|append [search index = B|eval TYPE_OF_REPORT="X"| table  ID ASSIGNEE HASH  TYPE_OF_REPORT] |stats values(*) AS * dc(TYPE_OF_REPORT) as t by HASH |where t=1 and match(TYPE_OF_REPORT,"Y").
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks &lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2015 16:46:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/subsearch-limit/m-p/252847#M75665</guid>
      <dc:creator>akawacz</dc:creator>
      <dc:date>2015-11-30T16:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: subsearch limit</title>
      <link>https://community.splunk.com/t5/Splunk-Search/subsearch-limit/m-p/252848#M75666</link>
      <description>&lt;P&gt;How about something like this (not tested)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(index-A OR index=B) | dedup IM_ID index
| eval hash=md5(ifnull(ASSIGNEE,"Empty").ifnull(ID,"Empty")
| streamstats window=1 list(eval(if(index="A", "Y", "X"))) as TYPE_OF_REPORT by index
| table ID ASSIGNEE HASH TYPE_OF_REPORT
| stats values(*) as * dc(TYPE_OF_REPORT) as t by hash
| where t=1 and match(TYPE_OF_REPORT, "Y")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 30 Nov 2015 17:47:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/subsearch-limit/m-p/252848#M75666</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2015-11-30T17:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: subsearch limit</title>
      <link>https://community.splunk.com/t5/Splunk-Search/subsearch-limit/m-p/252849#M75667</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;

&lt;P&gt;You gave me idea with combaning indexs by OR.&lt;/P&gt;

&lt;P&gt;I have used eval with If instead of streamstats. &lt;/P&gt;

&lt;P&gt;eval TYPE_OF_REPORT=if(index=="A","X","Y")&lt;/P&gt;

&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:01:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/subsearch-limit/m-p/252849#M75667</guid>
      <dc:creator>akawacz</dc:creator>
      <dc:date>2020-09-29T08:01:26Z</dc:date>
    </item>
  </channel>
</rss>

