<?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 Timezone change TZ not working. in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Timezone-change-TZ-not-working/m-p/407874#M72329</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;We are getting logs in UTC format, I tried using TZ=UTC on Heavy forwarder, but its not working for all events.&lt;/P&gt;

&lt;P&gt;Working events:&lt;BR /&gt;
_time                                          Event_Timestamp&lt;BR /&gt;
2019-07-26 08:25:44.000 2019-07-26T13:24:43.3570000Z&lt;BR /&gt;
2019-07-26 07:21:45.000 2019-07-26T12:20:42.0070000Z&lt;/P&gt;

&lt;P&gt;Not working:&lt;BR /&gt;
_time                                          Event_Timestamp&lt;BR /&gt;
2019-07-26 07:04:06.417 2019-07-26T07:04:06.4170000Z&lt;BR /&gt;
2019-07-26 07:03:06.293 2019-07-26T07:03:06.2930000Z&lt;/P&gt;

&lt;P&gt;Any suggestions?&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 01:27:37 GMT</pubDate>
    <dc:creator>knalla</dc:creator>
    <dc:date>2020-09-30T01:27:37Z</dc:date>
    <item>
      <title>Timezone change TZ not working.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timezone-change-TZ-not-working/m-p/407874#M72329</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;We are getting logs in UTC format, I tried using TZ=UTC on Heavy forwarder, but its not working for all events.&lt;/P&gt;

&lt;P&gt;Working events:&lt;BR /&gt;
_time                                          Event_Timestamp&lt;BR /&gt;
2019-07-26 08:25:44.000 2019-07-26T13:24:43.3570000Z&lt;BR /&gt;
2019-07-26 07:21:45.000 2019-07-26T12:20:42.0070000Z&lt;/P&gt;

&lt;P&gt;Not working:&lt;BR /&gt;
_time                                          Event_Timestamp&lt;BR /&gt;
2019-07-26 07:04:06.417 2019-07-26T07:04:06.4170000Z&lt;BR /&gt;
2019-07-26 07:03:06.293 2019-07-26T07:03:06.2930000Z&lt;/P&gt;

&lt;P&gt;Any suggestions?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:27:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timezone-change-TZ-not-working/m-p/407874#M72329</guid>
      <dc:creator>knalla</dc:creator>
      <dc:date>2020-09-30T01:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: Timezone change TZ not working.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timezone-change-TZ-not-working/m-p/407875#M72330</link>
      <description>&lt;P&gt;What are your TIME_PREFIX and TIME_FORMAT settings?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:27:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timezone-change-TZ-not-working/m-p/407875#M72330</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-09-30T01:27:39Z</dc:date>
    </item>
    <item>
      <title>Re: Timezone change TZ not working.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timezone-change-TZ-not-working/m-p/407876#M72331</link>
      <description>&lt;P&gt;nothing, just added TZ=UTC for source type.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2019 17:06:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timezone-change-TZ-not-working/m-p/407876#M72331</guid>
      <dc:creator>knalla</dc:creator>
      <dc:date>2019-07-26T17:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: Timezone change TZ not working.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timezone-change-TZ-not-working/m-p/407877#M72332</link>
      <description>&lt;P&gt;Do I need TIME_PREFIX and TIME_FORMAT?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:27:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timezone-change-TZ-not-working/m-p/407877#M72332</guid>
      <dc:creator>knalla</dc:creator>
      <dc:date>2020-09-30T01:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: Timezone change TZ not working.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timezone-change-TZ-not-working/m-p/407878#M72333</link>
      <description>&lt;P&gt;Added these in props.conf&lt;/P&gt;

&lt;P&gt;TIME_FORMAT = %Y-%m-%dT%H:%M:%S.%3N&lt;BR /&gt;
TIME_PREFIX = \"TimeStamp\": \"&lt;BR /&gt;
TZ = UTC&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:27:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timezone-change-TZ-not-working/m-p/407878#M72333</guid>
      <dc:creator>knalla</dc:creator>
      <dc:date>2020-09-30T01:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: Timezone change TZ not working.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timezone-change-TZ-not-working/m-p/407879#M72334</link>
      <description>&lt;P&gt;You don't &lt;EM&gt;need&lt;/EM&gt; TIME_PREFIX and TIME_FORMAT, but it's a Best Practice to use both.&lt;BR /&gt;
There's no need for the escape characters in TIME_PREFIX.&lt;BR /&gt;
TIME_FORMAT should include the time zone indicator.  &lt;CODE&gt;%Y-%m-%dT%H:%M:%S.%7N%Z&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:27:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timezone-change-TZ-not-working/m-p/407879#M72334</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-09-30T01:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: Timezone change TZ not working.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timezone-change-TZ-not-working/m-p/407880#M72335</link>
      <description>&lt;P&gt;Do not set TZ with &lt;CODE&gt;TZ=&lt;/CODE&gt;, set it with:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_PREFIX = ^\d+\-\d+\-\d+\s+\d+:\d+:\d+\.\d+\s+
TIME_FORMAT = %Y-%m-%dT%H:%M:%S.%7N%Z
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 27 Jul 2019 14:50:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timezone-change-TZ-not-working/m-p/407880#M72335</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-07-27T14:50:28Z</dc:date>
    </item>
  </channel>
</rss>

