<?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 Can you help me do a timezone conversion for the following events? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Can-you-help-me-do-a-timezone-conversion-for-the-following/m-p/436878#M76216</link>
    <description>&lt;P&gt;Dear all,&lt;/P&gt;

&lt;P&gt;I am kind of confused by the timezone offset setting in props.conf.&lt;/P&gt;

&lt;P&gt;My scenario is like this:&lt;BR /&gt;
Log file is with GMT +8 timestamp, let say now is 10:00 AM.&lt;BR /&gt;
TZ setting in props.conf is TZ=UTC (GMT+0), let say the now is 02:00 AM &lt;BR /&gt;
User setting for timezone is GMT&lt;/P&gt;

&lt;P&gt;When I've tested to ingest the data, and perform a search for 15min data at 10.00AM, I can only found data at 2:00AM. &lt;/P&gt;

&lt;P&gt;When I search data for all time, I can get the data at 10:00AM.&lt;/P&gt;

&lt;P&gt;Anyone can help to clear my confusion?&lt;/P&gt;</description>
    <pubDate>Fri, 14 Dec 2018 03:33:50 GMT</pubDate>
    <dc:creator>krusovice</dc:creator>
    <dc:date>2018-12-14T03:33:50Z</dc:date>
    <item>
      <title>Can you help me do a timezone conversion for the following events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-you-help-me-do-a-timezone-conversion-for-the-following/m-p/436878#M76216</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;

&lt;P&gt;I am kind of confused by the timezone offset setting in props.conf.&lt;/P&gt;

&lt;P&gt;My scenario is like this:&lt;BR /&gt;
Log file is with GMT +8 timestamp, let say now is 10:00 AM.&lt;BR /&gt;
TZ setting in props.conf is TZ=UTC (GMT+0), let say the now is 02:00 AM &lt;BR /&gt;
User setting for timezone is GMT&lt;/P&gt;

&lt;P&gt;When I've tested to ingest the data, and perform a search for 15min data at 10.00AM, I can only found data at 2:00AM. &lt;/P&gt;

&lt;P&gt;When I search data for all time, I can get the data at 10:00AM.&lt;/P&gt;

&lt;P&gt;Anyone can help to clear my confusion?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2018 03:33:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-you-help-me-do-a-timezone-conversion-for-the-following/m-p/436878#M76216</guid>
      <dc:creator>krusovice</dc:creator>
      <dc:date>2018-12-14T03:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me do a timezone conversion for the following events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-you-help-me-do-a-timezone-conversion-for-the-following/m-p/436879#M76217</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Log file is with GMT +8 timestamp, let say now is 10:00 AM.&lt;BR /&gt;
TZ setting in props.conf is TZ=UTC (GMT+0), let say the now is 02:00 AM&lt;/STRONG&gt; &lt;/P&gt;

&lt;P&gt;Hi.. Any reasons why props is having GMT+0.. why not use GMT+8 itself ?!?! &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;When I've tested to ingest the data, and perform a search for 15min data at 10.00AM, I can only found data at 2:00AM.  When I search data for all time, I can get the data at 10:00AM.&lt;/STRONG&gt; &lt;/P&gt;

&lt;P&gt;on your search query, try to get &lt;CODE&gt;_indextime&lt;/CODE&gt; and try to print both &lt;CODE&gt;_time&lt;/CODE&gt; and &lt;CODE&gt;_indextime&lt;/CODE&gt;.. that may clear your confusion, i think.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2018 05:33:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-you-help-me-do-a-timezone-conversion-for-the-following/m-p/436879#M76217</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2018-12-14T05:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me do a timezone conversion for the following events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-you-help-me-do-a-timezone-conversion-for-the-following/m-p/436880#M76218</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;This is what is found in props.conf documentation,&lt;/P&gt;

&lt;P&gt;TZ = &lt;BR /&gt;
* The algorithm for determining the time zone for a particular event is as&lt;BR /&gt;
  follows:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;If the event has a timezone in its raw text (for example, UTC, -08:00),
use that.&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;If TZ is set to a valid timezone string, use that.&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;If the event was forwarded, and the forwarder-indexer connection is using
the 6.0+ forwarding protocol, use the timezone provided by the forwarder.&lt;/LI&gt;
&lt;LI&gt;Otherwise, use the timezone of the system that is running splunkd.&lt;/LI&gt;
&lt;LI&gt;Defaults to empty. &lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;as you have TZ configuration set to GMT thats why you are getting 2 AM data.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2018 05:40:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-you-help-me-do-a-timezone-conversion-for-the-following/m-p/436880#M76218</guid>
      <dc:creator>sdchakraborty</dc:creator>
      <dc:date>2018-12-14T05:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me do a timezone conversion for the following events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-you-help-me-do-a-timezone-conversion-for-the-following/m-p/436881#M76219</link>
      <description>&lt;P&gt;The reason of setting TZ=UTC is because this is global application, there is another same instance based in Europe.  I've tried to print both _time and _indextime using this query, found more horrible result. The indextime is 8 hour earlier than _time (_time is 2am, indextime is 6pm a day earlier)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=* source=*
| eval indextime=_indextime
| stats values(source) by indextime _time
| eval time_gap=indextime - _time, indextime=strftime(indextime, "%y/%m/%d %H:%M:%S")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Sep 2020 22:24:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-you-help-me-do-a-timezone-conversion-for-the-following/m-p/436881#M76219</guid>
      <dc:creator>krusovice</dc:creator>
      <dc:date>2020-09-29T22:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me do a timezone conversion for the following events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-you-help-me-do-a-timezone-conversion-for-the-following/m-p/436882#M76220</link>
      <description>&lt;P&gt;Thanks for the reply. I'm confused in how Splunk reading the time when the TZ setting is earlier than actual log timestamp (in this case, log is 10AM, but I want Splunk to index the time as 2AM as UTC time).&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2018 06:16:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-you-help-me-do-a-timezone-conversion-for-the-following/m-p/436882#M76220</guid>
      <dc:creator>krusovice</dc:creator>
      <dc:date>2018-12-14T06:16:15Z</dc:date>
    </item>
  </channel>
</rss>

