<?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: Time zone difference in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Time-zone-difference/m-p/63517#M180301</link>
    <description>&lt;P&gt;Thanks!  On props.conf on the indexer, I changed it to this format and then escaped the backslashes with a backslash and it worked.  Example below.&lt;/P&gt;

&lt;P&gt;[source::c:\\logs\\path\\*.log]&lt;BR /&gt;
TZ = Atlantic/St_Helena&lt;/P&gt;</description>
    <pubDate>Fri, 13 Sep 2013 21:45:44 GMT</pubDate>
    <dc:creator>DavidGuarneri</dc:creator>
    <dc:date>2013-09-13T21:45:44Z</dc:date>
    <item>
      <title>Time zone difference</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Time-zone-difference/m-p/63514#M180298</link>
      <description>&lt;P&gt;I have a source type where iis logs copied from another server to the forwarder are being recorded in UTC but not indicating such.  Example:&lt;/P&gt;

&lt;P&gt;2013-09-13 14:40:00 Blah 255.0.0.0 POST /example/index.aspx - 443 ...etc&lt;/P&gt;

&lt;P&gt;The splunk forwarder (as well as the indexer) is in CDT (Central).  In the forwarder, I created a props.conf in the path c:\Program Files\SplunkUniversalForwarder\etc\system\local and inserted the following:&lt;/P&gt;

&lt;P&gt;[source://c:\logs\path\*.log]&lt;BR /&gt;
TZ = SH&lt;/P&gt;

&lt;P&gt;I restarted the forwarder's SplunkFowarder service .  I've waited.  Splunk is still not translating the times.  I even made a change to one log entry as a test, and it's still showing logs from 7 hours ago as the current hour's logs when I do a search for a string in a log entry from 7 hours ago.&lt;/P&gt;

&lt;P&gt;Help is appreciated.&lt;/P&gt;

&lt;P&gt;Sources used: &lt;BR /&gt;
docs.splunk.com/Documentation/Splunk/5.0.4/Data/Applytimezoneoffsetstotimestamps&lt;BR /&gt;
en.wikipedia.org/wiki/List_of_zoneinfo_timezones&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:46:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Time-zone-difference/m-p/63514#M180298</guid>
      <dc:creator>DavidGuarneri</dc:creator>
      <dc:date>2020-09-28T14:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: Time zone difference</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Time-zone-difference/m-p/63515#M180299</link>
      <description>&lt;P&gt;the props TZ is applied at index time, not on the forwarder.&lt;BR /&gt;
Specify the TZ in props.conf on the indexer (or heavy forwarder level if any).&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2013 20:30:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Time-zone-difference/m-p/63515#M180299</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2013-09-13T20:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: Time zone difference</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Time-zone-difference/m-p/63516#M180300</link>
      <description>&lt;P&gt;First, I don't know that the timezone takes the two-character zoneinfo. And the syntax for the &lt;CODE&gt;source&lt;/CODE&gt; in &lt;CODE&gt;props.conf&lt;/CODE&gt; is not the same as the syntax for &lt;CODE&gt;monitor&lt;/CODE&gt; in &lt;CODE&gt;inputs.conf&lt;/CODE&gt;. So I would do this.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::c:\logs\path\*.log]
TZ = Atlantic/St_Helena
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;More importantly, this &lt;CODE&gt;props.conf&lt;/CODE&gt; entry does &lt;EM&gt;not&lt;/EM&gt; go on the Universal Forwarder. It must be where the events are parsed - that means that it should be on all the indexers. &lt;/P&gt;

&lt;P&gt;However, if you want to do the parsing on the forwarder, you can use a heavy forwarder and do the parsing &lt;EM&gt;before&lt;/EM&gt; forwarding to the indexers. This may be your best choice for this forwarder if it is collecting logs from a variety of timezones.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2013 20:57:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Time-zone-difference/m-p/63516#M180300</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2013-09-13T20:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: Time zone difference</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Time-zone-difference/m-p/63517#M180301</link>
      <description>&lt;P&gt;Thanks!  On props.conf on the indexer, I changed it to this format and then escaped the backslashes with a backslash and it worked.  Example below.&lt;/P&gt;

&lt;P&gt;[source::c:\\logs\\path\\*.log]&lt;BR /&gt;
TZ = Atlantic/St_Helena&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2013 21:45:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Time-zone-difference/m-p/63517#M180301</guid>
      <dc:creator>DavidGuarneri</dc:creator>
      <dc:date>2013-09-13T21:45:44Z</dc:date>
    </item>
  </channel>
</rss>

