<?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: Setting timezone is not working in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Setting-timezone-is-not-working/m-p/174102#M35046</link>
    <description>&lt;P&gt;Splunk will set event time zones according to the following priority:&lt;BR /&gt;&lt;BR /&gt;
1)  It will use the time zone in the raw event data.&lt;BR /&gt;&lt;BR /&gt;
2)  It will use the time zone in props.conf&lt;BR /&gt;&lt;BR /&gt;
3)  If both the forwarder and indexer are 6.0 or later, then it used the time zone of the forwarder.  &lt;/P&gt;

&lt;P&gt;In your case, the time zone of the event is UTC because the time zone is included in the event.&lt;BR /&gt;&lt;BR /&gt;
However, because your MAX_TIMESTAMP_LOOKAHEAD is set to 20, Splunk never sees the time zone so it can't apply it.&lt;BR /&gt;&lt;BR /&gt;
I’m not sure why it does not check props.conf before it moves on to the third priority.  Perhaps the props.conf is in the wrong location?  &lt;/P&gt;

&lt;P&gt;Regardless, change your MAX_TIMESTAMP_LOOKAHEAD to 30.&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 16:41:13 GMT</pubDate>
    <dc:creator>lukejadamec</dc:creator>
    <dc:date>2020-09-28T16:41:13Z</dc:date>
    <item>
      <title>Setting timezone is not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Setting-timezone-is-not-working/m-p/174101#M35045</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;We are using Splunk 6.0.3&lt;/P&gt;

&lt;P&gt;The host (no matter where it is located) always sends logs with UTC time. In my props.conf file i have added &lt;CODE&gt;TZ = UTC&lt;/CODE&gt; in the stanza that processes the logs. But still i see the _time as forwarder's time zone.&lt;IMG src="http://answers.splunk.com//storage/UTC_Error.jpeg" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;My Props.conf looks like this:&lt;BR /&gt;&lt;BR /&gt;
    SHOULD_LINEMERGE=false&lt;BR /&gt;&lt;BR /&gt;
    LINE_BREAKER=([\r\n]+)\d{2}-[a-zA-Z]{3}-\d{4}\s\d{2}:\d{2}:\d{2}\s&lt;BR /&gt;&lt;BR /&gt;
    MAX_TIMESTAMP_LOOKAHEAD=20&lt;BR /&gt;&lt;BR /&gt;
    TIME_PREFIX=^&lt;BR /&gt;&lt;BR /&gt;
    TIME_FORMAT=%d-%b-%Y %H:%M:%S&lt;BR /&gt;&lt;BR /&gt;
    TZ=UTC&lt;/P&gt;

&lt;P&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;
Strive&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:41:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Setting-timezone-is-not-working/m-p/174101#M35045</guid>
      <dc:creator>strive</dc:creator>
      <dc:date>2020-09-28T16:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: Setting timezone is not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Setting-timezone-is-not-working/m-p/174102#M35046</link>
      <description>&lt;P&gt;Splunk will set event time zones according to the following priority:&lt;BR /&gt;&lt;BR /&gt;
1)  It will use the time zone in the raw event data.&lt;BR /&gt;&lt;BR /&gt;
2)  It will use the time zone in props.conf&lt;BR /&gt;&lt;BR /&gt;
3)  If both the forwarder and indexer are 6.0 or later, then it used the time zone of the forwarder.  &lt;/P&gt;

&lt;P&gt;In your case, the time zone of the event is UTC because the time zone is included in the event.&lt;BR /&gt;&lt;BR /&gt;
However, because your MAX_TIMESTAMP_LOOKAHEAD is set to 20, Splunk never sees the time zone so it can't apply it.&lt;BR /&gt;&lt;BR /&gt;
I’m not sure why it does not check props.conf before it moves on to the third priority.  Perhaps the props.conf is in the wrong location?  &lt;/P&gt;

&lt;P&gt;Regardless, change your MAX_TIMESTAMP_LOOKAHEAD to 30.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:41:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Setting-timezone-is-not-working/m-p/174102#M35046</guid>
      <dc:creator>lukejadamec</dc:creator>
      <dc:date>2020-09-28T16:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: Setting timezone is not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Setting-timezone-is-not-working/m-p/174103#M35047</link>
      <description>&lt;P&gt;Thanks for your response. props.conf is inside /IndexAPP/local/ directory. This splunk app is added to peer nodes (indexers).&lt;/P&gt;

&lt;P&gt;Note: we use clusters&lt;/P&gt;</description>
      <pubDate>Wed, 21 May 2014 20:48:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Setting-timezone-is-not-working/m-p/174103#M35047</guid>
      <dc:creator>strive</dc:creator>
      <dc:date>2014-05-21T20:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: Setting timezone is not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Setting-timezone-is-not-working/m-p/174104#M35048</link>
      <description>&lt;P&gt;The issue was with forwarder. It is resolved.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jul 2014 02:03:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Setting-timezone-is-not-working/m-p/174104#M35048</guid>
      <dc:creator>strive</dc:creator>
      <dc:date>2014-07-23T02:03:25Z</dc:date>
    </item>
    <item>
      <title>Re: Setting timezone is not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Setting-timezone-is-not-working/m-p/174105#M35049</link>
      <description>&lt;P&gt;what's was the issue? we are having the same issue where the timezone is set as UTC, but it still indexes data in EDT. &lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2017 02:34:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Setting-timezone-is-not-working/m-p/174105#M35049</guid>
      <dc:creator>jdhruti</dc:creator>
      <dc:date>2017-06-07T02:34:06Z</dc:date>
    </item>
  </channel>
</rss>

