<?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: Dashboard drilldown: user clicks on value, search is ran on that value, value from this search opens a new web page in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-drilldown-user-clicks-on-value-search-is-ran-on-that/m-p/330552#M21400</link>
    <description>&lt;P&gt;I have managed to do this with that way, but I need my table not to include the field "Drilldown ID".&lt;BR /&gt;
I want to look for it in another search and then open a new web page with that value.&lt;/P&gt;</description>
    <pubDate>Tue, 12 Sep 2017 14:18:48 GMT</pubDate>
    <dc:creator>matansocher</dc:creator>
    <dc:date>2017-09-12T14:18:48Z</dc:date>
    <item>
      <title>Dashboard drilldown: user clicks on value, search is ran on that value, value from this search opens a new web page</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-drilldown-user-clicks-on-value-search-is-ran-on-that/m-p/330550#M21398</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I need to create a drilldown for my dashboard. I need to give the ability to the user to click on a value, and then run a new query and use the value that returned from the query to open a new web page with the value returned from the new query.&lt;/P&gt;

&lt;P&gt;example:&lt;BR /&gt;
I have the following table:&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/3481iBB4657596F206D6D/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;I want to exclude the "Drilldown ID" field from the table, and give the user the option to click on a record and another web page will be opened. I need the "Drilldown ID" field to be in the url of the new web page opened, but I dont want it in my table results.&lt;/P&gt;

&lt;P&gt;Is that possible?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2017 12:51:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-drilldown-user-clicks-on-value-search-is-ran-on-that/m-p/330550#M21398</guid>
      <dc:creator>matansocher</dc:creator>
      <dc:date>2017-09-12T12:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard drilldown: user clicks on value, search is ran on that value, value from this search opens a new web page</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-drilldown-user-clicks-on-value-search-is-ran-on-that/m-p/330551#M21399</link>
      <description>&lt;P&gt;This is definitely possible!&lt;/P&gt;

&lt;P&gt;add something like this to your source code after the &lt;CODE&gt;&amp;lt;/search&amp;gt;&lt;/CODE&gt; tag:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;drilldown&amp;gt;
          &amp;lt;link target="_blank"&amp;gt;URL with token like this $row.drilldownid$&amp;lt;/link&amp;gt;
        &amp;lt;/drilldown&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;you might want to add a new field that copies drilldown id for the token. &lt;BR /&gt;
&lt;CODE&gt;|eval drilldownid='Drilldown ID'&lt;/CODE&gt; or something similar in your search&lt;BR /&gt;
you can use this in your source code to not include it in your panel (also after the &lt;CODE&gt;&amp;lt;/search&amp;gt;&lt;/CODE&gt; tag)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;fields&amp;gt;["Drilldown ID","ID","Queue","Date Created"]&amp;lt;/fields&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 12 Sep 2017 13:33:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-drilldown-user-clicks-on-value-search-is-ran-on-that/m-p/330551#M21399</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2017-09-12T13:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard drilldown: user clicks on value, search is ran on that value, value from this search opens a new web page</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-drilldown-user-clicks-on-value-search-is-ran-on-that/m-p/330552#M21400</link>
      <description>&lt;P&gt;I have managed to do this with that way, but I need my table not to include the field "Drilldown ID".&lt;BR /&gt;
I want to look for it in another search and then open a new web page with that value.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2017 14:18:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-drilldown-user-clicks-on-value-search-is-ran-on-that/m-p/330552#M21400</guid>
      <dc:creator>matansocher</dc:creator>
      <dc:date>2017-09-12T14:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard drilldown: user clicks on value, search is ran on that value, value from this search opens a new web page</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-drilldown-user-clicks-on-value-search-is-ran-on-that/m-p/330553#M21401</link>
      <description>&lt;P&gt;Oh, I'm sorry, I missed that there was a search in between this one and the webpage. &lt;BR /&gt;
for drilldown reference:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.6.3/Viz/EventHandlerReference#Drilldown_event_tokens"&gt;http://docs.splunk.com/Documentation/Splunk/6.6.3/Viz/EventHandlerReference#Drilldown_event_tokens&lt;/A&gt;&lt;BR /&gt;
so for the first panel, if you're linking it to another panel in the dashboard, you could do something like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;   &amp;lt;drilldown&amp;gt;
          &amp;lt;set token="drilldownid"&amp;gt;$row.drilldownid$&amp;lt;/set&amp;gt;
   &amp;lt;/drilldown&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and then in that panel, use &lt;CODE&gt;$drilldownid$&lt;/CODE&gt; in the search and set &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;drilldown&amp;gt;
       &amp;lt;link target="_blank"&amp;gt;URL with token like this $row.fieldname$&amp;lt;/link&amp;gt;
 &amp;lt;/drilldown&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;if you want to hide the second panel before clicking on the Drilldown ID, you can add &lt;CODE&gt;depends="$drilldownid$"&lt;/CODE&gt; in the &lt;CODE&gt;&amp;lt;panel&amp;gt;&lt;/CODE&gt; tag of the second panel&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2017 14:33:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-drilldown-user-clicks-on-value-search-is-ran-on-that/m-p/330553#M21401</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2017-09-12T14:33:42Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard drilldown: user clicks on value, search is ran on that value, value from this search opens a new web page</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-drilldown-user-clicks-on-value-search-is-ran-on-that/m-p/330554#M21402</link>
      <description>&lt;P&gt;@matansocher, &lt;CODE&gt;Splunk 6.x Dashboard Examples App&lt;/CODE&gt; has &lt;STRONG&gt;"Table Element with Hidden Fields"&lt;/STRONG&gt; example which explains the exact use case. @cmerriman has taken Splunk Simple XML configuration which lets you do this. However, if you want to hide a table field and still use the same for drilldown, you should try the following two steps:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Step 1:&lt;/STRONG&gt; Use &lt;CODE&gt;fields&lt;/CODE&gt;in Simple XML to remove &lt;CODE&gt;"Drilldown ID"&lt;/CODE&gt; from being displayed in the table.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;fields&amp;gt;["ID", "Queue", "Date Created"]&amp;lt;/fields&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Step 2:&lt;/STRONG&gt;  Use predefined table token $row.$ for &lt;CODE&gt;&amp;lt;drilldown&amp;gt;&lt;/CODE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$row.Drilldown ID$
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Following is a run anywhere dashboard with mocked data and drilldown to URL just to display the token in a new browser window.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;dashboard&amp;gt;
  &amp;lt;label&amp;gt;Table hide field use in drilldown&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 "Drilldown ID"="somehexguid12ab1234",ID="INC1234567",Queue="Windows","Date Created"="2017-06-13"
| append 
    [| makeresults
     | eval "Drilldown ID"="somehexguid45cd4321",ID="INC7654321",Queue="HW","Date Created"="2017-06-19"]
| table "Drilldown ID", "ID", "Queue", "Date Created"&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-24h@h&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
          &amp;lt;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;fields&amp;gt;["ID", "Queue", "Date Created"]&amp;lt;/fields&amp;gt;
        &amp;lt;option name="count"&amp;gt;20&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;option name="percentagesRow"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="rowNumbers"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="totalsRow"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="wrap"&amp;gt;true&amp;lt;/option&amp;gt;
        &amp;lt;drilldown&amp;gt;
          &amp;lt;link target="_blank"&amp;gt;http://answers.splunk.com/$row.Drilldown ID$&amp;lt;/link&amp;gt;
        &amp;lt;/drilldown&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/dashboard&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 12 Sep 2017 15:03:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-drilldown-user-clicks-on-value-search-is-ran-on-that/m-p/330554#M21402</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-09-12T15:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard drilldown: user clicks on value, search is ran on that value, value from this search opens a new web page</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-drilldown-user-clicks-on-value-search-is-ran-on-that/m-p/330555#M21403</link>
      <description>&lt;P&gt;Thank you for your answer, it was really helpfull. I finally decided to use niketnilay's answer, it really simplified my needs.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2017 08:02:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-drilldown-user-clicks-on-value-search-is-ran-on-that/m-p/330555#M21403</guid>
      <dc:creator>matansocher</dc:creator>
      <dc:date>2017-09-14T08:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard drilldown: user clicks on value, search is ran on that value, value from this search opens a new web page</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-drilldown-user-clicks-on-value-search-is-ran-on-that/m-p/330556#M21404</link>
      <description>&lt;P&gt;Thank you!!&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2017 08:03:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-drilldown-user-clicks-on-value-search-is-ran-on-that/m-p/330556#M21404</guid>
      <dc:creator>matansocher</dc:creator>
      <dc:date>2017-09-14T08:03:12Z</dc:date>
    </item>
  </channel>
</rss>

