<?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 to extract value from a token in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-use-range-of-numbers-in-token/m-p/581960#M47680</link>
    <description>&lt;P&gt;When you are using g token on dashboards, use it in SPL just $token_name$.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.4/Viz/tokens" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.2.4/Viz/tokens&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 21 Jan 2022 07:11:47 GMT</pubDate>
    <dc:creator>isoutamo</dc:creator>
    <dc:date>2022-01-21T07:11:47Z</dc:date>
    <item>
      <title>how to use range of numbers in token</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-use-range-of-numbers-in-token/m-p/581948#M47678</link>
      <description>&lt;P&gt;Hi all, I have a token "Duration", and the values which will be passed to the drilldown are duration&amp;lt;15, 15&amp;lt;duration&amp;lt;=25 and duration&amp;gt;25. How can i pass the value 15-25 as a token?&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jan 2022 14:02:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-use-range-of-numbers-in-token/m-p/581948#M47678</guid>
      <dc:creator>anooshac</dc:creator>
      <dc:date>2022-01-21T14:02:34Z</dc:date>
    </item>
    <item>
      <title>Re: how to extract value from a token</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-use-range-of-numbers-in-token/m-p/581960#M47680</link>
      <description>&lt;P&gt;When you are using g token on dashboards, use it in SPL just $token_name$.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.4/Viz/tokens" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.2.4/Viz/tokens&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jan 2022 07:11:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-use-range-of-numbers-in-token/m-p/581960#M47680</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2022-01-21T07:11:47Z</dc:date>
    </item>
    <item>
      <title>Re: how to extract value from a token</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-use-range-of-numbers-in-token/m-p/581961#M47681</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/30057"&gt;@anooshac&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;you could use a dropdown list or a radio button with three static options, something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;input type="dropdown" token="range"&amp;gt;
      &amp;lt;label&amp;gt;Range&amp;lt;/label&amp;gt;
      &amp;lt;choice value="duration&amp;lt;16"&amp;gt;duration&amp;lt;15&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="(duration&amp;gt;15 AND duration&amp;lt;=25)"&amp;gt;15&amp;lt;duration&amp;lt;=25&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="duration&amp;gt;25"&amp;gt;duration&amp;gt;25&amp;lt;/choice&amp;gt;
      &amp;lt;default&amp;gt;duration&amp;lt;16&amp;lt;/default&amp;gt;
      &amp;lt;prefix&amp;gt;&amp;lt;/prefix&amp;gt;
      &amp;lt;suffix&amp;gt;&amp;lt;/suffix&amp;gt;
      &amp;lt;search&amp;gt;
        &amp;lt;query&amp;gt;&amp;lt;/query&amp;gt;
      &amp;lt;/search&amp;gt;
    &amp;lt;/input&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;and then use the clicked value in a search command.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| search $range$&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jan 2022 07:12:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-use-range-of-numbers-in-token/m-p/581961#M47681</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-01-21T07:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: how to extract value from a token</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-use-range-of-numbers-in-token/m-p/581994#M47685</link>
      <description>&lt;P&gt;I tried directly using the token but it doesn't work for the numbers with range. How can i pass a range 15-25 in a token ?&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jan 2022 13:22:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-use-range-of-numbers-in-token/m-p/581994#M47685</guid>
      <dc:creator>anooshac</dc:creator>
      <dc:date>2022-01-21T13:22:32Z</dc:date>
    </item>
    <item>
      <title>Re: how to extract value from a token</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-use-range-of-numbers-in-token/m-p/581996#M47686</link>
      <description>&lt;P&gt;Actually i want to pass the value to a table to populate the data. Do you know how to pass 15-25 directly as a token?&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jan 2022 13:27:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-use-range-of-numbers-in-token/m-p/581996#M47686</guid>
      <dc:creator>anooshac</dc:creator>
      <dc:date>2022-01-21T13:27:32Z</dc:date>
    </item>
    <item>
      <title>Re: how to extract value from a token</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-use-range-of-numbers-in-token/m-p/582005#M47688</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/30057"&gt;@anooshac&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;if you have only one threshold (e.g. duratiopn&amp;lt;15 or duration&amp;gt;=15), you could pass only the value, but there's the intermediate range that has two conditions to check (duration&amp;gt;15 AND duration&amp;lt;=25), for this reason I hint to pass the full condition to use in the where command, as you can see in my sample.&lt;/P&gt;&lt;P&gt;If you want to pass only the value, you could use two dropdowns: one for the minimum and one for the maximum range.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jan 2022 14:00:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-use-range-of-numbers-in-token/m-p/582005#M47688</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-01-21T14:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: how to extract value from a token</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-use-range-of-numbers-in-token/m-p/582008#M47689</link>
      <description>&lt;P&gt;Can i pass the value 15-25 as whole? Is there anything that can solve this?&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jan 2022 14:15:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-use-range-of-numbers-in-token/m-p/582008#M47689</guid>
      <dc:creator>anooshac</dc:creator>
      <dc:date>2022-01-21T14:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: how to extract value from a token</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-use-range-of-numbers-in-token/m-p/582009#M47690</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/30057"&gt;@anooshac&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;no, this is a range, a range is always composed by two conditions, so you cannot do in a different way.&lt;/P&gt;&lt;P&gt;What's the problem to use a condition like the one I showed?&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jan 2022 14:19:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-use-range-of-numbers-in-token/m-p/582009#M47690</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-01-21T14:19:15Z</dc:date>
    </item>
    <item>
      <title>Re: how to extract value from a token</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-use-range-of-numbers-in-token/m-p/582192#M47712</link>
      <description>&lt;P&gt;hi, Your solution is perfect. But what i have is a bar chart which has these 3 groups and when i click any of the bar it should pass the value to the table in the drill down. I don't know that is possible.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jan 2022 04:11:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-use-range-of-numbers-in-token/m-p/582192#M47712</guid>
      <dc:creator>anooshac</dc:creator>
      <dc:date>2022-01-24T04:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: how to extract value from a token</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-use-range-of-numbers-in-token/m-p/582208#M47713</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/30057"&gt;@anooshac&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;you could pass in the drilldown the condition (1, 2 or 3) and then manage in the secondary form the condition:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval minor=case(cond=1,0,cond=2,15,cond=3,25), major=case(cond=1,15,cond=2,25,cond=3,100000000000000000000000)
| search duration&amp;gt;minor duration&amp;lt;=major&lt;/LI-CODE&gt;&lt;P&gt;Ciao.,&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jan 2022 07:33:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-use-range-of-numbers-in-token/m-p/582208#M47713</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-01-24T07:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: how to extract value from a token</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-use-range-of-numbers-in-token/m-p/582356#M47717</link>
      <description>&lt;P&gt;should i add the condition as |where cond=1 2 or 3 in the query?&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jan 2022 05:42:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-use-range-of-numbers-in-token/m-p/582356#M47717</guid>
      <dc:creator>anooshac</dc:creator>
      <dc:date>2022-01-25T05:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: how to extract value from a token</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-use-range-of-numbers-in-token/m-p/582365#M47718</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/30057"&gt;@anooshac&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;in the drilldown you have to pass the condition and in the searches of the secondaty dashboard you have to use the eval and search commands I hinted.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jan 2022 07:30:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-use-range-of-numbers-in-token/m-p/582365#M47718</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-01-25T07:30:37Z</dc:date>
    </item>
  </channel>
</rss>

