<?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 Redirect hyperlink of one column to another column in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-Redirect-hyperlink-of-one-column-to-another-column/m-p/517229#M145424</link>
    <description>&lt;P&gt;Thank you so much .It works&lt;/P&gt;</description>
    <pubDate>Tue, 01 Sep 2020 13:01:50 GMT</pubDate>
    <dc:creator>aditsss</dc:creator>
    <dc:date>2020-09-01T13:01:50Z</dc:date>
    <item>
      <title>How to Redirect hyperlink of one column to another column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Redirect-hyperlink-of-one-column-to-another-column/m-p/516149#M145019</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;I have a requirement like this.&lt;/P&gt;&lt;P&gt;This is my search query.&lt;/P&gt;&lt;P&gt;index=xyz sourcetype=yui source="user.log" process (Type ="*") (Name_Id ="*") (Request_URL ="*")| convert timeformat="%Y-%m-%d" ctime(_time) AS Date| rex field=Request_URL "(?&amp;lt;id&amp;gt;[A_Za-z0-9]{8}[\-][A_Za-z0-9]{4}[\-][A_Za-z0-9]{4}[\-][A_Za-z0-9]{4}[\-][A_Za-z0-9]{12})"|fillnull value="" id| eval ClickHere= "https://cvb/api/?processGroupId=".id|stats count by Date Name_Id Type Request_URL id ClickHere&lt;/P&gt;&lt;P&gt;So I am getting data for&amp;nbsp;Date Name_Id Type Request_URL id ClickHere. Where ClickHere column is a hyperlink.&lt;/P&gt;&lt;P&gt;My Dashboard script:&lt;/P&gt;&lt;P&gt;&amp;lt;dashboard theme="dark"&amp;gt;&lt;BR /&gt;&amp;lt;label&amp;gt;Process&amp;lt;/label&amp;gt;&lt;BR /&gt;&amp;lt;row&amp;gt;&lt;BR /&gt;&amp;lt;panel&amp;gt;&lt;BR /&gt;&amp;lt;table&amp;gt;&lt;BR /&gt;&amp;lt;search&amp;gt;&lt;BR /&gt;&amp;lt;query&amp;gt;index=xyz sourcetype=yui source="user.log" process (Type ="*") (Name_Id ="*") (Request_URL ="*")| convert timeformat="%Y-%m-%d" ctime(_time) AS Date| rex field=Request_URL "(?&amp;lt;id&amp;gt;[A_Za-z0-9]{8}[\-][A_Za-z0-9]{4}[\-][A_Za-z0-9]{4}[\-][A_Za-z0-9]{4}[\-][A_Za-z0-9]{12})"|fillnull value="" id| eval ClickHere= "https://cvb/api/?processGroupId=".id|stats count by Date Name_Id Type Request_URL id ClickHere&amp;lt;/query&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;lt;earliest&amp;gt;-1d@d&amp;lt;/earliest&amp;gt;&lt;BR /&gt;&amp;lt;latest&amp;gt;@d&amp;lt;/latest&amp;gt;&lt;BR /&gt;&amp;lt;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;&lt;BR /&gt;&amp;lt;/search&amp;gt;&lt;BR /&gt;&amp;lt;option name="count"&amp;gt;100&amp;lt;/option&amp;gt;&lt;BR /&gt;&amp;lt;option name="dataOverlayMode"&amp;gt;none&amp;lt;/option&amp;gt;&lt;BR /&gt;&amp;lt;option name="drilldown"&amp;gt;cell&amp;lt;/option&amp;gt;&lt;BR /&gt;&amp;lt;option name="percentagesRow"&amp;gt;false&amp;lt;/option&amp;gt;&lt;BR /&gt;&amp;lt;option name="rowNumbers"&amp;gt;false&amp;lt;/option&amp;gt;&lt;BR /&gt;&amp;lt;option name="totalsRow"&amp;gt;false&amp;lt;/option&amp;gt;&lt;BR /&gt;&amp;lt;option name="wrap"&amp;gt;true&amp;lt;/option&amp;gt;&lt;BR /&gt;&amp;lt;drilldown&amp;gt;&lt;BR /&gt;&amp;lt;condition field="ClickHere"&amp;gt;&lt;BR /&gt;&amp;lt;link target="_blank"&amp;gt;$row.ClickHere|n$&amp;lt;/link&amp;gt;&lt;BR /&gt;&amp;lt;/condition&amp;gt;&lt;BR /&gt;&amp;lt;/drilldown&amp;gt;&lt;BR /&gt;&amp;lt;/table&amp;gt;&lt;BR /&gt;&amp;lt;/panel&amp;gt;&lt;BR /&gt;&amp;lt;/row&amp;gt;&lt;BR /&gt;&amp;lt;/dashboard&amp;gt;&lt;/P&gt;&lt;P&gt;Sample of Request_URL's(Multiple URL' are there)&lt;/P&gt;&lt;P&gt;&lt;A href="https://cgy/api/flow/process-groups/ef451556-016d-1000-0000-00005025535d" target="_blank"&gt;https://cgy/api/flow/groups/ef451556-016d-1000-0000-00005025535d&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://jkl/api/process-groups/1b6877ea-0174-1000-0000-00003d8351cd/variable-registry" target="_blank"&gt;https://jkl/api/groups/1b6877ea-0174-1000-0000-00003d8351cd/variable-registry&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Sample of ClickHere column Hyperlink&lt;/P&gt;&lt;P&gt;&lt;A href="https://abc/api/?processGroupId=ef451556-016d-1000-0000-00005025535d" target="_blank"&gt;https://abc/api/?processGroupId=ef451556-016d-1000-0000-00005025535d&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://abc/api/?processGroupId=1b6877ea-0174-1000-0000-00003d8351cd" target="_blank"&gt;https://abc/api/?processGroupId=1b6877ea-0174-1000-0000-00003d8351cd&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I want when I click on Request_URL&amp;nbsp;&lt;A href="https://cgy/api/flow/process-groups/ef451556-016d-1000-0000-00005025535d" target="_blank"&gt;https://cgy/api/flow/groups/ef451556-016d-1000-0000-00005025535d&lt;/A&gt;&amp;nbsp;It should open this ClickHere column hyperlink(https://abc/api/?processGroupId=ef451556-016d-1000-0000-00005025535d.&lt;/P&gt;&lt;P&gt;When I click on Request_URL&amp;nbsp;&lt;A href="https://jkl/api/groups/1b6877ea-0174-1000-0000-00003d8351cd/variable-registry" target="_blank"&gt;https://jkl/api/groups/1b6877ea-0174-1000-0000-00003d8351cd/variable-registry&lt;/A&gt;&amp;nbsp; It should open&amp;nbsp;this ClickHere column hyperlink&amp;nbsp;&lt;A href="https://abc/api/?processGroupId=1b6877ea-0174-1000-0000-00003d8351cd" target="_blank"&gt;https://abc/api/?processGroupId=1b6877ea-0174-1000-0000-00003d8351cd&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In short I want to remove ClickHere column and when I click on Request_URL it should take me to the link that Clickhere column was taken to.&lt;/P&gt;&lt;P&gt;Can someone guide me how to do this in splunk.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Aug 2020 21:12:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Redirect-hyperlink-of-one-column-to-another-column/m-p/516149#M145019</guid>
      <dc:creator>aditsss</dc:creator>
      <dc:date>2020-08-25T21:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to Redirect hyperlink of one column to another column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Redirect-hyperlink-of-one-column-to-another-column/m-p/516159#M145025</link>
      <description>&lt;P&gt;There are at least 2 ways to do this&lt;/P&gt;&lt;P&gt;See this dashboard&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;dashboard&amp;gt;
  &amp;lt;label&amp;gt;Click&amp;lt;/label&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;| makeresults
| eval Request_URL=split("https://cgy/api/flow/groups/ef451556-016d-1000-0000-00005025535d,https://jkl/api/groups/1b6877ea-0174-1000-0000-00003d8351cd/variable-registry",",")
| mvexpand Request_URL
| rex field=Request_URL "(?&amp;amp;lt;id&amp;amp;gt;[A_Za-z0-9]{8}[\-][A_Za-z0-9]{4}[\-][A_Za-z0-9]{4}[\-][A_Za-z0-9]{4}[\-][A_Za-z0-9]{12})"
| fillnull value="" id
| eval ClickHere= "https://cvb/api/?processGroupId=".id
          &amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;$earliest$&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;$latest$&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;fields&amp;gt;"Request_URL", "id"&amp;lt;/fields&amp;gt;
        &amp;lt;drilldown&amp;gt;
          &amp;lt;condition field="Request_URL"&amp;gt;
            &amp;lt;link target="_blank"&amp;gt;$row.ClickHere|n$&amp;lt;/link&amp;gt;
          &amp;lt;/condition&amp;gt;
          &amp;lt;condition field="id"&amp;gt;
            &amp;lt;link target="_blank"&amp;gt;https://cvb/api/?processGroupId_URL=$row.id$&amp;lt;/link&amp;gt;
          &amp;lt;/condition&amp;gt;
        &amp;lt;/drilldown&amp;gt;
        &amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/dashboard&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;It uses the &amp;lt;fields&amp;gt; XML element to restrict the fields that are displayed in the table even though the query calculates those fields. Those hidden fields are then available to the drilldown and part of the $row$ elements.&lt;/P&gt;&lt;P&gt;You can either pre-calculate the URL as you have done, or just use the fixed string + id in the drilldown. See the two examples above.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Aug 2020 22:26:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Redirect-hyperlink-of-one-column-to-another-column/m-p/516159#M145025</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2020-08-25T22:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to Redirect hyperlink of one column to another column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Redirect-hyperlink-of-one-column-to-another-column/m-p/517229#M145424</link>
      <description>&lt;P&gt;Thank you so much .It works&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2020 13:01:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Redirect-hyperlink-of-one-column-to-another-column/m-p/517229#M145424</guid>
      <dc:creator>aditsss</dc:creator>
      <dc:date>2020-09-01T13:01:50Z</dc:date>
    </item>
  </channel>
</rss>

