<?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 Pass Count from Multiple Panels to a Single Value Panel in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Pass-Count-from-Multiple-Panels-to-a-Single-Value-Panel/m-p/442325#M29164</link>
    <description>&lt;P&gt;I'm trying to create a single value panel that shows the total count of results in panels on the dashboard.  So say if Panel number 3 , 5 and 8 on the dashboard are showing results the single value panel at the top would say 3.&lt;/P&gt;

&lt;P&gt;Thanks for any help!&lt;/P&gt;</description>
    <pubDate>Fri, 09 Aug 2019 18:26:35 GMT</pubDate>
    <dc:creator>mcg_connor</dc:creator>
    <dc:date>2019-08-09T18:26:35Z</dc:date>
    <item>
      <title>Pass Count from Multiple Panels to a Single Value Panel</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Pass-Count-from-Multiple-Panels-to-a-Single-Value-Panel/m-p/442325#M29164</link>
      <description>&lt;P&gt;I'm trying to create a single value panel that shows the total count of results in panels on the dashboard.  So say if Panel number 3 , 5 and 8 on the dashboard are showing results the single value panel at the top would say 3.&lt;/P&gt;

&lt;P&gt;Thanks for any help!&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 18:26:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Pass-Count-from-Multiple-Panels-to-a-Single-Value-Panel/m-p/442325#M29164</guid>
      <dc:creator>mcg_connor</dc:creator>
      <dc:date>2019-08-09T18:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: Pass Count from Multiple Panels to a Single Value Panel</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Pass-Count-from-Multiple-Panels-to-a-Single-Value-Panel/m-p/442326#M29165</link>
      <description>&lt;P&gt;@mcg_connor ,&lt;/P&gt;

&lt;P&gt;You may try with search event tokens.&lt;/P&gt;

&lt;P&gt;Here is a run anywhere example&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;Check each panels result count and if it's greater than 0 set the respective token to 1 , otherwise 0&lt;/LI&gt;
&lt;LI&gt;Run a dummy search and add(+) these token values for the single value panel&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;In case you want to show the total count of the results, you may set the token to $job.resultCount$&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;dashboard&amp;gt;
  &amp;lt;label&amp;gt;Single Panal Values&amp;lt;/label&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=_internal |stats count by sourcetype&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-15m&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
          &amp;lt;done&amp;gt;
            &amp;lt;condition match="'job.resultCount' &amp;gt; 0"&amp;gt;
              &amp;lt;set token="first_panel_count"&amp;gt;1&amp;lt;/set&amp;gt;
            &amp;lt;/condition&amp;gt;
            &amp;lt;condition&amp;gt;
              &amp;lt;set token="first_panel_count"&amp;gt;0&amp;lt;/set&amp;gt;
            &amp;lt;/condition&amp;gt;
          &amp;lt;/done&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=_audit |stats count by sourcetype&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-15m&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
          &amp;lt;done&amp;gt;
            &amp;lt;condition match="'job.resultCount' &amp;gt; 0"&amp;gt;
              &amp;lt;set token="second_panel_count"&amp;gt;1&amp;lt;/set&amp;gt;
            &amp;lt;/condition&amp;gt;
            &amp;lt;condition&amp;gt;
              &amp;lt;set token="second_panel_count"&amp;gt;0&amp;lt;/set&amp;gt;
            &amp;lt;/condition&amp;gt;
          &amp;lt;/done&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=_introspection |stats count by sourcetype&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-15m&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
          &amp;lt;done&amp;gt;
            &amp;lt;condition match="'job.resultCount' &amp;gt; 0"&amp;gt;
              &amp;lt;set token="third_panel_count"&amp;gt;1&amp;lt;/set&amp;gt;
            &amp;lt;/condition&amp;gt;
            &amp;lt;condition&amp;gt;
              &amp;lt;set token="third_panel_count"&amp;gt;0&amp;lt;/set&amp;gt;
            &amp;lt;/condition&amp;gt;
          &amp;lt;/done&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;none&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;single&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;|makeresults|eval result=$first_panel_count$+$second_panel_count$+$third_panel_count$&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-15m&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;/single&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/dashboard&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Sat, 10 Aug 2019 13:15:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Pass-Count-from-Multiple-Panels-to-a-Single-Value-Panel/m-p/442326#M29165</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2019-08-10T13:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: Pass Count from Multiple Panels to a Single Value Panel</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Pass-Count-from-Multiple-Panels-to-a-Single-Value-Panel/m-p/442327#M29166</link>
      <description>&lt;P&gt;Set a default value for &lt;CODE&gt;panel_count&lt;/CODE&gt; of &lt;CODE&gt;0&lt;/CODE&gt;&lt;BR /&gt;
then put a &lt;CODE&gt;done&lt;/CODE&gt; clause in each panel with this in it &lt;CODE&gt;&amp;lt;eval token="panel_count"&amp;gt;$panel_count$ + 1&amp;lt;/eval&amp;gt;&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2019 17:40:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Pass-Count-from-Multiple-Panels-to-a-Single-Value-Panel/m-p/442327#M29166</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-08-16T17:40:43Z</dc:date>
    </item>
  </channel>
</rss>

