<?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: Trying to pass time range to the splunk search in drilldown table to open in a new window in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Trying-to-pass-time-range-to-the-splunk-search-in-drilldown/m-p/677414#M55481</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/199008"&gt;@nithin204&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;the way to pass a parameter to a drilldown is the one I described, please try this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;link&amp;gt;search?q=$drilldown_srch|u$$&amp;amp;amp;earliest=$field1.earliest$&amp;amp;amp;latest=$field1.latest$&amp;lt;/link&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;anyway, usually a drilldown search takes the same time variables of the original.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Tue, 13 Feb 2024 14:48:50 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2024-02-13T14:48:50Z</dc:date>
    <item>
      <title>Trying to pass time range to the splunk search in drilldown table to open in a new window</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Trying-to-pass-time-range-to-the-splunk-search-in-drilldown/m-p/677367#M55475</link>
      <description>&lt;P&gt;Hi All,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to pass time variables to the search when I click on a value in drilldown dashbaord. Below is the the source of the dashboard&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;form version="1.1"&amp;gt;
&amp;lt;label&amp;gt;test12&amp;lt;/label&amp;gt;
&amp;lt;fieldset submitButton="false"&amp;gt;
&amp;lt;input type="time" token="field1"&amp;gt;
&amp;lt;label&amp;gt;Time&amp;lt;/label&amp;gt;
&amp;lt;default&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;/default&amp;gt;
&amp;lt;/input&amp;gt;
&amp;lt;/fieldset&amp;gt;
&amp;lt;row&amp;gt;
&amp;lt;panel&amp;gt;
&amp;lt;title&amp;gt;test12&amp;lt;/title&amp;gt;
&amp;lt;table&amp;gt;
&amp;lt;search&amp;gt;
&amp;lt;query&amp;gt;index=_internal status=* sourcetype=splunkd
|lookup test12 name AS status OUTPUT value | stats count by value&amp;lt;/query&amp;gt;
&amp;lt;earliest&amp;gt;$field1.earliest$&amp;lt;/earliest&amp;gt;
&amp;lt;latest&amp;gt;$field1.latest$&amp;lt;/latest&amp;gt;
&amp;lt;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;
&amp;lt;/search&amp;gt;
&amp;lt;option name="drilldown"&amp;gt;row&amp;lt;/option&amp;gt;
&amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;
&amp;lt;drilldown target="_blank"&amp;gt;
&amp;lt;set token="drilldown_srch"&amp;gt;index=_internal status=* sourcetype=splunkd |lookup test12.csv name as status output value | where value=$row.value$&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;/form&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;I tried adding the time variables in the link as below but no luck&lt;/P&gt;
&lt;P&gt;&amp;lt;link&amp;gt;search?q=$drilldown_srch?earliest=$field1.earliest&amp;amp;latest=$field1.latest$|u$&amp;lt;/link&amp;gt;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2024 08:58:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Trying-to-pass-time-range-to-the-splunk-search-in-drilldown/m-p/677367#M55475</guid>
      <dc:creator>nithin204</dc:creator>
      <dc:date>2024-02-13T08:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to pass time range to the splunk search in drilldown table to open in a new window</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Trying-to-pass-time-range-to-the-splunk-search-in-drilldown/m-p/677368#M55476</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/199008"&gt;@nithin204&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;what's the error you have?&lt;/P&gt;&lt;P&gt;anyway the string you're using is correct (I suppose that the second $ was a mistyping), but in the dashboard editor you have to use a different notation for &amp;amp;, you must use &amp;amp;amp;:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;link&amp;gt;search?q=$drilldown_srch?earliest=$field1.earliest$&amp;amp;amp;latest=$field1.latest$|u$&amp;lt;/link&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2024 07:50:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Trying-to-pass-time-range-to-the-splunk-search-in-drilldown/m-p/677368#M55476</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-02-13T07:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to pass time range to the splunk search in drilldown table to open in a new window</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Trying-to-pass-time-range-to-the-splunk-search-in-drilldown/m-p/677411#M55480</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have to use the second $ as well after drilldown_srch as that is token.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;link&amp;gt;search?q=$drilldown_srch$?earliest=$field1.earliest$&amp;amp;amp;latest=$field1.latest$|u$&amp;lt;/link&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;If I skip the second "$" after the drillwon_srch, and if I click the value the new search opens as $drilldown_srch in the search bar in new window.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I use the $drilldown_srch$ , the search is working correct but it is not taking the time variables. It always have a default of 15mins.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2024 14:42:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Trying-to-pass-time-range-to-the-splunk-search-in-drilldown/m-p/677411#M55480</guid>
      <dc:creator>nithin204</dc:creator>
      <dc:date>2024-02-13T14:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to pass time range to the splunk search in drilldown table to open in a new window</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Trying-to-pass-time-range-to-the-splunk-search-in-drilldown/m-p/677414#M55481</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/199008"&gt;@nithin204&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;the way to pass a parameter to a drilldown is the one I described, please try this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;link&amp;gt;search?q=$drilldown_srch|u$$&amp;amp;amp;earliest=$field1.earliest$&amp;amp;amp;latest=$field1.latest$&amp;lt;/link&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;anyway, usually a drilldown search takes the same time variables of the original.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2024 14:48:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Trying-to-pass-time-range-to-the-splunk-search-in-drilldown/m-p/677414#M55481</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-02-13T14:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to pass time range to the splunk search in drilldown table to open in a new window</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Trying-to-pass-time-range-to-the-splunk-search-in-drilldown/m-p/677420#M55482</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/199008"&gt;@nithin204&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;good for you, see next time!&lt;/P&gt;&lt;P&gt;Ciao and happy splunking&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S.: Karma Points are appreciated &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2024 15:11:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Trying-to-pass-time-range-to-the-splunk-search-in-drilldown/m-p/677420#M55482</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-02-13T15:11:08Z</dc:date>
    </item>
  </channel>
</rss>

