<?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/Panel should be changed based on token passage value in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/query-Panel-should-be-changed-based-on-token-passage-value/m-p/583112#M47771</link>
    <description>&lt;P&gt;Can you give me some examples pls&lt;/P&gt;</description>
    <pubDate>Mon, 31 Jan 2022 16:44:41 GMT</pubDate>
    <dc:creator>sahana</dc:creator>
    <dc:date>2022-01-31T16:44:41Z</dc:date>
    <item>
      <title>query/Panel should be changed based on token passage value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/query-Panel-should-be-changed-based-on-token-passage-value/m-p/583081#M47766</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have requirement like the drilldown panel query should be changed based on the token value passed from the parent panel&lt;/P&gt;&lt;P&gt;right now the condition is I have a parent panel token which may pass either SUCCESS or FAILURE as value&lt;/P&gt;&lt;P&gt;If it FAILURE the drilldown panel should execute different query and for SUCCESS it should execute different one&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jan 2022 13:19:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/query-Panel-should-be-changed-based-on-token-passage-value/m-p/583081#M47766</guid>
      <dc:creator>sahana</dc:creator>
      <dc:date>2022-01-31T13:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: query/Panel should be changed based on token passage value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/query-Panel-should-be-changed-based-on-token-passage-value/m-p/583086#M47767</link>
      <description>&lt;P&gt;There are a couple of ways to do this:&lt;/P&gt;&lt;P&gt;You could use the drilldown to hide or display whichever panel represents the choice made i.e. you have two drilldown panel and only show one of them. This is done with the depends attribute on the panel&lt;/P&gt;&lt;P&gt;The other way is to use the drilldown to set tokens which are used in the search for the drilldown panel&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jan 2022 13:30:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/query-Panel-should-be-changed-based-on-token-passage-value/m-p/583086#M47767</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-01-31T13:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: query/Panel should be changed based on token passage value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/query-Panel-should-be-changed-based-on-token-passage-value/m-p/583088#M47768</link>
      <description>&lt;P&gt;Hi Sahana,&lt;/P&gt;&lt;P&gt;You can set a token to the complete search you what to use on either case.&lt;BR /&gt;In this example I placed the search in the values of the dropdown.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;drilldown&amp;lt;/label&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="dropdown" token="filter" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;&amp;lt;/label&amp;gt;
      &amp;lt;choice value="index=_internal"&amp;gt;All&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="index=_internal log_level=info"&amp;gt;Info&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="index=_internal log_level=error"&amp;gt;Error&amp;lt;/choice&amp;gt;
    &amp;lt;/input&amp;gt;
    &amp;lt;input type="time" token="field1"&amp;gt;
      &amp;lt;label&amp;gt;&amp;lt;/label&amp;gt;
      &amp;lt;default&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;/default&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&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;$filter$
|stats count by log_level &amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;$field1.earliest$&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;$field1.latest$&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;cell&amp;lt;/option&amp;gt;
        &amp;lt;drilldown&amp;gt;
          &amp;lt;link target="_blank"&amp;gt;search?q=$filter$%20log_level%3D$click.value$&amp;amp;amp;earliest=$field1.earliest$&amp;amp;amp;latest=$field1.latest$&amp;lt;/link&amp;gt;
        &amp;lt;/drilldown&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;Its easier to work with and help you with what you have right now and what is your objective if you're able to share that.&lt;BR /&gt;Check the docs as they have great information on how tokens work and can be used.&lt;BR /&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.4/Viz/ContextualDrilldown" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.2.4/Viz/ContextualDrilldown&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jan 2022 13:49:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/query-Panel-should-be-changed-based-on-token-passage-value/m-p/583088#M47768</guid>
      <dc:creator>diogofgm</dc:creator>
      <dc:date>2022-01-31T13:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: query/Panel should be changed based on token passage value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/query-Panel-should-be-changed-based-on-token-passage-value/m-p/583112#M47771</link>
      <description>&lt;P&gt;Can you give me some examples pls&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jan 2022 16:44:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/query-Panel-should-be-changed-based-on-token-passage-value/m-p/583112#M47771</guid>
      <dc:creator>sahana</dc:creator>
      <dc:date>2022-01-31T16:44:41Z</dc:date>
    </item>
  </channel>
</rss>

