<?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: Why am I seeing timezone differences for sourcetypes on the same host? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-seeing-timezone-differences-for-sourcetypes-on-the-same/m-p/165019#M33474</link>
    <description>&lt;P&gt;Hi rune.hellem &lt;BR /&gt;
Look at the instruction of defining the timezone in props.conf file .It will help you&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TZ  =&amp;lt;timezone identifier&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The algorithm for determining the time zone for a particular event is&lt;BR /&gt;
as follows:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;P&gt;If the event has a timezone in its raw text (for example, UTC,&lt;BR /&gt;
-08:00), use that.&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;If TZ is set to a valid timezone string,use that.&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;If the event was forwarded, and the forwarder-indexer connection is&lt;BR /&gt;
using the&lt;BR /&gt;
6.0+ forwarding protocol, use the timezone provided by the forwarder.&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Otherwise, use the timezone of the system that is running splunkd.&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Defaults to empty.&lt;/P&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
    <pubDate>Fri, 24 Apr 2015 12:26:36 GMT</pubDate>
    <dc:creator>chimell</dc:creator>
    <dc:date>2015-04-24T12:26:36Z</dc:date>
    <item>
      <title>Why am I seeing timezone differences for sourcetypes on the same host?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-seeing-timezone-differences-for-sourcetypes-on-the-same/m-p/165018#M33473</link>
      <description>&lt;P&gt;Indexing log files from a couple of IIS-servers. The events being logged are logged as GMT, whereas the time here in Oslo is GMT+2 during summertime. So for sourcetype IIS it is all correct. The raw event is for instance 10:00, but the time in Splunk shows 12:00. &lt;/P&gt;

&lt;P&gt;Problem is for my custom sourcetype IISAdvanced, defined in props.conf. I have specified &lt;STRONG&gt;TZ = Europe/Oslo&lt;/STRONG&gt; (previously tried TZ = CET), done ** Splunk reload deploy-server** and then restarted search head and indexer. But no help. Both Splunk time and event time is equal, so Splunk does not understand my timezone instruction. &lt;/P&gt;

&lt;P&gt;Sourcetype defined like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[iisadvanced]
pulldown_type = true
MAX_TIMESTAMP_LOOKAHEAD = 32
SHOULD_LINEMERGE = False
CHECK_FOR_HEADER = False
TZ = Europe/Oslo
REPORT-iisadvancedfields = iisadvancedfields
TRANSFORMS-removecomments = removecomments
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;BTW: Splunk 6.2.2 on Windows 2012 server, indexer on 2008 server. &lt;/P&gt;

&lt;P&gt;Adding screenshots&lt;BR /&gt;
This is the default sourcetype IIS, where timezone is handeled correctly&lt;BR /&gt;
 &lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/331i8CDAED152C61A8A3/image-size/large?v=v2&amp;amp;px=999" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;BR /&gt;
and this is the custom sourcetype IISAdvanced where timezone is not handeled correctly, both Splunk time and raw time is identical. &lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/332i2A126716C0FD2F7B/image-size/large?v=v2&amp;amp;px=999" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Apr 2015 12:10:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-seeing-timezone-differences-for-sourcetypes-on-the-same/m-p/165018#M33473</guid>
      <dc:creator>rune_hellem</dc:creator>
      <dc:date>2015-04-24T12:10:07Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I seeing timezone differences for sourcetypes on the same host?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-seeing-timezone-differences-for-sourcetypes-on-the-same/m-p/165019#M33474</link>
      <description>&lt;P&gt;Hi rune.hellem &lt;BR /&gt;
Look at the instruction of defining the timezone in props.conf file .It will help you&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TZ  =&amp;lt;timezone identifier&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The algorithm for determining the time zone for a particular event is&lt;BR /&gt;
as follows:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;P&gt;If the event has a timezone in its raw text (for example, UTC,&lt;BR /&gt;
-08:00), use that.&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;If TZ is set to a valid timezone string,use that.&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;If the event was forwarded, and the forwarder-indexer connection is&lt;BR /&gt;
using the&lt;BR /&gt;
6.0+ forwarding protocol, use the timezone provided by the forwarder.&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Otherwise, use the timezone of the system that is running splunkd.&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Defaults to empty.&lt;/P&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Fri, 24 Apr 2015 12:26:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-seeing-timezone-differences-for-sourcetypes-on-the-same/m-p/165019#M33474</guid>
      <dc:creator>chimell</dc:creator>
      <dc:date>2015-04-24T12:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I seeing timezone differences for sourcetypes on the same host?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-seeing-timezone-differences-for-sourcetypes-on-the-same/m-p/165020#M33475</link>
      <description>&lt;P&gt;Got it&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;Otherwise, use the timezone of the system that is running splunkd.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;I did use &lt;STRONG&gt;Europe/Oslo&lt;/STRONG&gt;, which is the timezone of the searchhead. Changed to &lt;STRONG&gt;Etc/GMT&lt;/STRONG&gt;, the timezone of the server running the forwarder, problem solved.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2015 07:22:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-seeing-timezone-differences-for-sourcetypes-on-the-same/m-p/165020#M33475</guid>
      <dc:creator>rune_hellem</dc:creator>
      <dc:date>2015-04-27T07:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I seeing timezone differences for sourcetypes on the same host?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-seeing-timezone-differences-for-sourcetypes-on-the-same/m-p/165021#M33476</link>
      <description>&lt;P&gt;good thanks&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2015 16:32:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-seeing-timezone-differences-for-sourcetypes-on-the-same/m-p/165021#M33476</guid>
      <dc:creator>chimell</dc:creator>
      <dc:date>2015-04-27T16:32:20Z</dc:date>
    </item>
  </channel>
</rss>

