<?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: Pass Time input value as default to another time input in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Pass-Time-input-value-as-default-to-another-time-input/m-p/483877#M31696</link>
    <description>&lt;P&gt;This approach I have tried and its not working. I have extended your code by adding a panel to show count of events by sourcetypes. However, I am getting error ' Invalid earliest_time.' at load as well as when date time changes in input 1. &lt;/P&gt;

&lt;P&gt;Double Time inputs&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;input type="time" token="timetok1"&amp;gt;
  &amp;lt;label&amp;gt;time input 1&amp;lt;/label&amp;gt;
  &amp;lt;default&amp;gt;
    &amp;lt;earliest&amp;gt;-7d@w0&amp;lt;/earliest&amp;gt;
    &amp;lt;latest&amp;gt;@w0&amp;lt;/latest&amp;gt;
  &amp;lt;/default&amp;gt;
&amp;lt;/input&amp;gt;
&amp;lt;input type="time" token="timetok2"&amp;gt;
  &amp;lt;label&amp;gt;time input 2&amp;lt;/label&amp;gt;
  &amp;lt;default&amp;gt;
    &amp;lt;earliest&amp;gt;$timetok1.earliest$&amp;lt;/earliest&amp;gt;
    &amp;lt;latest&amp;gt;$timetok1.latest$&amp;lt;/latest&amp;gt;
  &amp;lt;/default&amp;gt;
&amp;lt;/input&amp;gt;


&amp;lt;panel&amp;gt;
  &amp;lt;table&amp;gt;
    &amp;lt;search&amp;gt;
      &amp;lt;query&amp;gt;index=* | stats count(8) by sourcetype&amp;lt;/query&amp;gt;
      &amp;lt;earliest&amp;gt;$timetok2.earliest$&amp;lt;/earliest&amp;gt;
      &amp;lt;latest&amp;gt;$timetok2.latest$&amp;lt;/latest&amp;gt;
    &amp;lt;/search&amp;gt;
    &amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&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;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 17 Jan 2020 05:49:57 GMT</pubDate>
    <dc:creator>santosh_sshanbh</dc:creator>
    <dc:date>2020-01-17T05:49:57Z</dc:date>
    <item>
      <title>Pass Time input value as default to another time input</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Pass-Time-input-value-as-default-to-another-time-input/m-p/483874#M31693</link>
      <description>&lt;P&gt;I have 2 Time inputs on a single dashboard. MY requirement is to pass the value selected for 1st Time input as a default value for 2nd Time input. I tried to use $First_Time.earliest$ for the earliest parameter of 2nd time input but nothing is working for me. &lt;/P&gt;

&lt;P&gt;Is there any way to achieve this?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2020 12:13:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Pass-Time-input-value-as-default-to-another-time-input/m-p/483874#M31693</guid>
      <dc:creator>santosh_sshanbh</dc:creator>
      <dc:date>2020-01-16T12:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: Pass Time input value as default to another time input</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Pass-Time-input-value-as-default-to-another-time-input/m-p/483875#M31694</link>
      <description>&lt;P&gt;The below xml will accomplish this on initial page load, but after that it's all bets are off.  I don't really understand why you need to do this but it will work:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;Double Time inputs&amp;lt;/label&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="time" token="timetok1"&amp;gt;
      &amp;lt;label&amp;gt;time input 1&amp;lt;/label&amp;gt;
      &amp;lt;default&amp;gt;
        &amp;lt;earliest&amp;gt;-7d@w0&amp;lt;/earliest&amp;gt;
        &amp;lt;latest&amp;gt;@w0&amp;lt;/latest&amp;gt;
      &amp;lt;/default&amp;gt;
    &amp;lt;/input&amp;gt;
    &amp;lt;input type="time" token="timetok2"&amp;gt;
      &amp;lt;label&amp;gt;&amp;lt;/label&amp;gt;
      &amp;lt;default&amp;gt;
        &amp;lt;earliest&amp;gt;$timetok1.earliest$&amp;lt;/earliest&amp;gt;
        &amp;lt;latest&amp;gt;$timetok1.latest$&amp;lt;/latest&amp;gt;
      &amp;lt;/default&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
&amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;On page load it will default the second time input with whatever is in the first time input as long as you don't have the second token &lt;CODE&gt;timetok2&lt;/CODE&gt; in the url.  If you change the first time input after that point or if you have the &lt;CODE&gt;timetok2&lt;/CODE&gt; defined in the url as anything other than &lt;CODE&gt;form.timetok2.earliest=%24timetok1.earliest%24&amp;amp;form.timetok2.latest=%24timetok1.latest%24&lt;/CODE&gt;, it will ignore whatever is in the first time field.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2020 14:28:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Pass-Time-input-value-as-default-to-another-time-input/m-p/483875#M31694</guid>
      <dc:creator>dmarling</dc:creator>
      <dc:date>2020-01-16T14:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: Pass Time input value as default to another time input</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Pass-Time-input-value-as-default-to-another-time-input/m-p/483876#M31695</link>
      <description>&lt;P&gt;Pass the token inline of the search like this &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=... earliest=$First_Time.earliest$ latest=$First_Time.earliest$
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 16 Jan 2020 14:52:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Pass-Time-input-value-as-default-to-another-time-input/m-p/483876#M31695</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2020-01-16T14:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: Pass Time input value as default to another time input</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Pass-Time-input-value-as-default-to-another-time-input/m-p/483877#M31696</link>
      <description>&lt;P&gt;This approach I have tried and its not working. I have extended your code by adding a panel to show count of events by sourcetypes. However, I am getting error ' Invalid earliest_time.' at load as well as when date time changes in input 1. &lt;/P&gt;

&lt;P&gt;Double Time inputs&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;input type="time" token="timetok1"&amp;gt;
  &amp;lt;label&amp;gt;time input 1&amp;lt;/label&amp;gt;
  &amp;lt;default&amp;gt;
    &amp;lt;earliest&amp;gt;-7d@w0&amp;lt;/earliest&amp;gt;
    &amp;lt;latest&amp;gt;@w0&amp;lt;/latest&amp;gt;
  &amp;lt;/default&amp;gt;
&amp;lt;/input&amp;gt;
&amp;lt;input type="time" token="timetok2"&amp;gt;
  &amp;lt;label&amp;gt;time input 2&amp;lt;/label&amp;gt;
  &amp;lt;default&amp;gt;
    &amp;lt;earliest&amp;gt;$timetok1.earliest$&amp;lt;/earliest&amp;gt;
    &amp;lt;latest&amp;gt;$timetok1.latest$&amp;lt;/latest&amp;gt;
  &amp;lt;/default&amp;gt;
&amp;lt;/input&amp;gt;


&amp;lt;panel&amp;gt;
  &amp;lt;table&amp;gt;
    &amp;lt;search&amp;gt;
      &amp;lt;query&amp;gt;index=* | stats count(8) by sourcetype&amp;lt;/query&amp;gt;
      &amp;lt;earliest&amp;gt;$timetok2.earliest$&amp;lt;/earliest&amp;gt;
      &amp;lt;latest&amp;gt;$timetok2.latest$&amp;lt;/latest&amp;gt;
    &amp;lt;/search&amp;gt;
    &amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&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;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 17 Jan 2020 05:49:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Pass-Time-input-value-as-default-to-another-time-input/m-p/483877#M31696</guid>
      <dc:creator>santosh_sshanbh</dc:creator>
      <dc:date>2020-01-17T05:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: Pass Time input value as default to another time input</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Pass-Time-input-value-as-default-to-another-time-input/m-p/483878#M31697</link>
      <description>&lt;P&gt;Basically I have a dril down functionality on my dashboard. The first Time input will be visible at load. And 2nd will be visible on drill down. And the default value for 2nd Time input I want to pass the current selected value for 1st Time input. &lt;/P&gt;

&lt;P&gt;The drill down search is tied to earliest and latest time range of 2nd Time input. &lt;/P&gt;</description>
      <pubDate>Fri, 17 Jan 2020 05:53:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Pass-Time-input-value-as-default-to-another-time-input/m-p/483878#M31697</guid>
      <dc:creator>santosh_sshanbh</dc:creator>
      <dc:date>2020-01-17T05:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: Pass Time input value as default to another time input</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Pass-Time-input-value-as-default-to-another-time-input/m-p/483879#M31698</link>
      <description>&lt;P&gt;I found the solution for my problem at &lt;A href="https://answers.splunk.com/answers/590552/let-dashboard-panel-accept-multiple-time-range-inp.html"&gt;https://answers.splunk.com/answers/590552/let-dashboard-panel-accept-multiple-time-range-inp.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jan 2020 06:20:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Pass-Time-input-value-as-default-to-another-time-input/m-p/483879#M31698</guid>
      <dc:creator>santosh_sshanbh</dc:creator>
      <dc:date>2020-01-17T06:20:23Z</dc:date>
    </item>
  </channel>
</rss>

