<?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 Convert epoch time from drilldown parameter in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Convert-epoch-time-from-drilldown-parameter/m-p/123609#M33379</link>
    <description>&lt;P&gt;I have set up a drilldown to jump from a timechart graph to another dashboard. &lt;BR /&gt;
&lt;CODE&gt;&lt;BR /&gt;
        &amp;lt;link&amp;gt;&lt;BR /&gt;
          &amp;lt;![CDATA[&lt;BR /&gt;
            /app/SPSearchData/drilldown_search_and_results?status=$click.name2$&amp;amp;earliest=$earliest$&amp;amp;latest=$latest$&lt;BR /&gt;
          ]]&amp;gt;&lt;BR /&gt;
        &amp;lt;/link&amp;gt;&lt;BR /&gt;
      &amp;lt;/drilldown&amp;gt;&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;The resulting URL for the target dashboard displays like this: &lt;BR /&gt;
&lt;CODE&gt;/app/SPSearchData/drilldown_search_and_results?status=Abandoned&amp;amp;earliest=1395205200&amp;amp;latest=1395810000#en-US/app/SPSearchData/drilldown_search_and_results?status=Abandoned&amp;amp;earliest=1395205200&amp;amp;latest=1395810000&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Note that the earliest and latest params are set to Epoch time. I would like to have a HTML label above the chart that uses tokens to update ("$status$ from $earliest$ to $latest$"). My problem is that it comes up like:&lt;BR /&gt;
&lt;CODE&gt;Abandoned searches from 1395205200 to 1395810000&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Is there any way I can format those epoch timestamps to be able to display them to the user in a readable format?&lt;/P&gt;</description>
    <pubDate>Tue, 18 Nov 2014 18:48:23 GMT</pubDate>
    <dc:creator>feickertmd</dc:creator>
    <dc:date>2014-11-18T18:48:23Z</dc:date>
    <item>
      <title>Convert epoch time from drilldown parameter</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Convert-epoch-time-from-drilldown-parameter/m-p/123609#M33379</link>
      <description>&lt;P&gt;I have set up a drilldown to jump from a timechart graph to another dashboard. &lt;BR /&gt;
&lt;CODE&gt;&lt;BR /&gt;
        &amp;lt;link&amp;gt;&lt;BR /&gt;
          &amp;lt;![CDATA[&lt;BR /&gt;
            /app/SPSearchData/drilldown_search_and_results?status=$click.name2$&amp;amp;earliest=$earliest$&amp;amp;latest=$latest$&lt;BR /&gt;
          ]]&amp;gt;&lt;BR /&gt;
        &amp;lt;/link&amp;gt;&lt;BR /&gt;
      &amp;lt;/drilldown&amp;gt;&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;The resulting URL for the target dashboard displays like this: &lt;BR /&gt;
&lt;CODE&gt;/app/SPSearchData/drilldown_search_and_results?status=Abandoned&amp;amp;earliest=1395205200&amp;amp;latest=1395810000#en-US/app/SPSearchData/drilldown_search_and_results?status=Abandoned&amp;amp;earliest=1395205200&amp;amp;latest=1395810000&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Note that the earliest and latest params are set to Epoch time. I would like to have a HTML label above the chart that uses tokens to update ("$status$ from $earliest$ to $latest$"). My problem is that it comes up like:&lt;BR /&gt;
&lt;CODE&gt;Abandoned searches from 1395205200 to 1395810000&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Is there any way I can format those epoch timestamps to be able to display them to the user in a readable format?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Nov 2014 18:48:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Convert-epoch-time-from-drilldown-parameter/m-p/123609#M33379</guid>
      <dc:creator>feickertmd</dc:creator>
      <dc:date>2014-11-18T18:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: Convert epoch time from drilldown parameter</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Convert-epoch-time-from-drilldown-parameter/m-p/123610#M33380</link>
      <description>&lt;P&gt;You could add a time range picker and feed your tokens into that, that way the user can both see the time range (to some degree) and manipulate it as well.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Nov 2014 18:59:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Convert-epoch-time-from-drilldown-parameter/m-p/123610#M33380</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-11-18T18:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: Convert epoch time from drilldown parameter</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Convert-epoch-time-from-drilldown-parameter/m-p/123611#M33381</link>
      <description>&lt;P&gt;I tried that with this:&lt;BR /&gt;
&lt;CODE&gt;&lt;BR /&gt;
    &amp;lt;input type="time" token="time_token"&amp;gt;&lt;BR /&gt;
      &amp;lt;label /&amp;gt;&lt;BR /&gt;
      &amp;lt;default&amp;gt;&lt;BR /&gt;
        &amp;lt;earliestTime&amp;gt;$earliest$&amp;lt;/earliestTime&amp;gt;&lt;BR /&gt;
        &amp;lt;latestTime &amp;gt;$latest$&amp;lt;/latestTime&amp;gt;&lt;BR /&gt;
      &amp;lt;/default&amp;gt;&lt;BR /&gt;
    &amp;lt;/input&amp;gt;&lt;BR /&gt;
&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;I had done that, but I realize now that I had to redefine how I was passing tokens. I was getting&lt;BR /&gt;
&lt;CODE&gt;&lt;A href="http://apsrd3084:8000/en-US/app/SPSearchData/drilldown_search_and_results?status=Abandoned&amp;amp;earliest=1393999200&amp;amp;latest=1394600400#en-US/app/SPSearchData/drilldown_search_and_results?status=Abandoned&amp;amp;earliest=1393999200&amp;amp;latest=1394600400&amp;amp;form.time_token.earliest=%24earliest%24&amp;amp;form.time_token.latest=%24latest%24" target="test_blank"&gt;http://apsrd3084:8000/en-US/app/SPSearchData/drilldown_search_and_results?status=Abandoned&amp;amp;earliest=1393999200&amp;amp;latest=1394600400#en-US/app/SPSearchData/drilldown_search_and_results?status=Abandoned&amp;amp;earliest=1393999200&amp;amp;latest=1394600400&amp;amp;form.time_token.earliest=%24earliest%24&amp;amp;form.time_token.latest=%24latest%24&lt;/A&gt;&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;I needed to change the sending form to send the tokens in the proper format.&lt;/P&gt;

&lt;P&gt;Thanks again!&lt;/P&gt;</description>
      <pubDate>Tue, 18 Nov 2014 19:11:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Convert-epoch-time-from-drilldown-parameter/m-p/123611#M33381</guid>
      <dc:creator>feickertmd</dc:creator>
      <dc:date>2014-11-18T19:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: Convert epoch time from drilldown parameter</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Convert-epoch-time-from-drilldown-parameter/m-p/123612#M33382</link>
      <description>&lt;P&gt;You can save yourself some customization if you leave off the custom token name for the time input... assuming that's the only time range picker on the dashboard.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Nov 2014 19:13:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Convert-epoch-time-from-drilldown-parameter/m-p/123612#M33382</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-11-18T19:13:55Z</dc:date>
    </item>
  </channel>
</rss>

