<?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: Interactive dashboard stats count in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Interactive-dashboard-stats-count/m-p/410499#M118445</link>
    <description>&lt;P&gt;Hello @jsalsbur,&lt;/P&gt;

&lt;P&gt;It is an idea of drill down and I usually use two kinds of drill down in this case.&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;In page drilldown (My personally favorite)&lt;/LI&gt;
&lt;LI&gt;Drill down to search&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;For Drill-down to search page you can do that from UI.&lt;/P&gt;

&lt;P&gt;In-page drilldown is where the user can click on single-view and right bottom of that user can see all values. Here is how you can do it.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;search id="my_search"&amp;gt;
  &amp;lt;query&amp;gt;index=* sourcetype=* sensor=* OR sensor=* OR sensor=* OR |dedup sensor&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;row&amp;gt;
  &amp;lt;panel&amp;gt;
    &amp;lt;single&amp;gt;
      &amp;lt;search base="my_search"&amp;gt;
        &amp;lt;query&amp;gt;stats count&amp;lt;/query&amp;gt;
      &amp;lt;/search&amp;gt;
    &amp;lt;/single&amp;gt;
    &amp;lt;drilldown&amp;gt;
      &amp;lt;set token="tkn_open_sensor_values"&amp;gt;1&amp;lt;/set&amp;gt;
    &amp;lt;/drilldown&amp;gt;
  &amp;lt;/panel&amp;gt;
&amp;lt;/row&amp;gt;
&amp;lt;row depends="$tkn_open_sensor_values$"&amp;gt;
  &amp;lt;panel&amp;gt;
    &amp;lt;table&amp;gt;
      &amp;lt;search base="my_search"&amp;gt;
        &amp;lt;query&amp;gt;table sensor&amp;lt;/query&amp;gt;
      &amp;lt;/search&amp;gt;
    &amp;lt;/single&amp;gt;
  &amp;lt;/panel&amp;gt;
&amp;lt;/row&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Notice here we have two panels but second table only opens when user clicks on the single-view panel. Also to notice here that your query will run only once to show both the panels.&lt;/P&gt;

&lt;P&gt;Hope this helps!!!&lt;/P&gt;</description>
    <pubDate>Sat, 08 Jun 2019 05:11:31 GMT</pubDate>
    <dc:creator>VatsalJagani</dc:creator>
    <dc:date>2019-06-08T05:11:31Z</dc:date>
    <item>
      <title>Interactive dashboard stats count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Interactive-dashboard-stats-count/m-p/410497#M118443</link>
      <description>&lt;P&gt;Good afternoon&lt;BR /&gt;
I have a stats count query leading to a single number dashboard. I was wondering if it is possible to make that dashboard interactive to click on then showing another query to show the different sites that is creating the single number ?&lt;/P&gt;

&lt;P&gt;so I use &lt;CODE&gt;index=* sourcetype=* sensor=* OR sensor=* OR sensor=* OR |dedup sensor |stats count&lt;/CODE&gt; so my number would be 3&lt;BR /&gt;
so if that number were to drop to two because a site went down could I click on that number dashboard and bring up a query to check on all three sites? &lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2019 17:13:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Interactive-dashboard-stats-count/m-p/410497#M118443</guid>
      <dc:creator>jsalsbur</dc:creator>
      <dc:date>2019-06-07T17:13:59Z</dc:date>
    </item>
    <item>
      <title>Re: Interactive dashboard stats count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Interactive-dashboard-stats-count/m-p/410498#M118444</link>
      <description>&lt;P&gt;@jsalsbur you would need to post your query again using the &lt;CODE&gt;code button 101010 (or shortcut Ctrl+K)&lt;/CODE&gt; so that special characters in your SPL do not escape.&lt;/P&gt;

&lt;P&gt;Having said this, if you are using Single Value visualization or Table (Or any other Splunk's built in Visualization) to show the count you can create the Drilldown to execute another search in a different panel (and display the same) using a token. Refer to Splunk Documentation: &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Viz/ContextualDrilldown"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Viz/ContextualDrilldown&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;You can also get &lt;A href="https://splunkbase.splunk.com/app/1603/"&gt;Splunk Dashboard Examples&lt;/A&gt; app from Splunkbase, which has several examples of creating Drilldown in Splunk.&lt;/P&gt;

&lt;P&gt;For the community to assist you better please add more details as to what is your current visualization showing count? Which field will identify site? and How would you identify a site which is down?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2019 18:26:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Interactive-dashboard-stats-count/m-p/410498#M118444</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2019-06-07T18:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: Interactive dashboard stats count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Interactive-dashboard-stats-count/m-p/410499#M118445</link>
      <description>&lt;P&gt;Hello @jsalsbur,&lt;/P&gt;

&lt;P&gt;It is an idea of drill down and I usually use two kinds of drill down in this case.&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;In page drilldown (My personally favorite)&lt;/LI&gt;
&lt;LI&gt;Drill down to search&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;For Drill-down to search page you can do that from UI.&lt;/P&gt;

&lt;P&gt;In-page drilldown is where the user can click on single-view and right bottom of that user can see all values. Here is how you can do it.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;search id="my_search"&amp;gt;
  &amp;lt;query&amp;gt;index=* sourcetype=* sensor=* OR sensor=* OR sensor=* OR |dedup sensor&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;row&amp;gt;
  &amp;lt;panel&amp;gt;
    &amp;lt;single&amp;gt;
      &amp;lt;search base="my_search"&amp;gt;
        &amp;lt;query&amp;gt;stats count&amp;lt;/query&amp;gt;
      &amp;lt;/search&amp;gt;
    &amp;lt;/single&amp;gt;
    &amp;lt;drilldown&amp;gt;
      &amp;lt;set token="tkn_open_sensor_values"&amp;gt;1&amp;lt;/set&amp;gt;
    &amp;lt;/drilldown&amp;gt;
  &amp;lt;/panel&amp;gt;
&amp;lt;/row&amp;gt;
&amp;lt;row depends="$tkn_open_sensor_values$"&amp;gt;
  &amp;lt;panel&amp;gt;
    &amp;lt;table&amp;gt;
      &amp;lt;search base="my_search"&amp;gt;
        &amp;lt;query&amp;gt;table sensor&amp;lt;/query&amp;gt;
      &amp;lt;/search&amp;gt;
    &amp;lt;/single&amp;gt;
  &amp;lt;/panel&amp;gt;
&amp;lt;/row&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Notice here we have two panels but second table only opens when user clicks on the single-view panel. Also to notice here that your query will run only once to show both the panels.&lt;/P&gt;

&lt;P&gt;Hope this helps!!!&lt;/P&gt;</description>
      <pubDate>Sat, 08 Jun 2019 05:11:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Interactive-dashboard-stats-count/m-p/410499#M118445</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2019-06-08T05:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: Interactive dashboard stats count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Interactive-dashboard-stats-count/m-p/410500#M118446</link>
      <description>&lt;P&gt;Thank you this helped me accomplish it!!&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2019 14:22:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Interactive-dashboard-stats-count/m-p/410500#M118446</guid>
      <dc:creator>jsalsbur</dc:creator>
      <dc:date>2019-06-11T14:22:45Z</dc:date>
    </item>
  </channel>
</rss>

