<?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 Conditional dashboards in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Conditional-dashboards/m-p/70650#M3795</link>
    <description>&lt;P&gt;Is there a way to trigger different displays depending on certain conditions?&lt;/P&gt;

&lt;P&gt;for example:&lt;BR /&gt;
if the count for this particular event exceeds 50. i wont want to have a list view. instead, a line chart would be better to show and track the behaviour trends or (event storm) within that hour.. while if its less that 50, perhaps a list is enough to observe if the anomalies. &lt;/P&gt;

&lt;P&gt;It doesnt seem possible but i would still like to throw this question out to more splunk savvy folks. &lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Fri, 08 Jun 2012 07:10:58 GMT</pubDate>
    <dc:creator>attgjh1</dc:creator>
    <dc:date>2012-06-08T07:10:58Z</dc:date>
    <item>
      <title>Conditional dashboards</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Conditional-dashboards/m-p/70650#M3795</link>
      <description>&lt;P&gt;Is there a way to trigger different displays depending on certain conditions?&lt;/P&gt;

&lt;P&gt;for example:&lt;BR /&gt;
if the count for this particular event exceeds 50. i wont want to have a list view. instead, a line chart would be better to show and track the behaviour trends or (event storm) within that hour.. while if its less that 50, perhaps a list is enough to observe if the anomalies. &lt;/P&gt;

&lt;P&gt;It doesnt seem possible but i would still like to throw this question out to more splunk savvy folks. &lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jun 2012 07:10:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Conditional-dashboards/m-p/70650#M3795</guid>
      <dc:creator>attgjh1</dc:creator>
      <dc:date>2012-06-08T07:10:58Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional dashboards</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Conditional-dashboards/m-p/70651#M3796</link>
      <description>&lt;P&gt;Sure.   Here are two ways.  Both require using the advanced XML. &lt;/P&gt;

&lt;P&gt;1) Using just the core UI modules , you can use a prototype module called "ConditionalSwitcher".  Make the first search return not a field called 'count' whose value is greater than or less than 50,  but a number of result rows that is greater or less than 50.  Downstream from that search put a JobProgressIndicator and the ConditionalSwitcher.&lt;BR /&gt;&lt;BR /&gt;
Then set the 'condition' param on the ConditionalSwitcher to "job.getResultCount()&amp;gt;50". &lt;BR /&gt;
What ConditionalSwitcher does, is if the condition evaluates to true, it shows the first sub-branch,  and if not it shows the second sub-branch.  &lt;/P&gt;

&lt;P&gt;Therefore, under the ConditionalSwitcher we'll have exactly two sub-branches of modules.  In the first branch you put your second-stage search and your flashchart. Then underneath the second subbranch you put your Paginator and SimpleResultsTable to render your list view. &lt;/P&gt;

&lt;P&gt;2) In Sideview Utils 2.0, you have a little more flexibility.  You can use the ResultsValueSetter and Switcher modules. &lt;/P&gt;

&lt;P&gt;You would have a Search module set up the initial search,   whose "count" field we want to check.  &lt;/P&gt;

&lt;P&gt;Then either in the main search, or in a postProcess,  I would create another field called "exceeds50" or something,  whose value (true/false) is set by a conditional eval statement that checks the count for whether it's greater than 50. &lt;/P&gt;

&lt;P&gt;Then ResultsValueSetter module is  used to pull the 'exceeds50' field from splunkd's search results, down to the UI and available to the downstream modules as a dollar token (to be precise, as $exceeds50$).   &lt;/P&gt;

&lt;P&gt;Then downstream from the ResultsValueSetter you have your Switcher module,  with it's "selectedGroup" param set to "$exceeds50$". &lt;/P&gt;

&lt;P&gt;Then much like with ConditionalSwitcher, you'd have two child branches underneath the Switcher module   one with group="true"  and one with group="false". &lt;/P&gt;

&lt;P&gt;In the group="true" branch, you'd have your Search, FlashChart, etc... Whereas in the group="false" branch,  you'd have your list view. &lt;/P&gt;

&lt;P&gt;The overall effect of this will be that when the Switcher module sees $exceeds50$ with a value of 'true', it shows the first branch,  and when $exceeds50$ is false it shows the other one.   The overall advantages of Switcher over ConditionalSwitcher don't really come to light in this somewhat simple use case, but there are several.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jun 2012 23:14:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Conditional-dashboards/m-p/70651#M3796</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2012-06-08T23:14:44Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional dashboards</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Conditional-dashboards/m-p/70652#M3797</link>
      <description>&lt;P&gt;Is their any example of using the option 2) using sideview, i actually have the same issue where i need to run 2 different search on the same panel based on the host selected from a drop down list, the reason why i need this conditional switching is that one of my search is saved search and i need to set it up as default when the page load. How can i do that technically?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Feb 2013 16:06:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Conditional-dashboards/m-p/70652#M3797</guid>
      <dc:creator>royimad</dc:creator>
      <dc:date>2013-02-26T16:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional dashboards</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Conditional-dashboards/m-p/70653#M3798</link>
      <description>&lt;P&gt;No, there isn't an example in Sideview Utils yet.  I can add one though.  If you look at the ResultsValueSetter docs and at the Switcher docs,  then re-read the above you can probably figure it out.  But I will try and add an example to Sideview Utils.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Feb 2013 18:41:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Conditional-dashboards/m-p/70653#M3798</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2013-02-26T18:41:28Z</dc:date>
    </item>
  </channel>
</rss>

