<?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: Dashboard Studio - input dropdown from datasource in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-Studio-How-to-create-a-input-dropdown-from-datasource/m-p/600741#M49335</link>
    <description>&lt;P&gt;I solved the challenge on my own.&lt;/P&gt;&lt;P&gt;I created multiple input items and used the search as the value. Then, I used the token from the input as the primary datasource.&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;"input_1": {&lt;BR /&gt;"options": {&lt;BR /&gt;"items": [&lt;BR /&gt;{&lt;BR /&gt;"label": "Metric 1",&lt;BR /&gt;"value": "| mstats ***unique-search-string1******"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"label": "Metric 2",&lt;BR /&gt;"value": "| mstats ***unique-search-string2******"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"label": "Metric 3",&lt;BR /&gt;"value": "| mstats ***unique-search-string3******"&lt;BR /&gt;}&lt;BR /&gt;],&lt;BR /&gt;"defaultValue": "",&lt;BR /&gt;"token": "hosts_tok"&lt;BR /&gt;},&lt;BR /&gt;"dataSources": {&lt;BR /&gt;"primary": "$hosts_tok$"&lt;BR /&gt;},&lt;BR /&gt;"title": "Hosts",&lt;BR /&gt;"type": "input.dropdown"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;If there's a better way please let me know.&lt;/P&gt;</description>
    <pubDate>Mon, 06 Jun 2022 18:22:27 GMT</pubDate>
    <dc:creator>squared_away</dc:creator>
    <dc:date>2022-06-06T18:22:27Z</dc:date>
    <item>
      <title>Dashboard Studio: How to create a input dropdown from datasource?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-Studio-How-to-create-a-input-dropdown-from-datasource/m-p/600713#M49334</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I have a number of unique searches for various infrastructure resources. I would like to create a dashboard that builds a chart based on the chosen entry from a dropown. Unfortunately, there's no easy way to create a base search and use tokens.&lt;/P&gt;
&lt;P&gt;In other words, I would like each input title to reference a specific search in datsources.&lt;/P&gt;
&lt;P&gt;example dropdown:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;input selected value 1= &lt;SPAN&gt;"dataSources"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;"search_1"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;input selected value 2 = "dataSources": "search_2"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;input selected value 3 = "dataSources": "search_3"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;I could not find any documentation with examples of something similar.&lt;/P&gt;
&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jun 2022 19:32:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-Studio-How-to-create-a-input-dropdown-from-datasource/m-p/600713#M49334</guid>
      <dc:creator>squared_away</dc:creator>
      <dc:date>2022-06-06T19:32:38Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard Studio - input dropdown from datasource</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-Studio-How-to-create-a-input-dropdown-from-datasource/m-p/600741#M49335</link>
      <description>&lt;P&gt;I solved the challenge on my own.&lt;/P&gt;&lt;P&gt;I created multiple input items and used the search as the value. Then, I used the token from the input as the primary datasource.&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;"input_1": {&lt;BR /&gt;"options": {&lt;BR /&gt;"items": [&lt;BR /&gt;{&lt;BR /&gt;"label": "Metric 1",&lt;BR /&gt;"value": "| mstats ***unique-search-string1******"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"label": "Metric 2",&lt;BR /&gt;"value": "| mstats ***unique-search-string2******"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"label": "Metric 3",&lt;BR /&gt;"value": "| mstats ***unique-search-string3******"&lt;BR /&gt;}&lt;BR /&gt;],&lt;BR /&gt;"defaultValue": "",&lt;BR /&gt;"token": "hosts_tok"&lt;BR /&gt;},&lt;BR /&gt;"dataSources": {&lt;BR /&gt;"primary": "$hosts_tok$"&lt;BR /&gt;},&lt;BR /&gt;"title": "Hosts",&lt;BR /&gt;"type": "input.dropdown"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;If there's a better way please let me know.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jun 2022 18:22:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-Studio-How-to-create-a-input-dropdown-from-datasource/m-p/600741#M49335</guid>
      <dc:creator>squared_away</dc:creator>
      <dc:date>2022-06-06T18:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard Studio - input dropdown from datasource</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-Studio-How-to-create-a-input-dropdown-from-datasource/m-p/600746#M49336</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/246506"&gt;@squared_away&lt;/a&gt;&amp;nbsp;- Kindly approve your own answer by clicking on the "Accept as Solution" button.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jun 2022 18:31:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-Studio-How-to-create-a-input-dropdown-from-datasource/m-p/600746#M49336</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2022-06-06T18:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard Studio - input dropdown from datasource</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-Studio-How-to-create-a-input-dropdown-from-datasource/m-p/747595#M58786</link>
      <description>&lt;P&gt;Amazing!, thanks brother&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/246506"&gt;@squared_away&lt;/a&gt;&amp;nbsp;, got your idea,&amp;nbsp;i'm prefer using saved search because applicable for&amp;nbsp;&lt;STRONG&gt;form.token&lt;/STRONG&gt; , instead of put SPL query under value because required add &lt;STRONG&gt;backslash \&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;it's very simple we just create simple form&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
    "type": "input.dropdown",
    "title": "Testing Multi Query",
    "options": {
        "items": [
            {
                "label": "Query 1",
                "value": "| makeresults | eval key=\"value\" | table *"
            },
            {
                "label": "Query 2",
                "value": "| loadjob savedsearch=\"admin:itsi:sla_availability\" artifact_offset=0"
            },
            {
                "label": "Query 3",
                "value": "| savedsearch \"AWS - IPs available\""
            }
        ],
        "token": "tos",
        "defaultValue": ""
    }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And create the visualization with my example token&amp;nbsp;&lt;STRONG&gt;$tos$&lt;/STRONG&gt;&amp;nbsp;bellow :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="muhammad_luthfi_0-1749174627981.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/39319i17E4F1E547A1106F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="muhammad_luthfi_0-1749174627981.png" alt="muhammad_luthfi_0-1749174627981.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jun 2025 01:51:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-Studio-How-to-create-a-input-dropdown-from-datasource/m-p/747595#M58786</guid>
      <dc:creator>muhammad_luthfi</dc:creator>
      <dc:date>2025-06-06T01:51:23Z</dc:date>
    </item>
  </channel>
</rss>

