<?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: How to prevent URL encoding of an external field in my Simple XML dashboard drilldown? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-prevent-URL-encoding-of-an-external-field-in-my-Simple/m-p/279314#M17720</link>
    <description>&lt;P&gt;I just tried the above and the result is the same &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;It seems Splunk parses and encodes the ':' &amp;amp; '/' prior to parsing the CDATA command. Its really strange that its not importing the raw value into the string its building.&lt;/P&gt;</description>
    <pubDate>Fri, 12 Feb 2016 07:42:14 GMT</pubDate>
    <dc:creator>alaztiest</dc:creator>
    <dc:date>2016-02-12T07:42:14Z</dc:date>
    <item>
      <title>How to prevent URL encoding of an external field in my Simple XML dashboard drilldown?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-prevent-URL-encoding-of-an-external-field-in-my-Simple/m-p/279312#M17718</link>
      <description>&lt;P&gt;Really simple (or should be simple) question.&lt;/P&gt;

&lt;P&gt;Using a Simple XML Dashboard, I have the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;      &amp;lt;table&amp;gt;
        &amp;lt;title&amp;gt;Something&amp;lt;/title&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;source="http-simple" | spath "PerfectoTest.methodName" | search "PerfectoTest.methodName"=StoreFinder | eval stepStatus=spath(_raw, "PerfectoTest.methods.Starbucks v1.Steps{}.stepStatus") | eval overallTestStatus=spath(_raw,"PerfectoTest.testStatus") | eval TestReport=spath(_raw,"PerfectoTest.reportKey") | bucket _time span=1h | stats first(TestReport) as reportLink&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;0&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="wrap"&amp;gt;true&amp;lt;/option&amp;gt;
        &amp;lt;option name="rowNumbers"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="dataOverlayMode"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;cell&amp;lt;/option&amp;gt;
        &amp;lt;drilldown&amp;gt;
          &amp;lt;link&amp;gt;https://somewhere.co/?reportRepositoryKey=$click.value$&amp;lt;/link&amp;gt;
        &amp;lt;/drilldown&amp;gt;
      &amp;lt;/table&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Where the field that is clicked contains an unencoded URL. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;URLValue=PUBLIC:location/sublocation_something.xml
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The combined url should look like: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;xxxx://somewhere.co/?reportRepositoryKey=PUBLIC:location/sublocation_something.xml
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What's actually happening is the &lt;CODE&gt;/&lt;/CODE&gt; and &lt;CODE&gt;:&lt;/CODE&gt; in the URLValue are being encoded by Splunk prior to inserting into the link, and then the link is passing the encoded URL to the final destination resulting in a url that looks like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;xxxx://somewhere.co/?reportRepositoryKey=PUBLIC%3location%2sublocation_something.xml
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;How can I stop the auto-encoding from the drilldown function?&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2016 10:45:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-prevent-URL-encoding-of-an-external-field-in-my-Simple/m-p/279312#M17718</guid>
      <dc:creator>alaztiest</dc:creator>
      <dc:date>2016-02-11T10:45:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent URL encoding of an external field in my Simple XML dashboard drilldown?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-prevent-URL-encoding-of-an-external-field-in-my-Simple/m-p/279313#M17719</link>
      <description>&lt;P&gt;Try something like this in your drilldown tag.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;drilldown&amp;gt;
           &amp;lt;link&amp;gt; &amp;lt;![CDATA[  &lt;A href="https://somewhere.co/?reportRepositoryKey=$click.value2$" target="test_blank"&gt;https://somewhere.co/?reportRepositoryKey=$click.value2$&lt;/A&gt; ]]&amp;gt;&amp;lt;/link&amp;gt;
         &amp;lt;/drilldown&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 11 Feb 2016 17:24:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-prevent-URL-encoding-of-an-external-field-in-my-Simple/m-p/279313#M17719</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-02-11T17:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent URL encoding of an external field in my Simple XML dashboard drilldown?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-prevent-URL-encoding-of-an-external-field-in-my-Simple/m-p/279314#M17720</link>
      <description>&lt;P&gt;I just tried the above and the result is the same &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;It seems Splunk parses and encodes the ':' &amp;amp; '/' prior to parsing the CDATA command. Its really strange that its not importing the raw value into the string its building.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2016 07:42:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-prevent-URL-encoding-of-an-external-field-in-my-Simple/m-p/279314#M17720</guid>
      <dc:creator>alaztiest</dc:creator>
      <dc:date>2016-02-12T07:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent URL encoding of an external field in my Simple XML dashboard drilldown?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-prevent-URL-encoding-of-an-external-field-in-my-Simple/m-p/279315#M17721</link>
      <description>&lt;P&gt;&lt;EM&gt;Nudge&lt;/EM&gt; any suggestions?&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2016 11:38:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-prevent-URL-encoding-of-an-external-field-in-my-Simple/m-p/279315#M17721</guid>
      <dc:creator>alaztiest</dc:creator>
      <dc:date>2016-02-15T11:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent URL encoding of an external field in my Simple XML dashboard drilldown?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-prevent-URL-encoding-of-an-external-field-in-my-Simple/m-p/279316#M17722</link>
      <description>&lt;P&gt;Is there a work around to avoid splunk to encode ':' &amp;amp; '/' prior to parsing the CDATA command or the value for link html tag?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2016 17:56:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-prevent-URL-encoding-of-an-external-field-in-my-Simple/m-p/279316#M17722</guid>
      <dc:creator>Dhanapathi</dc:creator>
      <dc:date>2016-10-27T17:56:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent URL encoding of an external field in my Simple XML dashboard drilldown?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-prevent-URL-encoding-of-an-external-field-in-my-Simple/m-p/279317#M17723</link>
      <description>&lt;P&gt;Hi @alaztiest,&lt;BR /&gt;
You might also want to try HTML entities to escape these characters:&lt;/P&gt;

&lt;P&gt;See&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.0/Viz/OverviewofSimplifiedXML#Special_characters_in_XML_files"&gt;http://docs.splunk.com/Documentation/Splunk/6.5.0/Viz/OverviewofSimplifiedXML#Special_characters_in_XML_files&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2016 17:59:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-prevent-URL-encoding-of-an-external-field-in-my-Simple/m-p/279317#M17723</guid>
      <dc:creator>frobinson_splun</dc:creator>
      <dc:date>2016-10-27T17:59:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent URL encoding of an external field in my Simple XML dashboard drilldown?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-prevent-URL-encoding-of-an-external-field-in-my-Simple/m-p/279318#M17724</link>
      <description>&lt;P&gt;If you are using v6.5, there is a new token filter to force no encoding:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;link&amp;gt;https://somewhere.co/?reportRepositoryKey=$click.value|n$&amp;lt;/link&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 27 Oct 2016 18:15:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-prevent-URL-encoding-of-an-external-field-in-my-Simple/m-p/279318#M17724</guid>
      <dc:creator>nfilippi_splunk</dc:creator>
      <dc:date>2016-10-27T18:15:44Z</dc:date>
    </item>
  </channel>
</rss>

