<?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: pass all the values of a dropdown to a token in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/pass-all-the-values-of-a-dropdown-to-a-token/m-p/552806#M38311</link>
    <description>&lt;P&gt;Hi.. thank you for replying. I have tried combining the values using mvjoin command. But once these values are put together in a row with a delimiter, i was not able to display the other column which having individual values of the dropdown. Do you have any solution for this?&lt;/P&gt;</description>
    <pubDate>Mon, 24 May 2021 15:53:29 GMT</pubDate>
    <dc:creator>anooshac</dc:creator>
    <dc:date>2021-05-24T15:53:29Z</dc:date>
    <item>
      <title>pass all the values of a dropdown to a token</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/pass-all-the-values-of-a-dropdown-to-a-token/m-p/552761#M38298</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have a dynamic drop down which has the values from a search query. I want to assign all those values to a token for &amp;lt;condition Label= "All"&amp;gt;. Also i want those values to be delimited during the assignment. I have tried a lot and failed to implement. Can anyone please help me with this??&lt;/P&gt;</description>
      <pubDate>Mon, 24 May 2021 12:11:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/pass-all-the-values-of-a-dropdown-to-a-token/m-p/552761#M38298</guid>
      <dc:creator>anooshac</dc:creator>
      <dc:date>2021-05-24T12:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: pass all the values of a dropdown to a token</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/pass-all-the-values-of-a-dropdown-to-a-token/m-p/552765#M38301</link>
      <description>&lt;P&gt;Can you change your query used to populate the drop down so that an extra row is returned with the label field set to all and the value field set the all the other values delimited as you would like?&lt;/P&gt;</description>
      <pubDate>Mon, 24 May 2021 12:19:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/pass-all-the-values-of-a-dropdown-to-a-token/m-p/552765#M38301</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-05-24T12:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: pass all the values of a dropdown to a token</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/pass-all-the-values-of-a-dropdown-to-a-token/m-p/552806#M38311</link>
      <description>&lt;P&gt;Hi.. thank you for replying. I have tried combining the values using mvjoin command. But once these values are put together in a row with a delimiter, i was not able to display the other column which having individual values of the dropdown. Do you have any solution for this?&lt;/P&gt;</description>
      <pubDate>Mon, 24 May 2021 15:53:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/pass-all-the-values-of-a-dropdown-to-a-token/m-p/552806#M38311</guid>
      <dc:creator>anooshac</dc:creator>
      <dc:date>2021-05-24T15:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: pass all the values of a dropdown to a token</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/pass-all-the-values-of-a-dropdown-to-a-token/m-p/552808#M38312</link>
      <description>&lt;P&gt;The first part sets up some dummy data. Then append and empty event, collect all the other values (this is added to all events but is removed later), set the label field (or whatever yours is called) to "All", and set the value field (or whatever yours is called) to the joined multivalue, delimiting by whatever you need for your value. Finally, limit the returned fields to be just the ones your want (not strictly necessary as you are specifying which field to use as the label and which to use as the value anyway).&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| gentimes start=-1 increment=4h
| rename starttime as _time 
| fields _time
| streamstats count as row 
| eval label=mvindex(split("ABCDEF",""),(row - 1)%6)
| eval value=mvindex(split("pqrstu",""),(row - 1)%6)
| table label value


| append 
    [| makeresults]
| eventstats values(value) as allvalues
| fillnull value="All" label
| eval value=if(isnull(value),mvjoin(allvalues," "),value)
| fields label value
| table label value&lt;/LI-CODE&gt;&lt;P&gt;You may want to play around with this so that the events are returned in the order you want e.g. All as the first item.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 May 2021 16:38:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/pass-all-the-values-of-a-dropdown-to-a-token/m-p/552808#M38312</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-05-24T16:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: pass all the values of a dropdown to a token</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/pass-all-the-values-of-a-dropdown-to-a-token/m-p/552854#M38320</link>
      <description>&lt;P&gt;Thank you for the answer. This works good for fixed values. any idea on how to do that for dynamic values? Because the dropdown in my dashboard has the values fetched by a query which depends on different files.&lt;/P&gt;</description>
      <pubDate>Tue, 25 May 2021 04:51:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/pass-all-the-values-of-a-dropdown-to-a-token/m-p/552854#M38320</guid>
      <dc:creator>anooshac</dc:creator>
      <dc:date>2021-05-25T04:51:02Z</dc:date>
    </item>
    <item>
      <title>Re: pass all the values of a dropdown to a token</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/pass-all-the-values-of-a-dropdown-to-a-token/m-p/552855#M38321</link>
      <description>&lt;P&gt;The first part should be replaced with your query that currently generates the labels and values for the dropdown.&lt;/P&gt;</description>
      <pubDate>Tue, 25 May 2021 04:54:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/pass-all-the-values-of-a-dropdown-to-a-token/m-p/552855#M38321</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-05-25T04:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: pass all the values of a dropdown to a token</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/pass-all-the-values-of-a-dropdown-to-a-token/m-p/552857#M38322</link>
      <description>&lt;P&gt;Yeah i got it.. In my query i only generate values.. Can it be done without the labels? Or is there any other technique by which i can assign all the values in the drop down to a single token with delimiter? Sorry for asking so many questions i am just learning the Splunk..&lt;/P&gt;</description>
      <pubDate>Tue, 25 May 2021 05:24:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/pass-all-the-values-of-a-dropdown-to-a-token/m-p/552857#M38322</guid>
      <dc:creator>anooshac</dc:creator>
      <dc:date>2021-05-25T05:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: pass all the values of a dropdown to a token</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/pass-all-the-values-of-a-dropdown-to-a-token/m-p/552858#M38323</link>
      <description>&lt;P&gt;Your dashboard XML will have two elements &amp;lt;fieldForLabel&amp;gt; and &amp;lt;fieldForValue&amp;gt;. You probably have these set to be the same field name (the field returned by your query). Simply change one of them to another name and then in your search query, assign the new field name to the value of your existing field.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;fieldForLabel&amp;gt;originalField&amp;lt;/fieldForLabel&amp;gt;
&amp;lt;fieldForValue&amp;gt;valueField&amp;lt;/fieldForValue&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;and&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;...search
| eval valueField=originalField&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 25 May 2021 05:28:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/pass-all-the-values-of-a-dropdown-to-a-token/m-p/552858#M38323</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-05-25T05:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: pass all the values of a dropdown to a token</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/pass-all-the-values-of-a-dropdown-to-a-token/m-p/552868#M38324</link>
      <description>&lt;P&gt;Thank you.. I will try this..&lt;/P&gt;&lt;P&gt;do you any simple method to just assign all the values to the token?&lt;/P&gt;&lt;P&gt;&amp;lt;condition label="All"&amp;gt;&lt;BR /&gt;&amp;lt;set token="Tok_all"&amp;gt;"All the values should be should be assigned here"&amp;lt;/set&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/condition&amp;gt;&lt;/P&gt;&lt;P&gt;Thank you in advance..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 May 2021 05:53:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/pass-all-the-values-of-a-dropdown-to-a-token/m-p/552868#M38324</guid>
      <dc:creator>anooshac</dc:creator>
      <dc:date>2021-05-25T05:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: pass all the values of a dropdown to a token</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/pass-all-the-values-of-a-dropdown-to-a-token/m-p/552896#M38325</link>
      <description>&lt;P&gt;If I knew of a way to do this as you describe, I would probably have told you. There seems to be only one chance to generate dynamic content for the dropdown and that is through the search query, so you need to exploit that to give you all the dynamic content you require.&lt;/P&gt;</description>
      <pubDate>Tue, 25 May 2021 07:33:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/pass-all-the-values-of-a-dropdown-to-a-token/m-p/552896#M38325</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-05-25T07:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: pass all the values of a dropdown to a token</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/pass-all-the-values-of-a-dropdown-to-a-token/m-p/552917#M38327</link>
      <description>&lt;P&gt;I am sorry for that... Just asked if there are any methods for that.. Thank you so much for the help.. I'll try this only and implement it..&lt;/P&gt;</description>
      <pubDate>Tue, 25 May 2021 10:18:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/pass-all-the-values-of-a-dropdown-to-a-token/m-p/552917#M38327</guid>
      <dc:creator>anooshac</dc:creator>
      <dc:date>2021-05-25T10:18:48Z</dc:date>
    </item>
  </channel>
</rss>

