<?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: I need to pass a earliest and latest value in a dashboard in version 6.3.1 in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/I-need-to-pass-a-earliest-and-latest-value-in-a-dashboard-in/m-p/426324#M28108</link>
    <description>&lt;P&gt;@3DGjos while you may not work with &lt;CODE&gt;&amp;lt;eval&amp;gt;&lt;/CODE&gt; &lt;CODE&gt;strftime&lt;/CODE&gt; in 6.3, you can still try independent search in 6.3 where you pass the &lt;CODE&gt;_time&lt;/CODE&gt; value as token to the independent search and use eval to convert the same to string time. Then you can use &lt;CODE&gt;&amp;lt;preview&amp;gt;&lt;/CODE&gt; or &lt;CODE&gt;&amp;lt;finalized&amp;gt;&lt;/CODE&gt; search event handler (in version 6.4 and above they are &lt;CODE&gt;&amp;lt;progress&amp;gt;&lt;/CODE&gt; and &lt;CODE&gt;&amp;lt;done&amp;gt;&lt;/CODE&gt; respectively.) depending on when you want the token to get resolved.&lt;/P&gt;

&lt;P&gt;Something like the following &lt;CODE&gt;&amp;lt;search&amp;gt;&lt;/CODE&gt; which is not part of any visualization row or panel can be used as an independent search and takes the _time epoch token from second table to give string time as new token.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;!-- Independent search to convert epoch time to string time --&amp;gt;
  &amp;lt;search&amp;gt;
    &amp;lt;query&amp;gt;
      | makeresults
      | eval selectedTime=strftime($tokSelectedTransactionTime$, "%d/%m/%y %H:%M:%S:%3N")
    &amp;lt;/query&amp;gt;
    &amp;lt;earliest&amp;gt;-1s&amp;lt;/earliest&amp;gt;
    &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
    &amp;lt;finalized&amp;gt;
      &amp;lt;set token="tokSelectedStringTime"&amp;gt;$result.selectedTime$&amp;lt;/set&amp;gt;
    &amp;lt;/finalized&amp;gt;
  &amp;lt;/search&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Please try the following run anywhere example and confirm as I have no way of testing the code in 6.3.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;dashboard&amp;gt;
  &amp;lt;label&amp;gt;Second Table for Time Drilldown&amp;lt;/label&amp;gt;
  &amp;lt;!-- Independent search to convert epoch time to string time --&amp;gt;
  &amp;lt;search&amp;gt;
    &amp;lt;query&amp;gt;
      | makeresults
      | eval selectedTime=strftime($tokSelectedTransactionTime$, "%d/%m/%y %H:%M:%S:%3N")
    &amp;lt;/query&amp;gt;
    &amp;lt;earliest&amp;gt;-1s&amp;lt;/earliest&amp;gt;
    &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
    &amp;lt;finalized&amp;gt;
      &amp;lt;set token="tokSelectedStringTime"&amp;gt;$result.selectedTime$&amp;lt;/set&amp;gt;
    &amp;lt;/finalized&amp;gt;
  &amp;lt;/search&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;Click to get _time for independent search&amp;lt;/title&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=_internal sourcetype=splunkd_ui_access
|  table _time _raw
|  reverse&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-15m&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&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="count"&amp;gt;5&amp;lt;/option&amp;gt;
        &amp;lt;option name="dataOverlayMode"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;cell&amp;lt;/option&amp;gt;
        &amp;lt;option name="percentagesRow"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="rowNumbers"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="totalsRow"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="wrap"&amp;gt;true&amp;lt;/option&amp;gt;
        &amp;lt;drilldown&amp;gt;
          &amp;lt;set token="tokSelectedTransactionTime"&amp;gt;$click.value$&amp;lt;/set&amp;gt;
        &amp;lt;/drilldown&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;Show selected Epoch time and corresponding String Time&amp;lt;/title&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;
            | makeresults
            | fields - _time
            | eval selectedTimeEpoch=$tokSelectedTransactionTime$
            | eval selectedTimeString="$tokSelectedStringTime$"
          &amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-1s&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
        &amp;lt;/search&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>Sun, 04 Aug 2019 07:35:17 GMT</pubDate>
    <dc:creator>niketn</dc:creator>
    <dc:date>2019-08-04T07:35:17Z</dc:date>
    <item>
      <title>I need to pass a earliest and latest value in a dashboard in version 6.3.1</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/I-need-to-pass-a-earliest-and-latest-value-in-a-dashboard-in/m-p/426319#M28103</link>
      <description>&lt;P&gt;Hello, im making this dashboard for a client:&lt;/P&gt;

&lt;P&gt;table 1: groups transactions by their duration:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;   &amp;lt;query&amp;gt; mysearch | transaction  | table  transaction_start transaction_end  transaction_duration transaction_ID&amp;lt;/query&amp;gt;
            &amp;lt;/search&amp;gt;
           &amp;lt;drilldown&amp;gt;
           &amp;lt;set token="id"&amp;gt;$row.transaction_ID$&amp;lt;/set&amp;gt;
           &amp;lt;/drilldown&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The ID token goes to my table 2, which makes something like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;query&amp;gt;search  ID=$id$ | table Time  _raw  | sort - Time&amp;lt;/query&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and the problem is with table 3. This is what I need for my table 3: I need to show the raw events that happened between the  transaction_start  and transaction_end time.&lt;/P&gt;

&lt;P&gt;The problem would be solved with eval token and strptime to pass an epoch time format date (my format is strftime(_time, "%d/%m/%y %H:%M:%S:%3N")) but in this version, drilldown and convert date to epoch does not work for me. neither the tag   &lt;/P&gt;

&lt;P&gt;Something like:&lt;/P&gt;

&lt;P&gt;table3:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=myindex earliest=$epoch_from_transaction_start$ latest=$epoch_from_transaction_start$
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;to bring all of the events, along with the transaction events.&lt;/P&gt;

&lt;P&gt;tried with the map command, but it limits me to only the events of the transaction.&lt;/P&gt;

&lt;P&gt;Thanks a lot!&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:35:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/I-need-to-pass-a-earliest-and-latest-value-in-a-dashboard-in/m-p/426319#M28103</guid>
      <dc:creator>3DGjos</dc:creator>
      <dc:date>2020-09-30T01:35:37Z</dc:date>
    </item>
    <item>
      <title>Re: I need to pass a earliest and latest value in a dashboard in version 6.3.1</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/I-need-to-pass-a-earliest-and-latest-value-in-a-dashboard-in/m-p/426320#M28104</link>
      <description>&lt;P&gt;Hi @3DGjos -&lt;/P&gt;

&lt;P&gt;In the xml of your first panel, after the query tag ends, try setting the time tokens in the done section, soothing kike this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;done&amp;gt;
            &amp;lt;eval token="earliest"&amp;gt;blah blah&amp;lt;/eval&amp;gt;
&amp;lt;eval token="latest"&amp;gt;blah blah&amp;lt;/eval&amp;gt;
          &amp;lt;/done&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You might need to retrofit your epoch times using strptime/strftime. But this should work.&lt;BR /&gt;
Basically, we are saying  - after the first table search is completed (and hence the done tags), capture the values of your transaction start and end times in tokens,pass and use these tokens  in the 3rd table&lt;/P&gt;</description>
      <pubDate>Sat, 03 Aug 2019 06:58:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/I-need-to-pass-a-earliest-and-latest-value-in-a-dashboard-in/m-p/426320#M28104</guid>
      <dc:creator>Sukisen1981</dc:creator>
      <dc:date>2019-08-03T06:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: I need to pass a earliest and latest value in a dashboard in version 6.3.1</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/I-need-to-pass-a-earliest-and-latest-value-in-a-dashboard-in/m-p/426321#M28105</link>
      <description>&lt;P&gt;@Sukisen1981 just FYI &lt;CODE&gt;&amp;lt;done&amp;gt;&lt;/CODE&gt; search event handler was not available in Splunk 6.3 &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Aug 2019 07:10:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/I-need-to-pass-a-earliest-and-latest-value-in-a-dashboard-in/m-p/426321#M28105</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2019-08-03T07:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: I need to pass a earliest and latest value in a dashboard in version 6.3.1</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/I-need-to-pass-a-earliest-and-latest-value-in-a-dashboard-in/m-p/426322#M28106</link>
      <description>&lt;P&gt;hi @3DGjos and @niketnilay - apologize, I had not seen the splunk version in the question although it is mentioned in bold in the title &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; .. many apologies  &lt;/P&gt;</description>
      <pubDate>Sat, 03 Aug 2019 07:13:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/I-need-to-pass-a-earliest-and-latest-value-in-a-dashboard-in/m-p/426322#M28106</guid>
      <dc:creator>Sukisen1981</dc:creator>
      <dc:date>2019-08-03T07:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: I need to pass a earliest and latest value in a dashboard in version 6.3.1</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/I-need-to-pass-a-earliest-and-latest-value-in-a-dashboard-in/m-p/426323#M28107</link>
      <description>&lt;P&gt;@Sukisen1981 no need to apologize we are all trying to help over here as much as we can. It would be difficult to get 6.3 stack when current Splunk version is already on 7.3&lt;/P&gt;</description>
      <pubDate>Sun, 04 Aug 2019 07:27:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/I-need-to-pass-a-earliest-and-latest-value-in-a-dashboard-in/m-p/426323#M28107</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2019-08-04T07:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: I need to pass a earliest and latest value in a dashboard in version 6.3.1</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/I-need-to-pass-a-earliest-and-latest-value-in-a-dashboard-in/m-p/426324#M28108</link>
      <description>&lt;P&gt;@3DGjos while you may not work with &lt;CODE&gt;&amp;lt;eval&amp;gt;&lt;/CODE&gt; &lt;CODE&gt;strftime&lt;/CODE&gt; in 6.3, you can still try independent search in 6.3 where you pass the &lt;CODE&gt;_time&lt;/CODE&gt; value as token to the independent search and use eval to convert the same to string time. Then you can use &lt;CODE&gt;&amp;lt;preview&amp;gt;&lt;/CODE&gt; or &lt;CODE&gt;&amp;lt;finalized&amp;gt;&lt;/CODE&gt; search event handler (in version 6.4 and above they are &lt;CODE&gt;&amp;lt;progress&amp;gt;&lt;/CODE&gt; and &lt;CODE&gt;&amp;lt;done&amp;gt;&lt;/CODE&gt; respectively.) depending on when you want the token to get resolved.&lt;/P&gt;

&lt;P&gt;Something like the following &lt;CODE&gt;&amp;lt;search&amp;gt;&lt;/CODE&gt; which is not part of any visualization row or panel can be used as an independent search and takes the _time epoch token from second table to give string time as new token.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;!-- Independent search to convert epoch time to string time --&amp;gt;
  &amp;lt;search&amp;gt;
    &amp;lt;query&amp;gt;
      | makeresults
      | eval selectedTime=strftime($tokSelectedTransactionTime$, "%d/%m/%y %H:%M:%S:%3N")
    &amp;lt;/query&amp;gt;
    &amp;lt;earliest&amp;gt;-1s&amp;lt;/earliest&amp;gt;
    &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
    &amp;lt;finalized&amp;gt;
      &amp;lt;set token="tokSelectedStringTime"&amp;gt;$result.selectedTime$&amp;lt;/set&amp;gt;
    &amp;lt;/finalized&amp;gt;
  &amp;lt;/search&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Please try the following run anywhere example and confirm as I have no way of testing the code in 6.3.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;dashboard&amp;gt;
  &amp;lt;label&amp;gt;Second Table for Time Drilldown&amp;lt;/label&amp;gt;
  &amp;lt;!-- Independent search to convert epoch time to string time --&amp;gt;
  &amp;lt;search&amp;gt;
    &amp;lt;query&amp;gt;
      | makeresults
      | eval selectedTime=strftime($tokSelectedTransactionTime$, "%d/%m/%y %H:%M:%S:%3N")
    &amp;lt;/query&amp;gt;
    &amp;lt;earliest&amp;gt;-1s&amp;lt;/earliest&amp;gt;
    &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
    &amp;lt;finalized&amp;gt;
      &amp;lt;set token="tokSelectedStringTime"&amp;gt;$result.selectedTime$&amp;lt;/set&amp;gt;
    &amp;lt;/finalized&amp;gt;
  &amp;lt;/search&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;Click to get _time for independent search&amp;lt;/title&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=_internal sourcetype=splunkd_ui_access
|  table _time _raw
|  reverse&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-15m&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&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="count"&amp;gt;5&amp;lt;/option&amp;gt;
        &amp;lt;option name="dataOverlayMode"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;cell&amp;lt;/option&amp;gt;
        &amp;lt;option name="percentagesRow"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="rowNumbers"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="totalsRow"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="wrap"&amp;gt;true&amp;lt;/option&amp;gt;
        &amp;lt;drilldown&amp;gt;
          &amp;lt;set token="tokSelectedTransactionTime"&amp;gt;$click.value$&amp;lt;/set&amp;gt;
        &amp;lt;/drilldown&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;Show selected Epoch time and corresponding String Time&amp;lt;/title&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;
            | makeresults
            | fields - _time
            | eval selectedTimeEpoch=$tokSelectedTransactionTime$
            | eval selectedTimeString="$tokSelectedStringTime$"
          &amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-1s&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
        &amp;lt;/search&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>Sun, 04 Aug 2019 07:35:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/I-need-to-pass-a-earliest-and-latest-value-in-a-dashboard-in/m-p/426324#M28108</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2019-08-04T07:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: I need to pass a earliest and latest value in a dashboard in version 6.3.1</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/I-need-to-pass-a-earliest-and-latest-value-in-a-dashboard-in/m-p/426325#M28109</link>
      <description>&lt;P&gt;First of all DO NOT USE &lt;CODE&gt;transaction&lt;/CODE&gt; in production, especially with no field arguments.  It appears that your events already have a &lt;CODE&gt;transaction_ID&lt;/CODE&gt; field so you can do something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | stats range(_time) AS duration min(_time) AS transaction_start max(_time) AS transaction_end list(_raw) AS events BY transaction_ID
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;When you are making dates presentable, DO NOT USE &lt;CODE&gt;eval&lt;/CODE&gt;, instead use &lt;CODE&gt;fieldformat&lt;/CODE&gt;, like this, so that the integer/time_t nature of the value does not change:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | fieldformat transaction_start = strftime(transaction_start, "%c")
| fieldformat transaction_end = strftime(transaction_end, "%c")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Now, on to your real question(s); you should be able to add more tokens like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;drilldown&amp;gt;
   &amp;lt;set token="id"&amp;gt;$row.transaction_ID$&amp;lt;/set&amp;gt;
   &amp;lt;set token="transaction_start"&amp;gt;$row.transaction_start$&amp;lt;/set&amp;gt;
   &amp;lt;set token="transaction_end"&amp;gt;$row.transaction_end$&amp;lt;/set&amp;gt;
&amp;lt;/drilldown&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 04 Aug 2019 20:20:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/I-need-to-pass-a-earliest-and-latest-value-in-a-dashboard-in/m-p/426325#M28109</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-08-04T20:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: I need to pass a earliest and latest value in a dashboard in version 6.3.1</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/I-need-to-pass-a-earliest-and-latest-value-in-a-dashboard-in/m-p/426326#M28110</link>
      <description>&lt;P&gt;Hello, I managed to solved, thanks @niketnilay for the logic,  @woodcock for the advice, I reworked my searches and im not using transaction anymore, and @Sukisen1981 for the advice&lt;/P&gt;

&lt;P&gt;Here is what I did:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;table 1: 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;(@woodcock the range function did not work, so I made a workaround)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;search id="base1" base="base0"&amp;gt;
              &amp;lt;query&amp;gt;| search   mysearch | stats  min(_time) AS start max(_time) AS finalization values(nombre_de_clase) AS "Nombre de clase" values(servicio) AS Servicio BY ID | eval duration= (finalization- start) |table start finalization duration ID "Nombre de clase" Servicio | fieldformat start= strftime(start, "%d-%b-%Y %H:%M:%S:%3N")
     | fieldformat finalization= strftime(finalization, "%d-%b-%Y %H:%M:%S:%3N")  | fieldformat duration= strftime(duration, "%M:%S:%3N")
           &amp;lt;/query&amp;gt;
            &amp;lt;/search&amp;gt;

            &amp;lt;drilldown&amp;gt;
              &amp;lt;set token=mymanytokens&amp;gt;
              &amp;lt;set token="base1_earliest"&amp;gt;$row.start$&amp;lt;/set&amp;gt;
              &amp;lt;set token="base1_latest"&amp;gt;$row.finalization$&amp;lt;/set&amp;gt;
            &amp;lt;/drilldown&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then these tokens goes to a basesearch (I've got like 3 of those for other porpuses) hidden in the XML for doing the transation from date to epoch:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;/search&amp;gt;
  &amp;lt;search id="base3"&amp;gt;
    &amp;lt;query&amp;gt;| makeresults
           | eval earliest=round(strptime("$base1_earliest$", "%d-%b-%Y %H:%M:%S:%3N"),3), latest=round(strptime("$base1_latest$", "%d-%b-%Y %H:%M:%S:%3N"),3)&amp;lt;/query&amp;gt;
    &amp;lt;earliest&amp;gt;-1s&amp;lt;/earliest&amp;gt;
    &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
    &amp;lt;finalized&amp;gt;
      &amp;lt;set token="base3_earliest"&amp;gt;$result.earliest$&amp;lt;/set&amp;gt;
      &amp;lt;set token="base3_latest"&amp;gt;$result.latest$&amp;lt;/set&amp;gt;
    &amp;lt;/finalized&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And then, I've got my table 3, which searches in the whole index for what happened between the transaction time, consuming the tokens generated by base3:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;event id="table3" depends="$wholevents$"&amp;gt;
        &amp;lt;title&amp;gt;events between$base1_earliest$ and $base1_latest$&amp;lt;/title&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=myindex&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;$base3_earliest$&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;$base3_latest$&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;

      &amp;lt;/event&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks a lot!&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2019 15:10:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/I-need-to-pass-a-earliest-and-latest-value-in-a-dashboard-in/m-p/426326#M28110</guid>
      <dc:creator>3DGjos</dc:creator>
      <dc:date>2019-08-07T15:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: I need to pass a earliest and latest value in a dashboard in version 6.3.1</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/I-need-to-pass-a-earliest-and-latest-value-in-a-dashboard-in/m-p/426327#M28111</link>
      <description>&lt;P&gt;Then you should click &lt;CODE&gt;Accept&lt;/CODE&gt; on your answer and &lt;CODE&gt;UpVote&lt;/CODE&gt; any answers or comments that helped you get here.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2019 15:37:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/I-need-to-pass-a-earliest-and-latest-value-in-a-dashboard-in/m-p/426327#M28111</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-08-07T15:37:20Z</dc:date>
    </item>
  </channel>
</rss>

