<?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: Query for Results count making performance worse in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Query-for-Results-count-making-performance-worse/m-p/236954#M188595</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;

&lt;P&gt;You can use this token: $job.resultCount$: Number of results a search job returned.&lt;/P&gt;

&lt;P&gt;That contains the value you need. So from the main search (only one)  you get both things. Then you can use the token to display it the panel title for example&lt;/P&gt;

&lt;P&gt;Review this:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.4.2/Viz/tokens"&gt;http://docs.splunk.com/Documentation/Splunk/6.4.2/Viz/tokens&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Regards&lt;/P&gt;</description>
    <pubDate>Wed, 24 Aug 2016 08:13:26 GMT</pubDate>
    <dc:creator>gfuente</dc:creator>
    <dc:date>2016-08-24T08:13:26Z</dc:date>
    <item>
      <title>Query for Results count making performance worse</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Query-for-Results-count-making-performance-worse/m-p/236953#M188594</link>
      <description>&lt;P&gt;In the view, we have one table. We want to know the total results found for that particular search. So we used one more search on button click with the same query to get the count of the results using stats command and displaying it in a label using html javascript. Since 2 queries are running on the same time on click of search button, the performance is worse.&lt;BR /&gt;
 Is there any way to get the count of the results without using any queries?&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2016 07:55:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Query-for-Results-count-making-performance-worse/m-p/236953#M188594</guid>
      <dc:creator>pasokkum</dc:creator>
      <dc:date>2016-08-24T07:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: Query for Results count making performance worse</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Query-for-Results-count-making-performance-worse/m-p/236954#M188595</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;

&lt;P&gt;You can use this token: $job.resultCount$: Number of results a search job returned.&lt;/P&gt;

&lt;P&gt;That contains the value you need. So from the main search (only one)  you get both things. Then you can use the token to display it the panel title for example&lt;/P&gt;

&lt;P&gt;Review this:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.4.2/Viz/tokens"&gt;http://docs.splunk.com/Documentation/Splunk/6.4.2/Viz/tokens&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2016 08:13:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Query-for-Results-count-making-performance-worse/m-p/236954#M188595</guid>
      <dc:creator>gfuente</dc:creator>
      <dc:date>2016-08-24T08:13:26Z</dc:date>
    </item>
    <item>
      <title>Re: Query for Results count making performance worse</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Query-for-Results-count-making-performance-worse/m-p/236955#M188596</link>
      <description>&lt;P&gt;Thanks gfuente.. We are using html code.. How to use resultCount parameter in html?&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2016 09:38:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Query-for-Results-count-making-performance-worse/m-p/236955#M188596</guid>
      <dc:creator>pasokkum</dc:creator>
      <dc:date>2016-08-24T09:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: Query for Results count making performance worse</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Query-for-Results-count-making-performance-worse/m-p/236956#M188597</link>
      <description>&lt;P&gt;Thanks!! It helped..&lt;/P&gt;

&lt;P&gt;search1.on('search:done', function(properties){&lt;BR /&gt;
   var resultscount=properties.content.resultCount;&lt;BR /&gt;
 document.getElementById('count').innerHTML=resultscount;&lt;BR /&gt;
  });&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2016 10:42:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Query-for-Results-count-making-performance-worse/m-p/236956#M188597</guid>
      <dc:creator>pasokkum</dc:creator>
      <dc:date>2016-08-24T10:42:12Z</dc:date>
    </item>
  </channel>
</rss>

