<?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 produced 50000 results, truncating to 50000 - Need help! in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Subsearch-produced-50000-results-truncating-to-50000-Need-help/m-p/468325#M131853</link>
    <description>&lt;P&gt;&lt;CODE&gt;timechart&lt;/CODE&gt; fails because &lt;CODE&gt;stats&lt;/CODE&gt; is not passing on the _time field.  See my corrected answer.&lt;/P&gt;</description>
    <pubDate>Tue, 07 Apr 2020 12:23:23 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2020-04-07T12:23:23Z</dc:date>
    <item>
      <title>Subsearch produced 50000 results, truncating to 50000 - Need help!</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Subsearch-produced-50000-results-truncating-to-50000-Need-help/m-p/468316#M131844</link>
      <description>&lt;P&gt;Hi, I am dealing with a situation here. Trying to join 2 queries to find out the peak hour volume in last 90 days on a particular page.&lt;BR /&gt;
The data needs to come from two queries because of the use of referer in the sub-search.&lt;/P&gt;

&lt;P&gt;limits.conf can't be modified because there are so many records and due to performance. &lt;/P&gt;

&lt;P&gt;So Is there any alternate way or if someone can help me with another alternate query, that will be greatly appreciated.&lt;/P&gt;

&lt;P&gt;index=test sourcetype="access_combined_wcookie" req_content="/checkout/yourdetails" status=200 &lt;BR /&gt;
| join uniqueId max=0 &lt;BR /&gt;
    [ search index=test sourcetype="access_combined_wcookie" req_content="/reviewbasket" referer="&lt;A href="https://www.site.com/content/site/homePage.html*%22" target="_blank"&gt;https://www.site.com/content/site/homePage.html*"&lt;/A&gt;] &lt;BR /&gt;
| timechart span=1h count&lt;BR /&gt;
| sort - count&lt;/P&gt;

&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/129090"&gt;@manjunathmeti&lt;/a&gt; &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/15147"&gt;@somesoni2&lt;/a&gt; &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/184221"&gt;@to4kawa&lt;/a&gt; &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/1406"&gt;@woodcock&lt;/a&gt;  - Will you guys be able to help as you helped me previously?&lt;/P&gt;

&lt;P&gt;Thanks very much in advance&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:54:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Subsearch-produced-50000-results-truncating-to-50000-Need-help/m-p/468316#M131844</guid>
      <dc:creator>Shashank_87</dc:creator>
      <dc:date>2020-09-30T04:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: Subsearch produced 50000 results, truncating to 50000 - Need help!</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Subsearch-produced-50000-results-truncating-to-50000-Need-help/m-p/468317#M131845</link>
      <description>&lt;P&gt;Try this as a start.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=test sourcetype="access_combined_wcookie" ((req_content="/checkout/yourdetails" status=200) 
  OR (req_content="/reviewbasket" referer="https://www.site.com/content/site/homePage.html*"))
| stats values(*) as * by _time, uniqueId
| timechart span=1h count
| sort - count
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 03 Apr 2020 17:13:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Subsearch-produced-50000-results-truncating-to-50000-Need-help/m-p/468317#M131845</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-04-03T17:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: Subsearch produced 50000 results, truncating to 50000 - Need help!</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Subsearch-produced-50000-results-truncating-to-50000-Need-help/m-p/468318#M131846</link>
      <description>&lt;P&gt;@richgalloway  Thanks for the response but it doesn't give anything. When i run, it says no result found.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Apr 2020 17:37:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Subsearch-produced-50000-results-truncating-to-50000-Need-help/m-p/468318#M131846</guid>
      <dc:creator>Shashank_87</dc:creator>
      <dc:date>2020-04-03T17:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: Subsearch produced 50000 results, truncating to 50000 - Need help!</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Subsearch-produced-50000-results-truncating-to-50000-Need-help/m-p/468319#M131847</link>
      <description>&lt;P&gt;Do you get results with &lt;CODE&gt;index=test sourcetype="access_combined_wcookie" ((req_content="/checkout/yourdetails" status=200) &lt;BR /&gt;
   OR (req_content="/reviewbasket" referer="https://www.site.com/content/site/homePage.html*"))&lt;/CODE&gt;?  If so, do they all have a uniqueId field?  If not, that may be the problem.&lt;BR /&gt;
If you still don't get any results then you may have to revert to using &lt;CODE&gt;join&lt;/CODE&gt;, but will have to change the subsearch to return fewer results. &lt;/P&gt;</description>
      <pubDate>Fri, 03 Apr 2020 18:35:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Subsearch-produced-50000-results-truncating-to-50000-Need-help/m-p/468319#M131847</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-04-03T18:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: Subsearch produced 50000 results, truncating to 50000 - Need help!</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Subsearch-produced-50000-results-truncating-to-50000-Need-help/m-p/468320#M131848</link>
      <description>&lt;P&gt;One way is to 1st run subsearch to lookup and yeh utilize it in a second one. But I prefer using stats as richgalloway already propose. &lt;/P&gt;

&lt;P&gt;R. Ismo&lt;/P&gt;</description>
      <pubDate>Sat, 04 Apr 2020 21:14:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Subsearch-produced-50000-results-truncating-to-50000-Need-help/m-p/468320#M131848</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2020-04-04T21:14:05Z</dc:date>
    </item>
    <item>
      <title>Re: Subsearch produced 50000 results, truncating to 50000 - Need help!</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Subsearch-produced-50000-results-truncating-to-50000-Need-help/m-p/468321#M131849</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt; &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/214410"&gt;@isoutamo&lt;/a&gt; Hi, If i just use Stats like below it is giving the result but then when i use the following timechart it doesn't give anything.&lt;/P&gt;

&lt;P&gt;index=test sourcetype="access_combined_wcookie" ((req_content="/checkout/yourdetails" status=200) &lt;BR /&gt;
   OR (req_content="/reviewbasket" referer="&lt;A href="https://www.site.com/content/site/homePage.html*%22)" target="_blank"&gt;https://www.site.com/content/site/homePage.html*")&lt;/A&gt;)&lt;BR /&gt;
 | stats values(*) as * by uniqueId&lt;/P&gt;

&lt;P&gt;Can you please help.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:54:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Subsearch-produced-50000-results-truncating-to-50000-Need-help/m-p/468321#M131849</guid>
      <dc:creator>Shashank_87</dc:creator>
      <dc:date>2020-09-30T04:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: Subsearch produced 50000 results, truncating to 50000 - Need help!</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Subsearch-produced-50000-results-truncating-to-50000-Need-help/m-p/468322#M131850</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;index=test sourcetype="access_combined_wcookie" ((req_content="/checkout/yourdetails" status=200) 
OR (req_content="/reviewbasket" referer="https://www.site.com/content/site/homePage.html*"))
| stats min(_time) as _time dc(req_content) as flag by uniqueId
| where flag &amp;gt; 1
| timechart span=1h count
| sort - count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;CODE&gt;timechart&lt;/CODE&gt; needs  &lt;EM&gt;_time&lt;/EM&gt; and &lt;CODE&gt;stats&lt;/CODE&gt; with &lt;CODE&gt;*&lt;/CODE&gt; does not works internal fields.&lt;/P&gt;</description>
      <pubDate>Sun, 05 Apr 2020 16:33:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Subsearch-produced-50000-results-truncating-to-50000-Need-help/m-p/468322#M131850</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-04-05T16:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: Subsearch produced 50000 results, truncating to 50000 - Need help!</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Subsearch-produced-50000-results-truncating-to-50000-Need-help/m-p/468323#M131851</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/184221"&gt;@to4kawa&lt;/a&gt; Hi, Thank you very much for your response. I am somewhat close to the answer but actually what i need is Peak hour volume on the requested content. For example -&lt;BR /&gt;
Peak hour volume of "/checkout/yourdetails" and like that there are couple of other scenarios.&lt;BR /&gt;
What your is doing is counting all of them as one unit using flag so the result won't be accurate. I don't think this will get the total hits on that particular .&lt;/P&gt;

&lt;P&gt;Like if i do something like this -&lt;BR /&gt;
| stats min(_time) as _time list(req_content) as list dc(req_content) as flag by uniqueId &lt;BR /&gt;
under the list column i could see that page is called 3 times but that will be counted as one with above query&lt;/P&gt;

&lt;P&gt;Can you help?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:54:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Subsearch-produced-50000-results-truncating-to-50000-Need-help/m-p/468323#M131851</guid>
      <dc:creator>Shashank_87</dc:creator>
      <dc:date>2020-09-30T04:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: Subsearch produced 50000 results, truncating to 50000 - Need help!</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Subsearch-produced-50000-results-truncating-to-50000-Need-help/m-p/468324#M131852</link>
      <description>&lt;P&gt;my query aims to optimize your query.&lt;BR /&gt;
&lt;CODE&gt;actually what i need is Peak hour volume on the requested content.&lt;/CODE&gt;&lt;BR /&gt;
your query is not for this.&lt;BR /&gt;
I don't know your log. I can only modify your query.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Apr 2020 21:28:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Subsearch-produced-50000-results-truncating-to-50000-Need-help/m-p/468324#M131852</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-04-06T21:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: Subsearch produced 50000 results, truncating to 50000 - Need help!</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Subsearch-produced-50000-results-truncating-to-50000-Need-help/m-p/468325#M131853</link>
      <description>&lt;P&gt;&lt;CODE&gt;timechart&lt;/CODE&gt; fails because &lt;CODE&gt;stats&lt;/CODE&gt; is not passing on the _time field.  See my corrected answer.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Apr 2020 12:23:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Subsearch-produced-50000-results-truncating-to-50000-Need-help/m-p/468325#M131853</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-04-07T12:23:23Z</dc:date>
    </item>
  </channel>
</rss>

