<?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 Send Drilldown Search to a New Window in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Send-Drilldown-Search-to-a-New-Window/m-p/198447#M57378</link>
    <description>&lt;P&gt;I want to click on an entry in a table and see the record or records behind it in a new window.&lt;BR /&gt;
I found one question which may be similar to this (&lt;A href="http://answers.splunk.com/answers/28208/how-to-drill-down-launch-another-search-with-parameter-from-results-table-in-dashboard"&gt;http://answers.splunk.com/answers/28208/how-to-drill-down-launch-another-search-with-parameter-from-results-table-in-dashboard&lt;/A&gt;), but the OP brought in XML code and the answer didn't lend itself at all to what I am after.&lt;/P&gt;

&lt;P&gt;It may be nice to have the drilldown simply launch new searches in new tabs/windows, but when I look at a row, I am mostly interested in seeing the rest of the details behind the event or events which created it without losing the search already on the screen.  In many cases, having the current results up for comparison against the details of the event(s) is preferred.&lt;/P&gt;</description>
    <pubDate>Mon, 24 Mar 2014 16:47:18 GMT</pubDate>
    <dc:creator>landen99</dc:creator>
    <dc:date>2014-03-24T16:47:18Z</dc:date>
    <item>
      <title>Send Drilldown Search to a New Window</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Send-Drilldown-Search-to-a-New-Window/m-p/198447#M57378</link>
      <description>&lt;P&gt;I want to click on an entry in a table and see the record or records behind it in a new window.&lt;BR /&gt;
I found one question which may be similar to this (&lt;A href="http://answers.splunk.com/answers/28208/how-to-drill-down-launch-another-search-with-parameter-from-results-table-in-dashboard"&gt;http://answers.splunk.com/answers/28208/how-to-drill-down-launch-another-search-with-parameter-from-results-table-in-dashboard&lt;/A&gt;), but the OP brought in XML code and the answer didn't lend itself at all to what I am after.&lt;/P&gt;

&lt;P&gt;It may be nice to have the drilldown simply launch new searches in new tabs/windows, but when I look at a row, I am mostly interested in seeing the rest of the details behind the event or events which created it without losing the search already on the screen.  In many cases, having the current results up for comparison against the details of the event(s) is preferred.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Mar 2014 16:47:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Send-Drilldown-Search-to-a-New-Window/m-p/198447#M57378</guid>
      <dc:creator>landen99</dc:creator>
      <dc:date>2014-03-24T16:47:18Z</dc:date>
    </item>
    <item>
      <title>Re: Send Drilldown Search to a New Window</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Send-Drilldown-Search-to-a-New-Window/m-p/198448#M57379</link>
      <description>&lt;P&gt;Are you using SimpleXML?&lt;/P&gt;

&lt;P&gt;If so, take a look at this: &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0.2/Viz/PanelreferenceforSimplifiedXML#Drilldown_elements"&gt;http://docs.splunk.com/Documentation/Splunk/6.0.2/Viz/PanelreferenceforSimplifiedXML#Drilldown_elements&lt;/A&gt;&lt;BR /&gt;
You can specify a &lt;CODE&gt;target&lt;/CODE&gt; attribute for the &lt;CODE&gt;drilldown&lt;/CODE&gt; element to control where the click leads to.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Mar 2014 18:18:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Send-Drilldown-Search-to-a-New-Window/m-p/198448#M57379</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-03-24T18:18:37Z</dc:date>
    </item>
    <item>
      <title>Re: Send Drilldown Search to a New Window</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Send-Drilldown-Search-to-a-New-Window/m-p/198449#M57380</link>
      <description>&lt;P&gt;How do I know if I am using SimpleXML?  The only time I notice XML is when I am editing a dashboard using the XML option.  Your reference mentioned adding a "_blank" to the link, but where are the SimpleXML code and the link option within it?&lt;/P&gt;</description>
      <pubDate>Mon, 24 Mar 2014 18:29:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Send-Drilldown-Search-to-a-New-Window/m-p/198449#M57380</guid>
      <dc:creator>landen99</dc:creator>
      <dc:date>2014-03-24T18:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: Send Drilldown Search to a New Window</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Send-Drilldown-Search-to-a-New-Window/m-p/198450#M57381</link>
      <description>&lt;P&gt;You're using SimpleXML if you have the graphical drag-and-drop dashboard editor available.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Mar 2014 18:31:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Send-Drilldown-Search-to-a-New-Window/m-p/198450#M57381</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-03-24T18:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: Send Drilldown Search to a New Window</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Send-Drilldown-Search-to-a-New-Window/m-p/198451#M57382</link>
      <description>&lt;P&gt;So when I click "edit Panel", that is SimpleXML?  Where would the "_blank" go using that gui interface?  I am familiar with the drilldown gui controls under the "edit Panels" option, Panel-General menu.&lt;/P&gt;

&lt;P&gt;Sidenote:  Also, I learned the hard way that text from search results cannot be highlighted while in Panel edit mode.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Mar 2014 16:51:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Send-Drilldown-Search-to-a-New-Window/m-p/198451#M57382</guid>
      <dc:creator>landen99</dc:creator>
      <dc:date>2014-03-26T16:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: Send Drilldown Search to a New Window</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Send-Drilldown-Search-to-a-New-Window/m-p/198452#M57383</link>
      <description>&lt;P&gt;Yeah, that's SimpleXML. Not sure if the &lt;CODE&gt;target&lt;/CODE&gt; attribute is available in the UI, you can always choose Edit Source and add the attribute there.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Mar 2014 17:06:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Send-Drilldown-Search-to-a-New-Window/m-p/198452#M57383</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-03-26T17:06:24Z</dc:date>
    </item>
    <item>
      <title>Re: Send Drilldown Search to a New Window</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Send-Drilldown-Search-to-a-New-Window/m-p/198453#M57384</link>
      <description>&lt;P&gt;Based on your feedback and the link that you provided above, I believe that the code to send drilldown to a new window would be added between the table code tags as:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;~~&amp;lt;drilldown&amp;gt;
  &amp;lt;link&amp;gt;
      _blank
  &amp;lt;/link&amp;gt;
&amp;lt;/drilldown&amp;gt;~~
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Does that look right?&lt;/P&gt;

&lt;P&gt;Field passing to Splunk, other webpages, etc. seems to require XML customization of each Panel in a dashboard.&lt;/P&gt;

&lt;P&gt;Is there a way to pass the data in a row straight to the clipboard when clicked?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;~~&amp;lt;drilldown&amp;gt;
  &amp;lt;link field="A"&amp;gt;
      clipboard=$dest_value$
  &amp;lt;/link&amp;gt;
&amp;lt;/drilldown&amp;gt;~~
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Am I on the right trail?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Mar 2014 18:10:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Send-Drilldown-Search-to-a-New-Window/m-p/198453#M57384</guid>
      <dc:creator>landen99</dc:creator>
      <dc:date>2014-03-26T18:10:25Z</dc:date>
    </item>
    <item>
      <title>Re: Send Drilldown Search to a New Window</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Send-Drilldown-Search-to-a-New-Window/m-p/198454#M57385</link>
      <description>&lt;P&gt;You're looking for something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;drilldown target="_blank"&amp;gt;
  &amp;lt;link&amp;gt;your_page?field=$field_name$&amp;lt;/link&amp;gt;
&amp;lt;/drilldown&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;As for copying stuff to the clipboard, JavaScript cannot access the clipboard in any modern browser for security reasons.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Mar 2014 18:25:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Send-Drilldown-Search-to-a-New-Window/m-p/198454#M57385</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-03-26T18:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: Send Drilldown Search to a New Window</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Send-Drilldown-Search-to-a-New-Window/m-p/198455#M57386</link>
      <description>&lt;P&gt;Will that code work verbatim to launch a Splunk drilldown search in a new window or do I have to put something specific into the "your_page" part of your code?&lt;/P&gt;

&lt;P&gt;Is there a way to throw the field or row values into notepad, instead of the clipboard?&lt;/P&gt;

&lt;P&gt;Added:&lt;BR /&gt;
Any way to launch drilldown searches from the standard search bar into new window, too (not dashboard).&lt;/P&gt;</description>
      <pubDate>Wed, 26 Mar 2014 18:50:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Send-Drilldown-Search-to-a-New-Window/m-p/198455#M57386</guid>
      <dc:creator>landen99</dc:creator>
      <dc:date>2014-03-26T18:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: Send Drilldown Search to a New Window</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Send-Drilldown-Search-to-a-New-Window/m-p/198456#M57387</link>
      <description>&lt;P&gt;You will have to replace the content of the &lt;CODE&gt;link&lt;/CODE&gt; tag with your drilldown destination and passed fields.&lt;/P&gt;

&lt;P&gt;I don't think JavaScript is allowed to somehow communicate with external programs such as notepad, that would seriously violate the browser sandbox.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Mar 2014 20:38:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Send-Drilldown-Search-to-a-New-Window/m-p/198456#M57387</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-03-26T20:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: Send Drilldown Search to a New Window</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Send-Drilldown-Search-to-a-New-Window/m-p/198457#M57388</link>
      <description>&lt;P&gt;The browser can create and save .bat files and .txt files. It can launch .bat files to load notepad with the new file.&lt;/P&gt;

&lt;P&gt;The sandbox isolates tabs from each other and from main memory so that they cannot steal information.&lt;/P&gt;

&lt;P&gt;On the issue of launching a drilldown search into a new window, what content would be appropriate for the link tag?  Does this link tag have to be customized for each dashboard panel search?  Is there no "leave my current tab alone and  do your Splunk search work in another tab" general user option/setting?  If not, where would be the best place to suggest such a feature?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Mar 2014 12:46:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Send-Drilldown-Search-to-a-New-Window/m-p/198457#M57388</guid>
      <dc:creator>landen99</dc:creator>
      <dc:date>2014-03-27T12:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: Send Drilldown Search to a New Window</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Send-Drilldown-Search-to-a-New-Window/m-p/198458#M57389</link>
      <description>&lt;P&gt;The &lt;CODE&gt;link&lt;/CODE&gt; tag content tells Splunk where you want to drill down to, and what data you want to pass. There's no one-size-fits-all answer to that for every imaginable custom drilldown.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Mar 2014 12:50:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Send-Drilldown-Search-to-a-New-Window/m-p/198458#M57389</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-03-27T12:50:01Z</dc:date>
    </item>
    <item>
      <title>Re: Send Drilldown Search to a New Window</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Send-Drilldown-Search-to-a-New-Window/m-p/198459#M57390</link>
      <description>&lt;P&gt;The client manages to launch searches just fine within the same window.  Isn't there a way for any drilldown click to just tell it to, "Send that drilldown search to another tab and leave this tab alone." ?  I have tried right clicking where it would drilldown in order to copy the url for the search which the drilldown would execute, but I am not seeing any "copy link address" option, even though I can see the url of the search at the bottom of the web browser.  Is there a way to enable that option?&lt;/P&gt;</description>
      <pubDate>Fri, 28 Mar 2014 14:12:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Send-Drilldown-Search-to-a-New-Window/m-p/198459#M57390</guid>
      <dc:creator>landen99</dc:creator>
      <dc:date>2014-03-28T14:12:27Z</dc:date>
    </item>
    <item>
      <title>Re: Send Drilldown Search to a New Window</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Send-Drilldown-Search-to-a-New-Window/m-p/198460#M57391</link>
      <description>&lt;P&gt;Wait... are you trying to run the default drilldowns in a new window or are you trying to run custom drilldowns in a new window?&lt;/P&gt;</description>
      <pubDate>Fri, 28 Mar 2014 15:54:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Send-Drilldown-Search-to-a-New-Window/m-p/198460#M57391</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-03-28T15:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: Send Drilldown Search to a New Window</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Send-Drilldown-Search-to-a-New-Window/m-p/198461#M57392</link>
      <description>&lt;P&gt;All drilldowns should launch in a new tab.  My understanding is that default drilldowns are when you click a field in the search results.  I know that you can click a fieldname on the left and drilldown through those fields but I don't know if they qualify as default drilldowns or custom drilldowns.  I can't think of any other kind of drilldown example at the moment.  What are the various kinds and how are they different in the XML treatment?  Are drilldowns in searches considered different from drilldowns in dashboards, except in the ability to manipulate the XML?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Apr 2014 12:22:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Send-Drilldown-Search-to-a-New-Window/m-p/198461#M57392</guid>
      <dc:creator>landen99</dc:creator>
      <dc:date>2014-04-01T12:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: Send Drilldown Search to a New Window</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Send-Drilldown-Search-to-a-New-Window/m-p/198462#M57393</link>
      <description>&lt;P&gt;Because I use Splunk Answers as my own personal knowledge base, here's a single consolidated answer that includes a few tricks I just discovered...&lt;/P&gt;

&lt;P&gt;The follows shows a few things:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;The use of an extra token to store the drill-down search string using a &lt;CODE&gt;&amp;lt;set&amp;gt;&lt;/CODE&gt;&lt;/LI&gt;
&lt;LI&gt;How to handle a &lt;CODE&gt;field="value with spaces"&lt;/CODE&gt; in your search.  (Using the &lt;CODE&gt;$token|s$&lt;/CODE&gt; syntax)&lt;/LI&gt;
&lt;LI&gt;How to avoid manually URL encoding a Splunk search string (using the &lt;CODE&gt;$token|u$&lt;/CODE&gt; syntax)&lt;/LI&gt;
&lt;LI&gt;How to avoid hard-coding the app-path prefix.  (Not sure this ALWAYS works, but seems to work for me)&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Example Simple XML:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;dashboard&amp;gt;
  &amp;lt;label&amp;gt;Example - Drilldown to a different page&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;index=_internal sourcetype=splunkd | cluster showcount=true | sort - cluster_count | table _time, log_level, component, message&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-1h@m&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;@m&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;row&amp;lt;/option&amp;gt;
        &amp;lt;drilldown target="_blank"&amp;gt;
          &amp;lt;set token="drilldown_srch"&amp;gt;index=_internal sourcetype=splunkd $row.log_level$ $row.component$ message=$row.message|s$&amp;lt;/set&amp;gt;
          &amp;lt;link&amp;gt;search?q=$drilldown_srch|u$&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>Fri, 14 Oct 2016 20:53:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Send-Drilldown-Search-to-a-New-Window/m-p/198462#M57393</guid>
      <dc:creator>Lowell</dc:creator>
      <dc:date>2016-10-14T20:53:58Z</dc:date>
    </item>
    <item>
      <title>Re: Send Drilldown Search to a New Window</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Send-Drilldown-Search-to-a-New-Window/m-p/198463#M57394</link>
      <description>&lt;P&gt;Great solution!  This worked well for me.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2017 03:29:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Send-Drilldown-Search-to-a-New-Window/m-p/198463#M57394</guid>
      <dc:creator>kranzrm</dc:creator>
      <dc:date>2017-06-14T03:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: Send Drilldown Search to a New Window</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Send-Drilldown-Search-to-a-New-Window/m-p/198464#M57395</link>
      <description>&lt;P&gt;This is a very nice way to do this!&lt;/P&gt;</description>
      <pubDate>Thu, 10 May 2018 12:54:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Send-Drilldown-Search-to-a-New-Window/m-p/198464#M57395</guid>
      <dc:creator>dflodstrom</dc:creator>
      <dc:date>2018-05-10T12:54:58Z</dc:date>
    </item>
  </channel>
</rss>

