<?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: Timestamp not showing up as set time input in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Timestamp-not-showing-up-as-set-time-input/m-p/451449#M78286</link>
    <description>&lt;P&gt;Thanks @niketnilay &lt;BR /&gt;
Similarly I was checking in our prod server which is in EDT timezone&lt;BR /&gt;
and I selected dropdown value 26 June 2019 08:00 and check epoch time which was "1561516200"&lt;BR /&gt;
then converted time and i see as- &lt;BR /&gt;
06/25/2019 22:30:00Eastern Daylight Time&lt;/P&gt;

&lt;P&gt;But difference between UTC and EDT is 4 hours so if I try to add 4 hours then it will not give  26 June 2019 08:00 ?&lt;BR /&gt;
So the epoch value got from input time is in which timezone?&lt;/P&gt;

&lt;P&gt;To get required results i.e. 26 June 2019, I have to add 9 hours 30 min i.e. 34200 to epoch value&lt;/P&gt;</description>
    <pubDate>Fri, 28 Jun 2019 07:29:45 GMT</pubDate>
    <dc:creator>ips_mandar</dc:creator>
    <dc:date>2019-06-28T07:29:45Z</dc:date>
    <item>
      <title>Timestamp not showing up as set time input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timestamp-not-showing-up-as-set-time-input/m-p/451443#M78280</link>
      <description>&lt;P&gt;Hi, I am facing a timestamp issue. &lt;BR /&gt;
I have created one sample dashboard below&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;test&amp;lt;/label&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="time" token="time_tok" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Time&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;title&amp;gt;token=$time_tok.earliest$&amp;lt;/title&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=_internal |stats count by host&amp;lt;/query&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;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="count"&amp;gt;20&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;none&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;/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;and I have selected time range from input-&amp;gt;Date and Time Range-&amp;gt;&lt;CODE&gt;Since 26 Jun 2019 08:00&lt;/CODE&gt;&lt;BR /&gt;
and I have copied it's epoch value from panel title where this value is set.&lt;BR /&gt;
Then I run below sample search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults
| eval time="1561536000.000"
| eval time=strftime(time, "%Y-%m-%d %H:%M:%S.%N%Z")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Please change time value as per dashboard token value from panel title.&lt;BR /&gt;
Now I was expecting the result to be the same as time input set (i.e. 26 Jun 2019 08:00) but that it's giving a different time...&lt;BR /&gt;
I tested in Splunk version 7.2 and 7.3 still the same issue...&lt;BR /&gt;
Is this bug or I am misunderstanding it. Please guide.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2019 17:11:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timestamp-not-showing-up-as-set-time-input/m-p/451443#M78280</guid>
      <dc:creator>ips_mandar</dc:creator>
      <dc:date>2019-06-27T17:11:15Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp not showing up as set time input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timestamp-not-showing-up-as-set-time-input/m-p/451444#M78281</link>
      <description>&lt;P&gt;@ ips_mandar&lt;BR /&gt;
Just tested this, the time tiken value is not getting updated in the title tag (as you are trying). But ofcourse its working in earliest and latest tags like below - &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;earliest&amp;gt;$time_tok.earliest$&amp;lt;/earliest&amp;gt;
&amp;lt;latest&amp;gt;$time_tok.latest$&amp;lt;/latest&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I am guessing, you are only trying to check the value by placing it in title tag but you can be assured that it will work with earliest and latest tags. You can may be compare the results of the searches of dashboard panel with an open search bar query&lt;/P&gt;

&lt;P&gt;Hope this helps. Let me know &lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2019 18:18:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timestamp-not-showing-up-as-set-time-input/m-p/451444#M78281</guid>
      <dc:creator>amitm05</dc:creator>
      <dc:date>2019-06-27T18:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp not showing up as set time input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timestamp-not-showing-up-as-set-time-input/m-p/451445#M78282</link>
      <description>&lt;P&gt;Thanks @amitm05 ..Did you tried exact my xml which I pasted here since in that, token is getting updated in title just retested again...&lt;BR /&gt;
basically in my actual query I am not trying to use in earliest and latest tag since I want to use earliest epoch value to compare with one field which is other than _time field so I am using epoch value but the problem is if I convert this epoch value I am not getting exact date and time set in time token...&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2019 01:19:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timestamp-not-showing-up-as-set-time-input/m-p/451445#M78282</guid>
      <dc:creator>ips_mandar</dc:creator>
      <dc:date>2019-06-28T01:19:02Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp not showing up as set time input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timestamp-not-showing-up-as-set-time-input/m-p/451446#M78283</link>
      <description>&lt;P&gt;@amitm05 I made below sample xml where I am selecting by default time and input time it will show as &lt;CODE&gt;Since 26 Jun 2019 08:00&lt;/CODE&gt;&lt;BR /&gt;
and I parsed this epoch time using strftime to make it readable format and checking in field-&lt;CODE&gt;reflectedtime&lt;/CODE&gt; but it shows different time instead of same 26 June 2019 08:00..please see screen shot&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/7271i6FDF705EA354760D/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;test&amp;lt;/label&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="time" token="time_tok" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Time&amp;lt;/label&amp;gt;
      &amp;lt;default&amp;gt;
        &amp;lt;earliest&amp;gt;1561536000&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;title&amp;gt;token=$time_tok.earliest$&amp;lt;/title&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;| makeresults
 | eval reflectedtime=$time_tok.earliest$
 | eval reflectedtime=strftime(reflectedtime, "%Y-%m-%d %H:%M:%S.%N%Z")&amp;lt;/query&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;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="count"&amp;gt;20&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;none&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;/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>Fri, 28 Jun 2019 04:23:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timestamp-not-showing-up-as-set-time-input/m-p/451446#M78283</guid>
      <dc:creator>ips_mandar</dc:creator>
      <dc:date>2019-06-28T04:23:27Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp not showing up as set time input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timestamp-not-showing-up-as-set-time-input/m-p/451447#M78284</link>
      <description>&lt;P&gt;@niketnilay any pointers here please.. I really unable to understand ..&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2019 04:46:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timestamp-not-showing-up-as-set-time-input/m-p/451447#M78284</guid>
      <dc:creator>ips_mandar</dc:creator>
      <dc:date>2019-06-28T04:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp not showing up as set time input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timestamp-not-showing-up-as-set-time-input/m-p/451448#M78285</link>
      <description>&lt;P&gt;@ips_mandar, the time from the time picker is changing to your local time zone. UTC to IST.&lt;/P&gt;

&lt;P&gt;You would &lt;BR /&gt;
1) either need to change logged in user time zone to UTC from default or IST. Refer to  documentation: &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Security/ConfigureuserswithSplunkWeb"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Security/ConfigureuserswithSplunkWeb&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;2) convert timezone to UTC using current user's timezone (with SPL and time functions you should be able to do this). For example is %z is &lt;CODE&gt;+0530&lt;/CODE&gt; then you need to &lt;CODE&gt;subtracting 5 hours 30 minutes&lt;/CODE&gt; i.e. &lt;CODE&gt;5*60*60 + 30*60=19800&lt;/CODE&gt; seconds from epoch time.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2019 06:15:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timestamp-not-showing-up-as-set-time-input/m-p/451448#M78285</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2019-06-28T06:15:01Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp not showing up as set time input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timestamp-not-showing-up-as-set-time-input/m-p/451449#M78286</link>
      <description>&lt;P&gt;Thanks @niketnilay &lt;BR /&gt;
Similarly I was checking in our prod server which is in EDT timezone&lt;BR /&gt;
and I selected dropdown value 26 June 2019 08:00 and check epoch time which was "1561516200"&lt;BR /&gt;
then converted time and i see as- &lt;BR /&gt;
06/25/2019 22:30:00Eastern Daylight Time&lt;/P&gt;

&lt;P&gt;But difference between UTC and EDT is 4 hours so if I try to add 4 hours then it will not give  26 June 2019 08:00 ?&lt;BR /&gt;
So the epoch value got from input time is in which timezone?&lt;/P&gt;

&lt;P&gt;To get required results i.e. 26 June 2019, I have to add 9 hours 30 min i.e. 34200 to epoch value&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2019 07:29:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timestamp-not-showing-up-as-set-time-input/m-p/451449#M78286</guid>
      <dc:creator>ips_mandar</dc:creator>
      <dc:date>2019-06-28T07:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp not showing up as set time input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timestamp-not-showing-up-as-set-time-input/m-p/451450#M78287</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/95326"&gt;@ips_mandar&lt;/a&gt; no this does not depend fully on your Splunk Server. If you table &lt;CODE&gt;date_wday, date_mday, date_hour, date_minute, date_second&lt;/CODE&gt;, then they will be depended on your Splunk Server timezone. But for chart _time is adjusted based on logged in User's Timezone (which may be different from Splunk Server timezone).&lt;/P&gt;

&lt;P&gt;So as suggested above try to change the logged in user's timezone from Access Management and see if it help.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:09:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timestamp-not-showing-up-as-set-time-input/m-p/451450#M78287</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2020-09-30T01:09:48Z</dc:date>
    </item>
  </channel>
</rss>

