<?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: Use Timepicker Token With Field in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Use-Timepicker-Token-With-Field/m-p/417022#M27435</link>
    <description>&lt;P&gt;Hi @sdchakraborty . Thank you for coming back to me.&lt;/P&gt;

&lt;P&gt;I'm sorry to ask particularly as you've been so helpful but which element do I use in my dashboard. I'm having a little difficulty in following the data/field journey?&lt;/P&gt;

&lt;P&gt;Many thanks and kind regards&lt;/P&gt;

&lt;P&gt;Chris &lt;/P&gt;</description>
    <pubDate>Thu, 28 Feb 2019 11:36:15 GMT</pubDate>
    <dc:creator>IRHM73</dc:creator>
    <dc:date>2019-02-28T11:36:15Z</dc:date>
    <item>
      <title>Use Timepicker Token With Field</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Use-Timepicker-Token-With-Field/m-p/417018#M27431</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I wonder whether someone could help me please.&lt;/P&gt;

&lt;P&gt;I'm using a query which interrogates a Summary Index containing two fields called Epoch_STime and Epoch_ETime.&lt;/P&gt;

&lt;P&gt;I'm then using the query in a dashboard panel which includes a timepicker called "timerange".&lt;/P&gt;

&lt;P&gt;What I'm trying to do is set the earliest time from the timepicker to the Epoch_STime and the latest date of the timepicker to Epoch_ETime.&lt;/P&gt;

&lt;P&gt;I've tried earliest=$Epoch_Stime$ and the same for the latest time , but I can't get this to work.&lt;/P&gt;

&lt;P&gt;Could someone possibly look at this please and let me know where I've gone wrong?&lt;/P&gt;

&lt;P&gt;Many thanks and kind regards&lt;/P&gt;

&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 23:31:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Use-Timepicker-Token-With-Field/m-p/417018#M27431</guid>
      <dc:creator>IRHM73</dc:creator>
      <dc:date>2020-09-29T23:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: Use Timepicker Token With Field</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Use-Timepicker-Token-With-Field/m-p/417019#M27432</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;If I understand your question correctly you need to set the time picker earliest and latest value based on field value right? Can you please have a look at the below code snippet and see whether its satisfying your requirement?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;demo&amp;lt;/label&amp;gt;
  &amp;lt;search id="base_search"&amp;gt;
    &amp;lt;query&amp;gt;
     | makeresults
| eval Epoch_STime=strptime("02/26/2019","%m/%d/%Y"), Epoch_ETime=strptime("02/28/2019","%m/%d/%Y") 
    &amp;lt;/query&amp;gt;
    &amp;lt;done&amp;gt;
      &amp;lt;set token="form.time.earliest"&amp;gt;$result.Epoch_STime$&amp;lt;/set&amp;gt;
      &amp;lt;set token="form.time.latest"&amp;gt;$result.Epoch_ETime$&amp;lt;/set&amp;gt;
    &amp;lt;/done&amp;gt;
  &amp;lt;/search&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="time" token="time"&amp;gt;
      &amp;lt;label&amp;gt;Time&amp;lt;/label&amp;gt;
      &amp;lt;default&amp;gt;
        &amp;lt;earliest&amp;gt;0&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;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 28 Feb 2019 07:17:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Use-Timepicker-Token-With-Field/m-p/417019#M27432</guid>
      <dc:creator>sdchakraborty</dc:creator>
      <dc:date>2019-02-28T07:17:58Z</dc:date>
    </item>
    <item>
      <title>Re: Use Timepicker Token With Field</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Use-Timepicker-Token-With-Field/m-p/417020#M27433</link>
      <description>&lt;P&gt;Hi @sdchakraborty . Thank you for coming back to me with this.&lt;/P&gt;

&lt;P&gt;No it's the other way around, so when the user selects the 'timepicker' time range it extracts the correct data using the Epoch time fields.&lt;/P&gt;

&lt;P&gt;Many thanks and kind regards&lt;/P&gt;

&lt;P&gt;Chris &lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 07:48:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Use-Timepicker-Token-With-Field/m-p/417020#M27433</guid>
      <dc:creator>IRHM73</dc:creator>
      <dc:date>2019-02-28T07:48:51Z</dc:date>
    </item>
    <item>
      <title>Re: Use Timepicker Token With Field</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Use-Timepicker-Token-With-Field/m-p/417021#M27434</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
You can do something like this. Please have a look at the run anywhere code below,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;demo&amp;lt;/label&amp;gt;
  &amp;lt;search id="base_search"&amp;gt;
    &amp;lt;query&amp;gt;|makeresults&amp;lt;/query&amp;gt;
    &amp;lt;earliest&amp;gt;$time.earliest$&amp;lt;/earliest&amp;gt;
    &amp;lt;latest&amp;gt;$time.latest$&amp;lt;/latest&amp;gt;
    &amp;lt;progress&amp;gt;
      &amp;lt;eval token="toEarliest"&amp;gt;strptime($job.earliestTime$,"%Y-%m-%dT%H:%M:%S.%3N%z")&amp;lt;/eval&amp;gt;
      &amp;lt;eval token="toLatest"&amp;gt;strptime($job.latestTime$,"%Y-%m-%dT%H:%M:%S.%3N%z")&amp;lt;/eval&amp;gt;
      &amp;lt;set token="jobEarliest"&amp;gt;$job.earliestTime$&amp;lt;/set&amp;gt;
      &amp;lt;set token="jobLatest"&amp;gt;$job.latestTime$&amp;lt;/set&amp;gt;
    &amp;lt;/progress&amp;gt;
  &amp;lt;/search&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="time" token="time"&amp;gt;
      &amp;lt;label&amp;gt;Time&amp;lt;/label&amp;gt;
      &amp;lt;default&amp;gt;
        &amp;lt;earliest&amp;gt;0&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;table&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;| makeresults count=2
|  streamstats count
 | eval Epoch_Time=case(count=1,strptime("02/26/2019","%m/%d/%Y"), count=2,strptime("02/28/2019","%m/%d/%Y"))
| eval formatted_time = strftime(Epoch_Time,"%m/%d/%Y")
| table Epoch_Time, formatted_time
| eval earliest = $toEarliest$ | eval latest = if($toLatest$ &amp;amp;lt; 0,now(),$toLatest$) |  where Epoch_Time &amp;amp;gt;= earliest AND Epoch_Time &amp;amp;lt;= latest&amp;lt;/query&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 28 Feb 2019 09:10:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Use-Timepicker-Token-With-Field/m-p/417021#M27434</guid>
      <dc:creator>sdchakraborty</dc:creator>
      <dc:date>2019-02-28T09:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: Use Timepicker Token With Field</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Use-Timepicker-Token-With-Field/m-p/417022#M27435</link>
      <description>&lt;P&gt;Hi @sdchakraborty . Thank you for coming back to me.&lt;/P&gt;

&lt;P&gt;I'm sorry to ask particularly as you've been so helpful but which element do I use in my dashboard. I'm having a little difficulty in following the data/field journey?&lt;/P&gt;

&lt;P&gt;Many thanks and kind regards&lt;/P&gt;

&lt;P&gt;Chris &lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 11:36:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Use-Timepicker-Token-With-Field/m-p/417022#M27435</guid>
      <dc:creator>IRHM73</dc:creator>
      <dc:date>2019-02-28T11:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: Use Timepicker Token With Field</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Use-Timepicker-Token-With-Field/m-p/417023#M27436</link>
      <description>&lt;P&gt;Hi Chris,&lt;/P&gt;

&lt;P&gt;Let me explain whats going on there. The main problem statement is you need to select some date range from your dashboard time picker and that should filter out data based on another field (Epoch_STime and Epoch_ETime). Now as we know time picker will always go by _time field. So we need to do some customization. That why the base search I have created.&lt;/P&gt;

&lt;P&gt;Its just running a dummy search with our dashboard time picker earliest and latest value and setting up couple of tokens (toEarliest and toLatest) which we are going to use in our panel level search. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;search id="base_search"&amp;gt;
     &amp;lt;query&amp;gt;|makeresults&amp;lt;/query&amp;gt;
     &amp;lt;earliest&amp;gt;$time.earliest$&amp;lt;/earliest&amp;gt;
     &amp;lt;latest&amp;gt;$time.latest$&amp;lt;/latest&amp;gt;
     &amp;lt;progress&amp;gt;
       &amp;lt;eval token="toEarliest"&amp;gt;strptime($job.earliestTime$,"%Y-%m-%dT%H:%M:%S.%3N%z")&amp;lt;/eval&amp;gt;
       &amp;lt;eval token="toLatest"&amp;gt;strptime($job.latestTime$,"%Y-%m-%dT%H:%M:%S.%3N%z")&amp;lt;/eval&amp;gt;
       &amp;lt;set token="jobEarliest"&amp;gt;$job.earliestTime$&amp;lt;/set&amp;gt;
       &amp;lt;set token="jobLatest"&amp;gt;$job.latestTime$&amp;lt;/set&amp;gt;
     &amp;lt;/progress&amp;gt;
   &amp;lt;/search&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Now at the panel level we are applying those two tokens we set before and the filteration logic is to get the events where Epoch_STime and Epoch_ETime range is matching with toEarliest and toLatest range. If you understand this I think you should be able to determine what changes you need to do in your dashboard.&lt;/P&gt;

&lt;P&gt;Btw I have discussed the same thing below as well. Please have a look.&lt;/P&gt;

&lt;P&gt;Part 1 : &lt;A href="https://youtu.be/SiXshUxhmcc" target="_blank"&gt;https://youtu.be/SiXshUxhmcc&lt;/A&gt;&lt;BR /&gt;
Part 2 : &lt;A href="https://youtu.be/1fIWEqmxKEg" target="_blank"&gt;https://youtu.be/1fIWEqmxKEg&lt;/A&gt;&lt;BR /&gt;
Part 3 : &lt;A href="https://youtu.be/OzEb7Q-fuXs" target="_blank"&gt;https://youtu.be/OzEb7Q-fuXs&lt;/A&gt;&lt;BR /&gt;
Part 4 : &lt;A href="https://youtu.be/K_PeZvkVFOA" target="_blank"&gt;https://youtu.be/K_PeZvkVFOA&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Sid&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 23:31:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Use-Timepicker-Token-With-Field/m-p/417023#M27436</guid>
      <dc:creator>sdchakraborty</dc:creator>
      <dc:date>2020-09-29T23:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: Use Timepicker Token With Field</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Use-Timepicker-Token-With-Field/m-p/417024#M27437</link>
      <description>&lt;P&gt;Hi, @sdchakraborty. Thank you for coming back to me and I'm sorry it's taken a while to come back to you. I've been working through this, but I can't get the 'timepicker' to load the data.&lt;/P&gt;

&lt;P&gt;Could you possible have a look at my XML below please and let me know where I've gone wrong?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;CODE&amp;lt;/label&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="time" token="time" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Select the Time Range&amp;lt;/label&amp;gt;
      &amp;lt;default&amp;gt;
        &amp;lt;earliest&amp;gt;-7d@h&amp;lt;/earliest&amp;gt;
        &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
         &amp;lt;progress&amp;gt;
       &amp;lt;eval token="toEarliest"&amp;gt;strptime($job.earliestTime$,"%Y-%m-%dT%H:%M:%S.%3N%z")&amp;lt;/eval&amp;gt;
       &amp;lt;eval token="toLatest"&amp;gt;strptime($job.latestTime$,"%Y-%m-%dT%H:%M:%S.%3N%z")&amp;lt;/eval&amp;gt;
       &amp;lt;set token="jobEarliest"&amp;gt;$job.earliestTime$&amp;lt;/set&amp;gt;
       &amp;lt;set token="jobLatest"&amp;gt;$job.latestTime$&amp;lt;/set&amp;gt;
     &amp;lt;/progress&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;table&amp;gt;
        &amp;lt;title&amp;gt;Extract Data&amp;lt;/title&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;&amp;lt;&amp;lt;Main part of query&amp;gt;&amp;gt;
| eval earliest = $toEarliest$ | eval latest = if($toLatest$ &amp;amp;lt; 0,now(),$toLatest$) |  where Epoch_STime &amp;amp;gt;= earliest AND Epoch_ETime &amp;amp;lt;= latest
&amp;lt;/query&amp;gt;
        &amp;lt;/search&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Many thanks and kind regards&lt;/P&gt;

&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Sun, 03 Mar 2019 15:38:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Use-Timepicker-Token-With-Field/m-p/417024#M27437</guid>
      <dc:creator>IRHM73</dc:creator>
      <dc:date>2019-03-03T15:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: Use Timepicker Token With Field</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Use-Timepicker-Token-With-Field/m-p/417025#M27438</link>
      <description>&lt;P&gt;Hi Chris,&lt;/P&gt;

&lt;P&gt;The below code is in wrong place. Progess tag has to be under a search.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;progress&amp;gt;
        &amp;lt;eval token="toEarliest"&amp;gt;strptime($job.earliestTime$,"%Y-%m-%dT%H:%M:%S.%3N%z")&amp;lt;/eval&amp;gt;
        &amp;lt;eval token="toLatest"&amp;gt;strptime($job.latestTime$,"%Y-%m-%dT%H:%M:%S.%3N%z")&amp;lt;/eval&amp;gt;
        &amp;lt;set token="jobEarliest"&amp;gt;$job.earliestTime$&amp;lt;/set&amp;gt;
        &amp;lt;set token="jobLatest"&amp;gt;$job.latestTime$&amp;lt;/set&amp;gt;
      &amp;lt;/progress&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 05 Mar 2019 06:25:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Use-Timepicker-Token-With-Field/m-p/417025#M27438</guid>
      <dc:creator>sdchakraborty</dc:creator>
      <dc:date>2019-03-05T06:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: Use Timepicker Token With Field</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Use-Timepicker-Token-With-Field/m-p/417026#M27439</link>
      <description>&lt;P&gt;Hi @sdchakraborty.&lt;/P&gt;

&lt;P&gt;Thank you for coming back to me with this.&lt;/P&gt;

&lt;P&gt;I've amended the code to the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;      &amp;lt;input type="time" token="time" searchWhenChanged="true"&amp;gt;
         &amp;lt;label&amp;gt;Select the Time Range&amp;lt;/label&amp;gt;
         &amp;lt;default&amp;gt;
            &amp;lt;earliest&amp;gt;-7d@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;panel&amp;gt;
         &amp;lt;table&amp;gt;
            &amp;lt;title&amp;gt;Extract Data&amp;lt;/title&amp;gt;
            &amp;lt;search&amp;gt;
               &amp;lt;query&amp;gt;&amp;lt;&amp;lt;Main Query&amp;gt;&amp;gt;
| eval earliest = $toEarliest$ | eval latest = if($toLatest$ &amp;amp;lt; 0,now(),$toLatest$) |  where Epoch_STime &amp;amp;gt;=earliest AND Epoch_ETime &amp;amp;lt;=latest
               &amp;lt;earliest&amp;gt;$time.earliest$&amp;lt;/earliest&amp;gt;
               &amp;lt;latest&amp;gt;$time.latest$&amp;lt;/latest&amp;gt;
               &amp;lt;progress&amp;gt;
                  &amp;lt;eval token="toEarliest"&amp;gt;strptime($job.earliestTime$,"%Y-%m-%dT%H:%M:%S.%3N%z")&amp;lt;/eval&amp;gt;
                  &amp;lt;eval token="toLatest"&amp;gt;strptime($job.latestTime$,"%Y-%m-%dT%H:%M:%S.%3N%z")&amp;lt;/eval&amp;gt;
                  &amp;lt;set token="jobEarliest"&amp;gt;$job.earliestTime$&amp;lt;/set&amp;gt;
                  &amp;lt;set token="jobLatest"&amp;gt;$job.latestTime$&amp;lt;/set&amp;gt;
               &amp;lt;/progress&amp;gt;
            &amp;lt;/search&amp;gt;
         &amp;lt;/table&amp;gt;
      &amp;lt;/panel&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The data is now being returned, so thank you for this, but it is not filtering the data to match the timepicker.&lt;/P&gt;

&lt;P&gt;Is there any chance you could look at this please and let me know where I've gone wrong.&lt;/P&gt;

&lt;P&gt;Many thanks and kind regards&lt;/P&gt;

&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2019 07:13:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Use-Timepicker-Token-With-Field/m-p/417026#M27439</guid>
      <dc:creator>IRHM73</dc:creator>
      <dc:date>2019-03-05T07:13:56Z</dc:date>
    </item>
    <item>
      <title>Re: Use Timepicker Token With Field</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Use-Timepicker-Token-With-Field/m-p/417027#M27440</link>
      <description>&lt;P&gt;Hi Chris,&lt;/P&gt;

&lt;P&gt;That is wrong again,...I have created a simplistic dashboard. Please have a look. You can change the dates at the panel level and test.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
      &amp;lt;search&amp;gt;
        &amp;lt;query&amp;gt;|makeresults&amp;lt;/query&amp;gt;
    &amp;lt;earliest&amp;gt;$time.earliest$&amp;lt;/earliest&amp;gt;
    &amp;lt;latest&amp;gt;$time.latest$&amp;lt;/latest&amp;gt;
    &amp;lt;progress&amp;gt;
      &amp;lt;eval token="toEarliest"&amp;gt;strptime($job.earliestTime$,"%Y-%m-%dT%H:%M:%S..%3N%z")&amp;lt;/eval&amp;gt;
      &amp;lt;eval token="toLatest"&amp;gt;strptime($job.latestTime$,"%Y-%m-%dT%H:%M:%S..%3N%z")&amp;lt;/eval&amp;gt;
      &amp;lt;set token="jobEarliest"&amp;gt;$job.earliestTime$&amp;lt;/set&amp;gt;
      &amp;lt;set token="jobLatest"&amp;gt;$job.latestTime$&amp;lt;/set&amp;gt;
    &amp;lt;/progress&amp;gt;
      &amp;lt;/search&amp;gt;
  &amp;lt;label&amp;gt;demo1&amp;lt;/label&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="time" token="time"&amp;gt;
      &amp;lt;label&amp;gt;Time Picker&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;table&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;| makeresults count=2
| streamstats count
| eval date_time = case(count=1,"2019-02-28T3:26:59.676Z",count=2,"2019-02-28T3:26:53.391Z")
| eval date_time_epoch = strptime(date_time,"%Y-%m-%dT%H:%M:%S..%3N")
| table _time,date_time,date_time_epoch
| eval earliest = $toEarliest$ | eval latest = if($toLatest$ &amp;amp;lt; 0,now(),$toLatest$) |  where date_time_epoch &amp;amp;gt;= earliest AND date_time_epoch &amp;amp;lt;= latest&amp;lt;/query&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 05 Mar 2019 07:44:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Use-Timepicker-Token-With-Field/m-p/417027#M27440</guid>
      <dc:creator>sdchakraborty</dc:creator>
      <dc:date>2019-03-05T07:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: Use Timepicker Token With Field</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Use-Timepicker-Token-With-Field/m-p/417028#M27441</link>
      <description>&lt;P&gt;Hi @sdchakraborty .&lt;/P&gt;

&lt;P&gt;Thank you for this. I've been through this again and I've finally got this to work. Thank you so much for your help.&lt;/P&gt;

&lt;P&gt;But would it possible, because I want to learn from this, that you could explain the rationale behind the need to use the first query?&lt;/P&gt;

&lt;P&gt;Many thanks and kind regards&lt;/P&gt;

&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 15:36:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Use-Timepicker-Token-With-Field/m-p/417028#M27441</guid>
      <dc:creator>IRHM73</dc:creator>
      <dc:date>2019-03-07T15:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: Use Timepicker Token With Field</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Use-Timepicker-Token-With-Field/m-p/704414#M57727</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;This thread was very helpful to me and i described my picked time period in the dashboard panel description .&amp;nbsp;&lt;BR /&gt;I used the progress tag :&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;      &amp;lt;eval token="a1_jobEarliest"&amp;gt;strptime($job.earliestTime$,"%Y-%m-%d_%H:%M:%S")&amp;lt;/eval&amp;gt;
      &amp;lt;eval token="a1_jobLatest"&amp;gt;strptime($job.latestTime$,"%Y-%m-%d_%H:%M:%S")&amp;lt;/eval&amp;gt;
      &amp;lt;set token="a1_jobEarliest"&amp;gt;$job.earliestTime$&amp;lt;/set&amp;gt;
      &amp;lt;set token="a1_jobLatest"&amp;gt;$job.latestTime$&amp;lt;/set&amp;gt;
      &lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;However I still get formatting details that I dont need ( underlined in blue are miliseconds) :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="a1bg503461_1-1731590325494.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/33478iD19BE45C17B15A45/image-size/medium?v=v2&amp;amp;px=400" role="button" title="a1bg503461_1-1731590325494.png" alt="a1bg503461_1-1731590325494.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2024 13:19:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Use-Timepicker-Token-With-Field/m-p/704414#M57727</guid>
      <dc:creator>a1bg503461</dc:creator>
      <dc:date>2024-11-14T13:19:06Z</dc:date>
    </item>
  </channel>
</rss>

