<?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: link does not work if the token click.value2 contains a URL in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/link-does-not-work-if-the-token-click-value2-contains-a-URL/m-p/258671#M16270</link>
    <description>&lt;P&gt;Try using CDATA to encode the URL. Like this `'&lt;/P&gt;</description>
    <pubDate>Mon, 05 Sep 2016 20:39:06 GMT</pubDate>
    <dc:creator>sundareshr</dc:creator>
    <dc:date>2016-09-05T20:39:06Z</dc:date>
    <item>
      <title>link does not work if the token click.value2 contains a URL</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/link-does-not-work-if-the-token-click-value2-contains-a-URL/m-p/258670#M16269</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;I try to make field which contains a plain URL (&lt;A href="https://www.example.com/?parmaters"&gt;https://www.example.com/?parmaters&lt;/A&gt;) clickable. Therefore I use the drilldown feature with&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;PRE&gt;&lt;CODE&gt;        &amp;lt;condition field="session_url"&amp;gt;
          &amp;lt;link&amp;gt;
             $click.value2$
          &amp;lt;/link&amp;gt;
      &amp;lt;/condition&amp;gt;
    &amp;lt;/drilldown&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;If I click on the field I get an error message. Does someone know a solution for this?&lt;/P&gt;

&lt;P&gt;Regards,&lt;BR /&gt;
Egon&lt;/P&gt;</description>
      <pubDate>Mon, 05 Sep 2016 14:02:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/link-does-not-work-if-the-token-click-value2-contains-a-URL/m-p/258670#M16269</guid>
      <dc:creator>burgi500</dc:creator>
      <dc:date>2016-09-05T14:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: link does not work if the token click.value2 contains a URL</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/link-does-not-work-if-the-token-click-value2-contains-a-URL/m-p/258671#M16270</link>
      <description>&lt;P&gt;Try using CDATA to encode the URL. Like this `'&lt;/P&gt;</description>
      <pubDate>Mon, 05 Sep 2016 20:39:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/link-does-not-work-if-the-token-click-value2-contains-a-URL/m-p/258671#M16270</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-09-05T20:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: link does not work if the token click.value2 contains a URL</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/link-does-not-work-if-the-token-click-value2-contains-a-URL/m-p/258672#M16271</link>
      <description>&lt;P&gt;You would need to use external java script to achieve the same. Have a look at following link&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/85517/drill-down-to-absolute-url-using-click-value.html"&gt;https://answers.splunk.com/answers/85517/drill-down-to-absolute-url-using-click-value.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;OR see the example "Drilldown URL Field Value" in the Splunk 6.x Dashboard example app (&lt;A href="https://splunkbase.splunk.com/app/1603/"&gt;https://splunkbase.splunk.com/app/1603/&lt;/A&gt;)&lt;/P&gt;</description>
      <pubDate>Mon, 05 Sep 2016 21:08:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/link-does-not-work-if-the-token-click-value2-contains-a-URL/m-p/258672#M16271</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-09-05T21:08:02Z</dc:date>
    </item>
    <item>
      <title>Re: link does not work if the token click.value2 contains a URL</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/link-does-not-work-if-the-token-click-value2-contains-a-URL/m-p/258673#M16272</link>
      <description>&lt;P&gt;For me it works once I concatenate the static part of the URL with the parameters as in the example below. In your case you would need to extract the "sessionid" field.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;drilldown target="_blank"&amp;gt;
   &amp;lt;condition field="session_url"&amp;gt;
     &amp;lt;link&amp;gt;http://www.example.com?sessionid=$row.sessionid$&amp;lt;/link&amp;gt;
   &amp;lt;/condition&amp;gt;
 &amp;lt;/drilldown&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 06 Sep 2016 07:13:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/link-does-not-work-if-the-token-click-value2-contains-a-URL/m-p/258673#M16272</guid>
      <dc:creator>michtek</dc:creator>
      <dc:date>2016-09-06T07:13:30Z</dc:date>
    </item>
    <item>
      <title>Re: link does not work if the token click.value2 contains a URL</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/link-does-not-work-if-the-token-click-value2-contains-a-URL/m-p/258674#M16273</link>
      <description>&lt;P&gt;Hi michtek&lt;/P&gt;

&lt;P&gt;I know concatenate works. But if you the variable contains the whole URL, splunk prepends:&lt;BR /&gt;
&lt;A href="http://yoursplunkserver:8080/de-DE/app/search/"&gt;http://yoursplunkserver:8080/de-DE/app/search/&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;This is the problem I am facing&lt;/P&gt;

&lt;P&gt;Regards,&lt;BR /&gt;
Egon&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2016 12:16:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/link-does-not-work-if-the-token-click-value2-contains-a-URL/m-p/258674#M16273</guid>
      <dc:creator>burgi500</dc:creator>
      <dc:date>2016-09-14T12:16:41Z</dc:date>
    </item>
  </channel>
</rss>

