<?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 adds space to input in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-does-my-Dashboard-add-space-to-input/m-p/618426#M50792</link>
    <description>&lt;P&gt;I was having the exact same problem described here, spaces added in between every character that was being passed into a search from a token.&amp;nbsp; I resolved this problem by looking at the XML source of the dashboard, where I found an option had somehow been added to the input that was adding a space as a "delim" character.&amp;nbsp; I don't have the exact syntax of the option that was added because I deleted it and saved before I thought to copy it.&amp;nbsp; But this fixed my problem.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So... check your dashboard source code to make sure there aren't any options out of place.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 26 Oct 2022 15:39:46 GMT</pubDate>
    <dc:creator>JWBailey</dc:creator>
    <dc:date>2022-10-26T15:39:46Z</dc:date>
    <item>
      <title>Why does my Dashboard add space to input?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-does-my-Dashboard-add-space-to-input/m-p/458356#M45452</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I have a dropdown menu where I select from a list of networks and then I want to update my dashboard graph based off the selected dropdown.&lt;/P&gt;
&lt;P&gt;I have the dropdown configured and the token to reference is input. I followed the instructions and in the search on the table I have something along the lines of&lt;/P&gt;
&lt;P&gt;| search "Network" = "$input$"&lt;/P&gt;
&lt;P&gt;Now the crazy part to me is that this partially works. If I have a network called "Campus" that I want to search the $input$ is replaced, but it doesn't work. When I click run search I found this, the $input$ isn't being replaced by "Campus" it's being replaced by "C a m p u s" and adding spaces between each character.&lt;/P&gt;
&lt;P&gt;Does anyone have any clue as to how to fix this? if not, how to remove the spaces so I can manually change it?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 15:41:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-does-my-Dashboard-add-space-to-input/m-p/458356#M45452</guid>
      <dc:creator>jkordis</dc:creator>
      <dc:date>2022-10-26T15:41:16Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard adds space to input</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-does-my-Dashboard-add-space-to-input/m-p/458357#M45453</link>
      <description>&lt;P&gt;hi @jkordis &lt;BR /&gt;
The issue seems to be with your input dropdown search&lt;BR /&gt;
see this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults
| eval Description="C a m p u s"
|eval Description=replace(Description," ","")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Inside the search for the dropdown(edit token) instead of the hard coded field here, use the field you are referring to from the $input$ token. For some reason it is being taken as space&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2019 18:47:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-does-my-Dashboard-add-space-to-input/m-p/458357#M45453</guid>
      <dc:creator>Sukisen1981</dc:creator>
      <dc:date>2019-08-21T18:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard adds space to input</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-does-my-Dashboard-add-space-to-input/m-p/458358#M45454</link>
      <description>&lt;P&gt;I don't think the issue is with the dropdown, otherwise why would all the selections in the list populate properly? My dropdown config looks like this&lt;/P&gt;

&lt;P&gt;Label: Network Name&lt;BR /&gt;
Token: input&lt;BR /&gt;
Dynamic Options&lt;/P&gt;

&lt;P&gt;index="aws-lambda" Subject="Network List Pulled"&lt;BR /&gt;
| rename "MessageAttributes.NetworkName.Value" as "Network" &lt;BR /&gt;
| stats count by "Network" | dedup "Network"&lt;/P&gt;

&lt;P&gt;this outputs a list of all the networks and removes the duplicate instances properly, then gives me a list that pops down with the following items&lt;/P&gt;

&lt;P&gt;Campus&lt;BR /&gt;
Office&lt;BR /&gt;
Boston&lt;BR /&gt;
Lowell&lt;BR /&gt;
Hospital&lt;/P&gt;

&lt;P&gt;Field for Label: Network&lt;BR /&gt;
Field for Value: Network&lt;/P&gt;

&lt;P&gt;then in the search for the chart I have tried the replace as you suggested but it didn't take. Not really sure what to make of it&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2019 19:03:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-does-my-Dashboard-add-space-to-input/m-p/458358#M45454</guid>
      <dc:creator>jkordis</dc:creator>
      <dc:date>2019-08-21T19:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard adds space to input</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-does-my-Dashboard-add-space-to-input/m-p/458359#M45455</link>
      <description>&lt;P&gt;not in the search for the chart, replace it in the search for the dropdown&lt;BR /&gt;
if Network is your dropdowb field (and replace "Network" by Network) and below is your dropdown search , then:&lt;BR /&gt;
index="aws-lambda" Subject="Network List Pulled"&lt;BR /&gt;
| rename "MessageAttributes.NetworkName.Value" as Network|eval Network=replace(Network," ","")&lt;BR /&gt;
| stats count by Network | dedup Network&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2019 19:09:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-does-my-Dashboard-add-space-to-input/m-p/458359#M45455</guid>
      <dc:creator>Sukisen1981</dc:creator>
      <dc:date>2019-08-21T19:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard adds space to input</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-does-my-Dashboard-add-space-to-input/m-p/458360#M45456</link>
      <description>&lt;P&gt;in my search for the chart would I still be referencing $input$ for the parameter being passed? I tried what you put above but didn't have any luck, when the search for the chart came into play, it was still spaced out&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2019 19:15:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-does-my-Dashboard-add-space-to-input/m-p/458360#M45456</guid>
      <dc:creator>jkordis</dc:creator>
      <dc:date>2019-08-21T19:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard adds space to input</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-does-my-Dashboard-add-space-to-input/m-p/458361#M45457</link>
      <description>&lt;P&gt;you would, the way i see it input is your token name which gets field label and field value from Network, right?&lt;BR /&gt;
one option you can try in the search is to replace $input$.&lt;BR /&gt;
remove all code and see if something like this in the &lt;STRONG&gt;chart search&lt;/STRONG&gt; works &lt;CODE&gt;|makeresults| |eval z=replace("$input$," ","")|table z&lt;BR /&gt;
&lt;/CODE&gt;&lt;BR /&gt;
so z here should have no gaps between letters....&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2019 19:22:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-does-my-Dashboard-add-space-to-input/m-p/458361#M45457</guid>
      <dc:creator>Sukisen1981</dc:creator>
      <dc:date>2019-08-21T19:22:44Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard adds space to input</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-does-my-Dashboard-add-space-to-input/m-p/458362#M45458</link>
      <description>&lt;P&gt;hi @jkordis &lt;BR /&gt;
Did you try this?&lt;/P&gt;</description>
      <pubDate>Sat, 24 Aug 2019 07:50:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-does-my-Dashboard-add-space-to-input/m-p/458362#M45458</guid>
      <dc:creator>Sukisen1981</dc:creator>
      <dc:date>2019-08-24T07:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard adds space to input</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-does-my-Dashboard-add-space-to-input/m-p/458363#M45459</link>
      <description>&lt;P&gt;Try using the &lt;CODE&gt;|n&lt;/CODE&gt; token filter:&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.3.1/Viz/tokens#Token_filters"&gt;https://docs.splunk.com/Documentation/Splunk/7.3.1/Viz/tokens#Token_filters&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Sep 2019 01:56:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-does-my-Dashboard-add-space-to-input/m-p/458363#M45459</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-09-02T01:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard adds space to input</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-does-my-Dashboard-add-space-to-input/m-p/618426#M50792</link>
      <description>&lt;P&gt;I was having the exact same problem described here, spaces added in between every character that was being passed into a search from a token.&amp;nbsp; I resolved this problem by looking at the XML source of the dashboard, where I found an option had somehow been added to the input that was adding a space as a "delim" character.&amp;nbsp; I don't have the exact syntax of the option that was added because I deleted it and saved before I thought to copy it.&amp;nbsp; But this fixed my problem.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So... check your dashboard source code to make sure there aren't any options out of place.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 15:39:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-does-my-Dashboard-add-space-to-input/m-p/618426#M50792</guid>
      <dc:creator>JWBailey</dc:creator>
      <dc:date>2022-10-26T15:39:46Z</dc:date>
    </item>
  </channel>
</rss>

