<?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 Problem with strptime drilldown token in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Problem-with-strptime-drilldown-token/m-p/415335#M27311</link>
    <description>&lt;P&gt;Hello, i'm developing a dashboard for a client, the thing is I need to pass an earliest and latest value to perform another search on another panel.&lt;/P&gt;

&lt;P&gt;The panel needs the earliest and latest time of a transaction. then the panel 2 needs to search in the entire index between latest and earliest of the clicked transaction's row.&lt;/P&gt;

&lt;P&gt;here is my XML:&lt;/P&gt;

&lt;P&gt;panel 1&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;query&amp;gt;| search   myswearch  | transaction myfield   maxevents=$maxevents$ keeporphans=true | eval t2=_time + duration | eval start=strftime(_time, "%d/%m/%y %H %M %S %3N"), finalization=strftime(t2, "%d/%m-%y %H:%M:%S:%3N")  | table start finalization duration myfields myfields &amp;lt;/query&amp;gt;

&amp;lt;drilldown&amp;gt;

          &amp;lt;eval token="earliest"&amp;gt;round(strptime($row.start$,"%d/%m/%y %H:%M:%S:%3N"),3)&amp;lt;/eval&amp;gt;
          &amp;lt;eval token="latest"&amp;gt;round(strptime($row.finalization$, "%d/%m/%y %H:%M:%S:%3N"),3)&amp;lt;/eval&amp;gt;
        &amp;lt;/drilldown&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and here is my panel2:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;table depends="$mytoken$"&amp;gt;
        &amp;lt;title&amp;gt;everything between $earliest$ and  $latest$&amp;lt;/title&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;myindex | my table&amp;lt;/query&amp;gt;
   &amp;lt;earliest&amp;gt;$earliest$&amp;lt;/earliest&amp;gt;
    &amp;lt;latest&amp;gt;$latest$&amp;lt;/latest&amp;gt;   
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;my problem is both tokens always evaluate to 946695600, and that's like 1/1/2000 hah.&lt;/P&gt;

&lt;P&gt;thanks!&lt;/P&gt;</description>
    <pubDate>Fri, 26 Jul 2019 20:28:39 GMT</pubDate>
    <dc:creator>3DGjos</dc:creator>
    <dc:date>2019-07-26T20:28:39Z</dc:date>
    <item>
      <title>Problem with strptime drilldown token</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Problem-with-strptime-drilldown-token/m-p/415335#M27311</link>
      <description>&lt;P&gt;Hello, i'm developing a dashboard for a client, the thing is I need to pass an earliest and latest value to perform another search on another panel.&lt;/P&gt;

&lt;P&gt;The panel needs the earliest and latest time of a transaction. then the panel 2 needs to search in the entire index between latest and earliest of the clicked transaction's row.&lt;/P&gt;

&lt;P&gt;here is my XML:&lt;/P&gt;

&lt;P&gt;panel 1&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;query&amp;gt;| search   myswearch  | transaction myfield   maxevents=$maxevents$ keeporphans=true | eval t2=_time + duration | eval start=strftime(_time, "%d/%m/%y %H %M %S %3N"), finalization=strftime(t2, "%d/%m-%y %H:%M:%S:%3N")  | table start finalization duration myfields myfields &amp;lt;/query&amp;gt;

&amp;lt;drilldown&amp;gt;

          &amp;lt;eval token="earliest"&amp;gt;round(strptime($row.start$,"%d/%m/%y %H:%M:%S:%3N"),3)&amp;lt;/eval&amp;gt;
          &amp;lt;eval token="latest"&amp;gt;round(strptime($row.finalization$, "%d/%m/%y %H:%M:%S:%3N"),3)&amp;lt;/eval&amp;gt;
        &amp;lt;/drilldown&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and here is my panel2:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;table depends="$mytoken$"&amp;gt;
        &amp;lt;title&amp;gt;everything between $earliest$ and  $latest$&amp;lt;/title&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;myindex | my table&amp;lt;/query&amp;gt;
   &amp;lt;earliest&amp;gt;$earliest$&amp;lt;/earliest&amp;gt;
    &amp;lt;latest&amp;gt;$latest$&amp;lt;/latest&amp;gt;   
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;my problem is both tokens always evaluate to 946695600, and that's like 1/1/2000 hah.&lt;/P&gt;

&lt;P&gt;thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2019 20:28:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Problem-with-strptime-drilldown-token/m-p/415335#M27311</guid>
      <dc:creator>3DGjos</dc:creator>
      <dc:date>2019-07-26T20:28:39Z</dc:date>
    </item>
  </channel>
</rss>

