<?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 Is there an alternative to subsearch or a way to raise the results limit? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Is-there-an-alternative-to-subsearch-or-a-way-to-raise-the/m-p/121586#M32719</link>
    <description>&lt;P&gt;So I finally got my query to work only to find out that subsearch has a limit to 10,000 results! Is there a way to raise this limit or an accepted alternative method to getting around a limit? I'm dealing with hundreds of thousands of results.&lt;/P&gt;

&lt;P&gt;Example of what my query looks like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=*ind* source=src1.log [search index=*ind* source=src2.log | table FIELD] | join usetime=true earlier=false FIELD [search index=*ind* source=src3.log] | table FIELD
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I've tried to filter out results with more tags, but I can't get anywhere near 10,000 and this query works perfectly aside from that (minus the time it takes for it to parse...).&lt;/P&gt;

&lt;P&gt;Any help would be greatly appreciated!!&lt;/P&gt;</description>
    <pubDate>Wed, 28 Jan 2015 22:47:48 GMT</pubDate>
    <dc:creator>rlough</dc:creator>
    <dc:date>2015-01-28T22:47:48Z</dc:date>
    <item>
      <title>Is there an alternative to subsearch or a way to raise the results limit?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-an-alternative-to-subsearch-or-a-way-to-raise-the/m-p/121586#M32719</link>
      <description>&lt;P&gt;So I finally got my query to work only to find out that subsearch has a limit to 10,000 results! Is there a way to raise this limit or an accepted alternative method to getting around a limit? I'm dealing with hundreds of thousands of results.&lt;/P&gt;

&lt;P&gt;Example of what my query looks like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=*ind* source=src1.log [search index=*ind* source=src2.log | table FIELD] | join usetime=true earlier=false FIELD [search index=*ind* source=src3.log] | table FIELD
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I've tried to filter out results with more tags, but I can't get anywhere near 10,000 and this query works perfectly aside from that (minus the time it takes for it to parse...).&lt;/P&gt;

&lt;P&gt;Any help would be greatly appreciated!!&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jan 2015 22:47:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-an-alternative-to-subsearch-or-a-way-to-raise-the/m-p/121586#M32719</guid>
      <dc:creator>rlough</dc:creator>
      <dc:date>2015-01-28T22:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an alternative to subsearch or a way to raise the results limit?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-an-alternative-to-subsearch-or-a-way-to-raise-the/m-p/121587#M32720</link>
      <description>&lt;P&gt;Are you looking for &lt;CODE&gt;FIELD&lt;/CODE&gt; values present in all three sources? Basically do this &lt;A href="http://answers.splunk.com/answers/211727/how-to-edit-my-eventstats-search-to-keep-only-non.html"&gt;http://answers.splunk.com/answers/211727/how-to-edit-my-eventstats-search-to-keep-only-non.html&lt;/A&gt; or this &lt;A href="http://answers.splunk.com/answers/211689/how-can-i-filter-out-unique-values-from-a-shared-f-1.html"&gt;http://answers.splunk.com/answers/211689/how-can-i-filter-out-unique-values-from-a-shared-f-1.html&lt;/A&gt; only with three sources?&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jan 2015 00:05:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-an-alternative-to-subsearch-or-a-way-to-raise-the/m-p/121587#M32720</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2015-01-29T00:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an alternative to subsearch or a way to raise the results limit?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-an-alternative-to-subsearch-or-a-way-to-raise-the/m-p/121588#M32721</link>
      <description>&lt;P&gt;Yes, there are often ways to get around using subsearches. I try to avoid subsearches both because of the limitations and because they are relatively slow. I also find that people with a database background (like me) tend to jump to subsearches when they really aren't necessary in Splunk. For example, your search can be done, I think, with this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=ind (source=src1.log OR source=src2.log or source=src3.log)
| eventstats count(eval(source=="src2.log")) as src2Count   count(eval(source=="src1.log")) as src1Count by FIELD
| where src2Count &amp;gt; 0 AND src1Count &amp;gt; 0 AND source!=src2.log
| eval src1_Time = if(source=="src1.log",_time,null())
| eval src3_Time = if(source=="src3.log",_time,null())
| stats latest(src1_time) as latest_src1  earliest(src3_time) as earliest_src3  
        count(isnotnull(src1_Time)) as src1Count   count(isnotnull(src3_Time)) as src3Count by FIELD
| where latest_src1 &amp;lt; earliest_src3 AND src1Count &amp;gt; 0 AND src3Count &amp;gt; 0
| table FIELD
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;However, I think there might be an even faster - and easier way - if you described what you are trying to do!&lt;/P&gt;

&lt;P&gt;HTH&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jan 2015 01:44:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-an-alternative-to-subsearch-or-a-way-to-raise-the/m-p/121588#M32721</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2015-01-29T01:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an alternative to subsearch or a way to raise the results limit?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-an-alternative-to-subsearch-or-a-way-to-raise-the/m-p/121589#M32722</link>
      <description>&lt;P&gt;Wow, that runs &lt;STRONG&gt;much&lt;/STRONG&gt; faster! Thank you for pointing me in the right direction!&lt;/P&gt;

&lt;P&gt;I hate that I have to use three sources, but it seems to be the only way. Thank you so much for the help though!&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jan 2015 19:28:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-an-alternative-to-subsearch-or-a-way-to-raise-the/m-p/121589#M32722</guid>
      <dc:creator>rlough</dc:creator>
      <dc:date>2015-01-29T19:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an alternative to subsearch or a way to raise the results limit?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-an-alternative-to-subsearch-or-a-way-to-raise-the/m-p/121590#M32723</link>
      <description>&lt;P&gt;in addition to @lguinn 's answer, if you want to learn more on this topic, check out this answer &lt;A href="http://answers.splunk.com/answers/129424/how-to-compare-fields-over-multiple-sourcetypes-without-join-append-or-use-of-subsearches.html"&gt;http://answers.splunk.com/answers/129424/how-to-compare-fields-over-multiple-sourcetypes-without-join-append-or-use-of-subsearches.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jan 2015 20:39:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-an-alternative-to-subsearch-or-a-way-to-raise-the/m-p/121590#M32723</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2015-01-29T20:39:15Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an alternative to subsearch or a way to raise the results limit?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-an-alternative-to-subsearch-or-a-way-to-raise-the/m-p/121591#M32724</link>
      <description>&lt;P&gt;Wow! Thank you so much, this has completely changed how I'll query in the future. My query now works &lt;STRONG&gt;perfectly&lt;/STRONG&gt; and super speedy! (Seriously, with subsearches it was taking 10 minutes to run, now it takes less than one.)&lt;BR /&gt;
I'll now handle subsearches like I would handle a plague haha.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jan 2015 21:52:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-an-alternative-to-subsearch-or-a-way-to-raise-the/m-p/121591#M32724</guid>
      <dc:creator>rlough</dc:creator>
      <dc:date>2015-01-29T21:52:56Z</dc:date>
    </item>
  </channel>
</rss>

