<?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: Set Time Picker earliest and latest values based on tokens from parent dashboard in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Set-Time-Picker-earliest-and-latest-values-based-on-tokens-from/m-p/475367#M31217</link>
    <description>&lt;P&gt;@shayhibah &lt;/P&gt;

&lt;P&gt;Have you tried &lt;CODE&gt;CDATA&lt;/CODE&gt; ? &lt;BR /&gt;
Eg:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;link&amp;gt;
&amp;lt;![CDATA[
[relative path]/[dashboard or form id]?form.[target_token_name]=[$source_value$]&amp;amp;earliest=$earliest$&amp;amp;latest=$latest$ 
]]&amp;gt;
&amp;lt;/link&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Refer below link:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.1/Viz/DrilldownLinkToDashboard#Specify_a_drilldown_target"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.1/Viz/DrilldownLinkToDashboard#Specify_a_drilldown_target&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 06 Jan 2020 12:52:37 GMT</pubDate>
    <dc:creator>kamlesh_vaghela</dc:creator>
    <dc:date>2020-01-06T12:52:37Z</dc:date>
    <item>
      <title>Set Time Picker earliest and latest values based on tokens from parent dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Set-Time-Picker-earliest-and-latest-values-based-on-tokens-from/m-p/475366#M31216</link>
      <description>&lt;P&gt;(Edited)&lt;/P&gt;

&lt;P&gt;I want to send on drilldown 2 tokens (representing time stamps) and use them as earliest and latest of the time picker in the child drilldown.&lt;/P&gt;

&lt;P&gt;on my parent side I did the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;eval token="timeFrom"&amp;gt;case(isnum("$mitre_attack_time_picker.earliest$"), "$mitre_attack_time_picker.earliest$", "$mitre_attack_time_picker.earliest$"="now", now(), 1=1, relative_time(now(), "$mitre_attack_time_picker.earliest$"))&amp;lt;/eval&amp;gt;
&amp;lt;eval token="timeTo"&amp;gt;case(isnum("$mitre_attack_time_picker.latest$"), "$mitre_attack_time_picker.latest$", "$mitre_attack_time_picker.latest$"="now", now(), 1=1, relative_time(now(), "$mitre_attack_time_picker.latest$"))&amp;lt;/eval&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;When drilling down I used:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;![CDATA[/app/my_app/my_child_dash&amp;amp;time_from=$timeFrom$&amp;amp;time_to=$timeTo$]]&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;On the child URL I see:&lt;/P&gt;

&lt;P&gt;time_from=%24timeFrom%24&amp;amp;time_to=%24timeTo%24&lt;/P&gt;

&lt;P&gt;and my panels show:  Invalid earliest_time.&lt;/P&gt;

&lt;P&gt;It seems the eval not working for some reason although when I copy it to search it works - What can be wrong?&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Workaound&lt;/STRONG&gt; I found is to use job earliest and latest&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 03:31:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Set-Time-Picker-earliest-and-latest-values-based-on-tokens-from/m-p/475366#M31216</guid>
      <dc:creator>shayhibah</dc:creator>
      <dc:date>2020-09-30T03:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: Set Time Picker earliest and latest values based on tokens from parent dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Set-Time-Picker-earliest-and-latest-values-based-on-tokens-from/m-p/475367#M31217</link>
      <description>&lt;P&gt;@shayhibah &lt;/P&gt;

&lt;P&gt;Have you tried &lt;CODE&gt;CDATA&lt;/CODE&gt; ? &lt;BR /&gt;
Eg:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;link&amp;gt;
&amp;lt;![CDATA[
[relative path]/[dashboard or form id]?form.[target_token_name]=[$source_value$]&amp;amp;earliest=$earliest$&amp;amp;latest=$latest$ 
]]&amp;gt;
&amp;lt;/link&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Refer below link:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.1/Viz/DrilldownLinkToDashboard#Specify_a_drilldown_target"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.1/Viz/DrilldownLinkToDashboard#Specify_a_drilldown_target&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jan 2020 12:52:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Set-Time-Picker-earliest-and-latest-values-based-on-tokens-from/m-p/475367#M31217</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2020-01-06T12:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: Set Time Picker earliest and latest values based on tokens from parent dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Set-Time-Picker-earliest-and-latest-values-based-on-tokens-from/m-p/475368#M31218</link>
      <description>&lt;P&gt;hi @kamlesh_vaghela &lt;/P&gt;

&lt;P&gt;I think the issue is with epoch time.&lt;BR /&gt;
earliest and latest sould be epoch so I need to convert it first to epoch and then add it to the URL.&lt;BR /&gt;
The problem is there are different options to time picker ("now", X@X, 123456132) so I need to support them all.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jan 2020 13:01:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Set-Time-Picker-earliest-and-latest-values-based-on-tokens-from/m-p/475368#M31218</guid>
      <dc:creator>shayhibah</dc:creator>
      <dc:date>2020-01-06T13:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: Set Time Picker earliest and latest values based on tokens from parent dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Set-Time-Picker-earliest-and-latest-values-based-on-tokens-from/m-p/475369#M31219</link>
      <description>&lt;P&gt;I used:&lt;/P&gt;

&lt;P&gt;case(isnum("$mitre_attack_time_picker.earliest$"), "$mitre_attack_time_picker.earliest$", "$mitre_attack_time_picker.earliest$"="now", now(), 1=1, relative_time(now(), "$mitre_attack_time_picker.earliest$"))&lt;/P&gt;

&lt;P&gt;but for some reason, I can see after drilldown in URL: $timeFrom$ instead the results of the eval&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 03:31:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Set-Time-Picker-earliest-and-latest-values-based-on-tokens-from/m-p/475369#M31219</guid>
      <dc:creator>shayhibah</dc:creator>
      <dc:date>2020-09-30T03:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: Set Time Picker earliest and latest values based on tokens from parent dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Set-Time-Picker-earliest-and-latest-values-based-on-tokens-from/m-p/475370#M31220</link>
      <description>&lt;P&gt;I edited the question&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jan 2020 13:45:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Set-Time-Picker-earliest-and-latest-values-based-on-tokens-from/m-p/475370#M31220</guid>
      <dc:creator>shayhibah</dc:creator>
      <dc:date>2020-01-06T13:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: Set Time Picker earliest and latest values based on tokens from parent dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Set-Time-Picker-earliest-and-latest-values-based-on-tokens-from/m-p/475371#M31221</link>
      <description>&lt;P&gt;@shayhibah&lt;BR /&gt;
Can you please try this ?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;eval token="timeFrom"&amp;gt;if(isnum('earliest'),'earliest',relative_time(now(),'earliest')&amp;lt;/eval&amp;gt;
&amp;lt;eval token="timeTo"&amp;gt;if(isnum('latest'),'latest',relative_time(now(),'latest')&amp;lt;/eval&amp;gt;

         OR

&amp;lt;eval token="timeFrom"&amp;gt;if(isnum('mitre_attack_time_picker.earliest'),'mitre_attack_time_picker.earliest',relative_time(now(),'mitre_attack_time_picker.earliest')&amp;lt;/eval&amp;gt;
&amp;lt;eval token="timeTo"&amp;gt;if(isnum('mitre_attack_time_picker.latest'),'mitre_attack_time_picker.latest',relative_time(now(),'mitre_attack_time_picker.latest')&amp;lt;/eval&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 08 Jan 2020 06:57:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Set-Time-Picker-earliest-and-latest-values-based-on-tokens-from/m-p/475371#M31221</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2020-01-08T06:57:46Z</dc:date>
    </item>
  </channel>
</rss>

