<?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: input.multiselect with values from a search containing whitespaces in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-input-multiselect-with-values-from-a-search-containing/m-p/601729#M49415</link>
    <description>&lt;P&gt;Ah, no wonder I didn't recognise it - you are using Studio. Not something I am overly familiar with, I am afraid.&lt;/P&gt;</description>
    <pubDate>Tue, 14 Jun 2022 12:31:07 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2022-06-14T12:31:07Z</dc:date>
    <item>
      <title>How to input.multiselect with values from a search containing whitespaces</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-input-multiselect-with-values-from-a-search-containing/m-p/582761#M47740</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;i have added a Multiselect field to my dashboard and i am using a search to fill it with values,&lt;/P&gt;
&lt;P&gt;One of this values is "Not tested" and if i select this value in multiselect field i do&amp;nbsp; not get search results.&lt;/P&gt;
&lt;P&gt;All other values like "A" , "A+", "***" are working but no values whitespaces.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;code for use of the nultivaluefield in search to filter a table:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| search grade IN ($ms_X9Rhybia$)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think the reason is the handling of the multiselect field with whitespace in&amp;nbsp;$ms_X9Rhybia$ (wrong detection of whitspace as delimiter for example)&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 15:26:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-input-multiselect-with-values-from-a-search-containing/m-p/582761#M47740</guid>
      <dc:creator>chris1284</dc:creator>
      <dc:date>2022-06-14T15:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: input.multiselect with values from a search containing whitespaces</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-input-multiselect-with-values-from-a-search-containing/m-p/582763#M47741</link>
      <description>&lt;P&gt;Try with the |s token modifier&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| search grade IN ($ms_X9Rhybia|s$)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 27 Jan 2022 14:43:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-input-multiselect-with-values-from-a-search-containing/m-p/582763#M47741</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-01-27T14:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: input.multiselect with values from a search containing whitespaces</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-input-multiselect-with-values-from-a-search-containing/m-p/582876#M47747</link>
      <description>&lt;P&gt;After using this&amp;nbsp;&lt;SPAN&gt;token modifier, i can only choose one value from the multiselect field (and than it is no multiselect anymore)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jan 2022 08:39:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-input-multiselect-with-values-from-a-search-containing/m-p/582876#M47747</guid>
      <dc:creator>chris1284</dc:creator>
      <dc:date>2022-01-28T08:39:15Z</dc:date>
    </item>
    <item>
      <title>Re: input.multiselect with values from a search containing whitespaces</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-input-multiselect-with-values-from-a-search-containing/m-p/582883#M47748</link>
      <description>&lt;P&gt;Sorry, you are right, this won't work for multi-selects as it puts all the selection in one set of double quotes. You will need to do something different with how the multi-select is defined. How have you defined your multi-select? Can you share the SimpleXML in a code block &amp;lt;/&amp;gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jan 2022 08:53:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-input-multiselect-with-values-from-a-search-containing/m-p/582883#M47748</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-01-28T08:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: input.multiselect with values from a search containing whitespaces</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-input-multiselect-with-values-from-a-search-containing/m-p/582924#M47755</link>
      <description>&lt;P&gt;as i understood, the multiselect from the dashboard studio uses by default&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;SPAN&gt;The only supported multiselect input delimiter is the comma&lt;/SPAN&gt;&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.4/DashStudio/inputs" target="_blank" rel="noopener"&gt;use inputs and tokens to make dashboards dynamic - Splunk Documentation)&lt;/A&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;my code xml&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;"input_ian7EbEx": {
			"options": {
				"items": [
					{
						"label": "All",
						"value": "***"
					}
				],
				"defaultValue": "***",
				"token": "ms_X9Rhybia"
			},
			"title": "Search Grade",
			"type": "input.multiselect",
			"dataSources": {
				"primary": "ds_FY8oki8Y"
			}
		},&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the search ds_FY8oki8Y retuns one column "grade" with some values&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| fillnull value="Not tested" grade 
| fields grade 
| dedup grade
| sort + grade&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;returned values:&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1" width="99.87096774193549%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="31.225806451612904%"&gt;1&lt;/TD&gt;&lt;TD width="68.64516129032258%"&gt;A&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="31.225806451612904%"&gt;2&lt;/TD&gt;&lt;TD width="68.64516129032258%"&gt;A+&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="31.225806451612904%"&gt;3&lt;/TD&gt;&lt;TD width="68.64516129032258%"&gt;A-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="31.225806451612904%"&gt;4&lt;/TD&gt;&lt;TD width="68.64516129032258%"&gt;B+&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="31.225806451612904%"&gt;5&lt;/TD&gt;&lt;TD width="68.64516129032258%"&gt;C&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="31.225806451612904%"&gt;6&lt;/TD&gt;&lt;TD width="68.64516129032258%"&gt;C+&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="31.225806451612904%"&gt;7&lt;/TD&gt;&lt;TD width="68.64516129032258%"&gt;F&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="31.225806451612904%"&gt;8&lt;/TD&gt;&lt;TD width="68.64516129032258%"&gt;N&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="31.225806451612904%"&gt;9&lt;/TD&gt;&lt;TD width="68.64516129032258%"&gt;Not tested&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jan 2022 13:40:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-input-multiselect-with-values-from-a-search-containing/m-p/582924#M47755</guid>
      <dc:creator>chris1284</dc:creator>
      <dc:date>2022-01-28T13:40:02Z</dc:date>
    </item>
    <item>
      <title>Re: input.multiselect with values from a search containing whitespaces</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-input-multiselect-with-values-from-a-search-containing/m-p/582929#M47756</link>
      <description>&lt;P&gt;That's not XML, that's JSON (from your event). What I was interested in was the SimpleXML from you dashboard source (where you have defined the multi-select).&lt;/P&gt;&lt;P&gt;Essentially, what you may need to do is define prefix, suffix and delimiter values appropriate for use in the IN function, or add a change handler to create a token in the right format for use in the IN function.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jan 2022 14:01:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-input-multiselect-with-values-from-a-search-containing/m-p/582929#M47756</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-01-28T14:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: input.multiselect with values from a search containing whitespaces</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-input-multiselect-with-values-from-a-search-containing/m-p/601722#M49412</link>
      <description>&lt;P&gt;This was from my Source (Dashboard Editor -&amp;gt; Source [&amp;lt;/&amp;gt;]&lt;/P&gt;&lt;P&gt;The question is how can i modify / format the input for the multiselct / IN function?&lt;/P&gt;&lt;P&gt;If i understand this example&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/8.2.2203/DashStudio/inputMulti" target="_blank"&gt;Multiselect - Splunk Documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;			"context": {
				"formattedConfig": {
					"number": {
						"prefix": ""
					}
				},
				"formattedStatics": "&amp;gt;statics | formatByType(formattedConfig)",
				"statics": [
					[
						"All"
					],
					[
						"*"
					]
				],
				"label": "&amp;gt;primary | seriesByName(\"sourcetype\") | renameSeries(\"label\") | formatByType(formattedConfig)",
				"value": "&amp;gt;primary | seriesByName(\"sourcetype\") | renameSeries(\"value\") | formatByType(formattedConfig)"
			}&lt;/LI-CODE&gt;&lt;P&gt;the solution is in the "context" area.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 11:59:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-input-multiselect-with-values-from-a-search-containing/m-p/601722#M49412</guid>
      <dc:creator>chris1284</dc:creator>
      <dc:date>2022-06-14T11:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: input.multiselect with values from a search containing whitespaces</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-input-multiselect-with-values-from-a-search-containing/m-p/601729#M49415</link>
      <description>&lt;P&gt;Ah, no wonder I didn't recognise it - you are using Studio. Not something I am overly familiar with, I am afraid.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 12:31:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-input-multiselect-with-values-from-a-search-containing/m-p/601729#M49415</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-06-14T12:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: input.multiselect with values from a search containing whitespaces</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-input-multiselect-with-values-from-a-search-containing/m-p/601731#M49417</link>
      <description>&lt;P&gt;my workaround at this time ist to use the EVAL funtion to add a prefix and suffix to each result of the search that fills the multiselect input. for example&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;result from search:&amp;nbsp;Red Hat Local Security Checks&lt;BR /&gt;manipulatet reasult: "Red Hat Local Security Checks"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval fam="\"".fam."\""&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;now multislect is realy only space seperated between the inputs from search (search results). only disadvantage is the optical point in the dropdown (the suffix and prefix ")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 12:40:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-input-multiselect-with-values-from-a-search-containing/m-p/601731#M49417</guid>
      <dc:creator>chris1284</dc:creator>
      <dc:date>2022-06-14T12:40:04Z</dc:date>
    </item>
  </channel>
</rss>

