<?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: How do you show a row count in a dashboard panel? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-show-a-row-count-in-a-dashboard-panel/m-p/397890#M115458</link>
    <description>&lt;P&gt;That works awesome.  Thanks a lot&lt;/P&gt;

&lt;P&gt;-ed&lt;/P&gt;</description>
    <pubDate>Wed, 03 Oct 2018 16:26:44 GMT</pubDate>
    <dc:creator>edwardrose</dc:creator>
    <dc:date>2018-10-03T16:26:44Z</dc:date>
    <item>
      <title>How do you show a row count in a dashboard panel?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-show-a-row-count-in-a-dashboard-panel/m-p/397888#M115456</link>
      <description>&lt;P&gt;Hello All&lt;/P&gt;

&lt;P&gt;I am not sure how to show the row count in my dashboard.  &lt;/P&gt;

&lt;P&gt;I have one panel that searches a list of hosts for data and displays the indexes and source types.  I have a second panel that shows hosts that are not reporting into Splunk and I would like to have the count listed at the top of the panel. &lt;/P&gt;

&lt;P&gt;I did try to follow some instructions from others on answers.splunk.com, but the XML keeps giving me errors.  Can someone please help me get it right?&lt;/P&gt;

&lt;P&gt;thanks&lt;BR /&gt;
ed&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;DMZ Host Data&amp;lt;/label&amp;gt;
  &amp;lt;description&amp;gt;List of all DMZ Hosts and the data collected&amp;lt;/description&amp;gt;
  &amp;lt;fieldset autoRun="false"&amp;gt;
    &amp;lt;input type="dropdown" token="hostname"&amp;gt;
      &amp;lt;label&amp;gt;Host Name&amp;lt;/label&amp;gt;
      &amp;lt;fieldForLabel&amp;gt;hostname&amp;lt;/fieldForLabel&amp;gt;
      &amp;lt;fieldForValue&amp;gt;hostname&amp;lt;/fieldForValue&amp;gt;
      &amp;lt;search&amp;gt;
        &amp;lt;query&amp;gt;| inputlookup dmzhosts.csv 
| dedup hostname 
| search NOT hostname=*vip*
| sort hostname&amp;lt;/query&amp;gt;
        &amp;lt;earliest&amp;gt;-24h@h&amp;lt;/earliest&amp;gt;
        &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
      &amp;lt;/search&amp;gt;
      &amp;lt;initialValue&amp;gt;*&amp;lt;/initialValue&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;All Indexes associated with Host&amp;lt;/title&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;title&amp;gt;Indexes&amp;lt;/title&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=* host=$hostname$* |stats values(index) as index values(sourcetype) as sourcetype values(source) as source&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-7d@h&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;Missing DMZ Hosts&amp;lt;/title&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;title&amp;gt;List of hosts in the DMZ that are not reporting in total&amp;lt;/title&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;| inputlookup missing_dmzhosts.csv 
| search NOT host=*VIP*
| lookup dnslookup clienthost as host OUTPUT clientip as IP 
| join type=outer IP 
    [ inputlookup gennery_espinoza_assets.csv] 
| table host, IP, Director&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-24h@h&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 02 Oct 2018 19:28:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-show-a-row-count-in-a-dashboard-panel/m-p/397888#M115456</guid>
      <dc:creator>edwardrose</dc:creator>
      <dc:date>2018-10-02T19:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: How do you show a row count in a dashboard panel?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-show-a-row-count-in-a-dashboard-panel/m-p/397889#M115457</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;panel&amp;gt;
       &amp;lt;title&amp;gt;Missing DMZ Hosts&amp;lt;/title&amp;gt;
       &amp;lt;table&amp;gt;
         &amp;lt;title&amp;gt;List of hosts in the DMZ that are not reporting in total $count$&amp;lt;/title&amp;gt;
         &amp;lt;search&amp;gt;
           &amp;lt;query&amp;gt;| inputlookup missing_dmzhosts.csv 
 | search NOT host=*VIP*
 | lookup dnslookup clienthost as host OUTPUT clientip as IP 
 | join type=outer IP 
     [ inputlookup gennery_espinoza_assets.csv] 
 | table host, IP, Director&amp;lt;/query&amp;gt;
           &amp;lt;earliest&amp;gt;-24h@h&amp;lt;/earliest&amp;gt;
           &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
           &amp;lt;progress&amp;gt;
                &amp;lt;set token="count"&amp;gt;$job.resultCount$&amp;lt;/set&amp;gt;
          &amp;lt;/progress&amp;gt;
         &amp;lt;/search&amp;gt;
         &amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
         &amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;
       &amp;lt;/table&amp;gt;
     &amp;lt;/panel&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Here created token name-&lt;CODE&gt;count&lt;/CODE&gt; and saved query result count in it.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Oct 2018 04:48:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-show-a-row-count-in-a-dashboard-panel/m-p/397889#M115457</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2018-10-03T04:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: How do you show a row count in a dashboard panel?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-show-a-row-count-in-a-dashboard-panel/m-p/397890#M115458</link>
      <description>&lt;P&gt;That works awesome.  Thanks a lot&lt;/P&gt;

&lt;P&gt;-ed&lt;/P&gt;</description>
      <pubDate>Wed, 03 Oct 2018 16:26:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-show-a-row-count-in-a-dashboard-panel/m-p/397890#M115458</guid>
      <dc:creator>edwardrose</dc:creator>
      <dc:date>2018-10-03T16:26:44Z</dc:date>
    </item>
  </channel>
</rss>

