<?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 How to use the Splunk table variable $row.hostname$ as a dynamic domain name URL in XML CDATA? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-use-the-Splunk-table-variable-row-hostname-as-a-dynamic/m-p/225740#M14014</link>
    <description>&lt;P&gt;How to use the Splunk table variable &lt;CODE&gt;$row.hostname$&lt;/CODE&gt; as hyperlink dynamic URL name in XML CDATA?&lt;BR /&gt;
It is working, except for static URL names like "&lt;A href="http://www.google.com"&gt;http://www.google.com&lt;/A&gt;" , so if I try to use the variable for the URL name it is not working. It seems like an issue with escaping the special characters. Please help&lt;/P&gt;

&lt;P&gt;EG:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;link&amp;gt;
&amp;lt;![CDATA[
   &lt;A href="http://$row.hostname$/" target="test_blank"&gt;http://$row.hostname$/&lt;/A&gt; 
  ]]&amp;gt;
&amp;lt;/link&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 16 Sep 2015 06:02:58 GMT</pubDate>
    <dc:creator>hemalalli</dc:creator>
    <dc:date>2015-09-16T06:02:58Z</dc:date>
    <item>
      <title>How to use the Splunk table variable $row.hostname$ as a dynamic domain name URL in XML CDATA?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-use-the-Splunk-table-variable-row-hostname-as-a-dynamic/m-p/225740#M14014</link>
      <description>&lt;P&gt;How to use the Splunk table variable &lt;CODE&gt;$row.hostname$&lt;/CODE&gt; as hyperlink dynamic URL name in XML CDATA?&lt;BR /&gt;
It is working, except for static URL names like "&lt;A href="http://www.google.com"&gt;http://www.google.com&lt;/A&gt;" , so if I try to use the variable for the URL name it is not working. It seems like an issue with escaping the special characters. Please help&lt;/P&gt;

&lt;P&gt;EG:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;link&amp;gt;
&amp;lt;![CDATA[
   &lt;A href="http://$row.hostname$/" target="test_blank"&gt;http://$row.hostname$/&lt;/A&gt; 
  ]]&amp;gt;
&amp;lt;/link&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 16 Sep 2015 06:02:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-use-the-Splunk-table-variable-row-hostname-as-a-dynamic/m-p/225740#M14014</guid>
      <dc:creator>hemalalli</dc:creator>
      <dc:date>2015-09-16T06:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the Splunk table variable $row.hostname$ as a dynamic domain name URL in XML CDATA?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-use-the-Splunk-table-variable-row-hostname-as-a-dynamic/m-p/225741#M14015</link>
      <description>&lt;P&gt;Try escaping the dollar signs with another dollar sign like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;link&amp;gt;
&amp;lt;![CDATA[
&lt;A href="http://$$row.hostname$$/" target="test_blank"&gt;http://$$row.hostname$$/&lt;/A&gt; 
]]&amp;gt;
&amp;lt;/link&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 16 Sep 2015 13:35:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-use-the-Splunk-table-variable-row-hostname-as-a-dynamic/m-p/225741#M14015</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-09-16T13:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the Splunk table variable $row.hostname$ as a dynamic domain name URL in XML CDATA?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-use-the-Splunk-table-variable-row-hostname-as-a-dynamic/m-p/225742#M14016</link>
      <description>&lt;P&gt;Hi Woodcock, &lt;/P&gt;

&lt;P&gt;Thanks for your reply&lt;BR /&gt;
When I tried with $$row.hostname$$ , it is routing to &lt;A href="http://%24row.hostname%24/" target="test_blank"&gt;http://%24row.hostname%24/&lt;/A&gt; page&lt;/P&gt;</description>
      <pubDate>Fri, 18 Sep 2015 06:09:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-use-the-Splunk-table-variable-row-hostname-as-a-dynamic/m-p/225742#M14016</guid>
      <dc:creator>hemalalli</dc:creator>
      <dc:date>2015-09-18T06:09:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the Splunk table variable $row.hostname$ as a dynamic domain name URL in XML CDATA?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-use-the-Splunk-table-variable-row-hostname-as-a-dynamic/m-p/225743#M14017</link>
      <description>&lt;P&gt;There is most likely a bug with the way the drilldowns are configured. Try removing the &lt;CODE&gt;CDATA&lt;/CODE&gt; specification, as those might render the link to &lt;CODE&gt;plain_text&lt;/CODE&gt;.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;link&amp;gt;
  &lt;A href="http://$row.hostname$$/" target="test_blank"&gt;http://$row.hostname$$/&lt;/A&gt;
&amp;lt;/link&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 19 Sep 2015 16:30:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-use-the-Splunk-table-variable-row-hostname-as-a-dynamic/m-p/225743#M14017</guid>
      <dc:creator>alacercogitatus</dc:creator>
      <dc:date>2015-09-19T16:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the Splunk table variable $row.hostname$ as a dynamic domain name URL in XML CDATA?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-use-the-Splunk-table-variable-row-hostname-as-a-dynamic/m-p/225744#M14018</link>
      <description>&lt;P&gt;Thanks for the answers !&lt;/P&gt;

&lt;P&gt;I have notice that ":" in the hostname (eg: &lt;A href="http://www.domain.com:8080"&gt;www.domain.com:8080&lt;/A&gt;) is making some issue, and hence I have split-ed the server and port in the splunk query using eval and used the link as below.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://$row.servername$:$row.port$/" target="test_blank"&gt;http://$row.servername$:$row.port$/&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;It is working now &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2015 12:36:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-use-the-Splunk-table-variable-row-hostname-as-a-dynamic/m-p/225744#M14018</guid>
      <dc:creator>hemalalli</dc:creator>
      <dc:date>2015-09-21T12:36:50Z</dc:date>
    </item>
  </channel>
</rss>

