<?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: URL decode query string variables in HTML dashboard in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/URL-decode-query-string-variables-in-HTML-dashboard/m-p/432427#M28516</link>
    <description>&lt;P&gt;First of all, you are probably trying to do too much yourself.  Check out the &lt;CODE&gt;Splunk Dashboards Examples&lt;/CODE&gt; app and see the different ways and nuances for each one:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://splunkbase.splunk.com/app/1603/"&gt;https://splunkbase.splunk.com/app/1603/&lt;/A&gt;&lt;BR /&gt;
Short of that, you can do it in Splunk with this (might need some adjusting):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex field=foo mode=sed "s:%25:%:g s:%20: :g s:%3C:&amp;lt;:g s:%3E:&amp;gt;:g s:%23:#:g s:%7B:{:g s:%7D:}:g s:%7C:\|:g s:%5C:\\\:g s:%5E:\^:g s:%7E:~:g s:%5B:\[:g s:%5D:\]:g s:%60:\`:g s:%3B:;:g s:%2F:/:g s:%3F:\?:g s/%3A/:/g s:%40:@:g s:%3D:=:g s:%26:&amp;amp;:g s:%24:\$:g s:%21:\!:g s:%2A:\*:g s:%22:\":g s:%28:\(:g s:%29:\):g s:%2B:\+:g"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 13 Feb 2019 05:53:18 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2019-02-13T05:53:18Z</dc:date>
    <item>
      <title>URL decode query string variables in HTML dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/URL-decode-query-string-variables-in-HTML-dashboard/m-p/432426#M28515</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;
I have a  html dashboard that gets some of the parameters from the query string:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://my.splunkcloud.com/en-GB/app/appperfmon/machine_profile_user?form.cname%3DWS1642%26form.bt%3D1548434887%26form.ds%3D319.54%26earliest%3D0%26latest%3D"&gt;https://my.splunkcloud.com/en-GB/app/appperfmon/machine_profile_user?form.cname%3DWS1642%26form.bt%3D1548434887%26form.ds%3D319.54%26earliest%3D0%26latest%3D&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;the dashboard halts on "waiting for input" as it cannot read the url encoded variables. It works if the variables are not url encoded but that gives other problems. &lt;/P&gt;

&lt;P&gt;Any ideas how I can url decode my variables in javascript before feeding them to splunk searches in my dashboard. &lt;/P&gt;</description>
      <pubDate>Wed, 30 Jan 2019 03:34:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/URL-decode-query-string-variables-in-HTML-dashboard/m-p/432426#M28515</guid>
      <dc:creator>nabeel652</dc:creator>
      <dc:date>2019-01-30T03:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: URL decode query string variables in HTML dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/URL-decode-query-string-variables-in-HTML-dashboard/m-p/432427#M28516</link>
      <description>&lt;P&gt;First of all, you are probably trying to do too much yourself.  Check out the &lt;CODE&gt;Splunk Dashboards Examples&lt;/CODE&gt; app and see the different ways and nuances for each one:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://splunkbase.splunk.com/app/1603/"&gt;https://splunkbase.splunk.com/app/1603/&lt;/A&gt;&lt;BR /&gt;
Short of that, you can do it in Splunk with this (might need some adjusting):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex field=foo mode=sed "s:%25:%:g s:%20: :g s:%3C:&amp;lt;:g s:%3E:&amp;gt;:g s:%23:#:g s:%7B:{:g s:%7D:}:g s:%7C:\|:g s:%5C:\\\:g s:%5E:\^:g s:%7E:~:g s:%5B:\[:g s:%5D:\]:g s:%60:\`:g s:%3B:;:g s:%2F:/:g s:%3F:\?:g s/%3A/:/g s:%40:@:g s:%3D:=:g s:%26:&amp;amp;:g s:%24:\$:g s:%21:\!:g s:%2A:\*:g s:%22:\":g s:%28:\(:g s:%29:\):g s:%2B:\+:g"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 13 Feb 2019 05:53:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/URL-decode-query-string-variables-in-HTML-dashboard/m-p/432427#M28516</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-02-13T05:53:18Z</dc:date>
    </item>
  </channel>
</rss>

