<?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 Time Zone Confusion in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Time-Zone-Confusion/m-p/106379#M22402</link>
    <description>&lt;P&gt;Hi, All.&lt;/P&gt;

&lt;P&gt;I’m running into an issue with heavy forwarders not setting the time zone correctly when sending logs to my indexer. All indexers are on CST, and forwarders can be pretty much anything.&lt;/P&gt;

&lt;P&gt;I’ll step through a device and see if you can pin down where I’m doing it terribly wrong. The available docs aren't the most clear-cut on this topic.&lt;/P&gt;

&lt;P&gt;OK, log in to a system with a date problem, check the date:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SWEB1 ~ # date
Mon Jul 23 18:21:03 EDT 2012
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;edit &lt;CODE&gt;/opt/splunk/etc/system/local/props.conf&lt;/CODE&gt; on the heavy forwarder and set the time zone:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[host::*]
TZ = US/Eastern
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Restart the heavy forwarder, view logs on indexer. They’re still showing up with the incorrect time zone (I.E. one hour off from CST)&lt;/P&gt;

&lt;P&gt;What do I need to do to make the EST logs on the heavy forwarder show up as CST on the indexer?&lt;/P&gt;

&lt;P&gt;According to the &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/data/Applytimezoneoffsetstotimestamps"&gt;docs&lt;/A&gt;, the examples like &lt;STRONG&gt;US/Eastern&lt;/STRONG&gt; and &lt;STRONG&gt;US/ Pacific&lt;/STRONG&gt; are used as for setting Splunk TZ, then points us to &lt;A href="http://en.wikipedia.org/wiki/List_of_zoneinfo_timezones"&gt;Wikipedia&lt;/A&gt; for a much more thorough treatment of what to put in there. &lt;/P&gt;

&lt;P&gt;However, the Wikipedia page does not use either &lt;STRONG&gt;US/Eastern&lt;/STRONG&gt; and &lt;STRONG&gt;US/ Pacific&lt;/STRONG&gt; at all for TZ entries. &lt;STRONG&gt;America/New_York&lt;/STRONG&gt; or &lt;STRONG&gt;America/Los_Angeles&lt;/STRONG&gt; is listed as correct. Which one will work best for Splunk?&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;Edit&lt;/EM&gt;: this is occurring with all &lt;EM&gt;new&lt;/EM&gt; data sent by the forwarder after I adjusted the props.conf on the heavy forwarder. I'm ignoring any historical data for this test.&lt;/P&gt;

&lt;P&gt;If you could point me in the right direction, I'd appreciate it.&lt;/P&gt;

&lt;P&gt;tom&lt;/P&gt;</description>
    <pubDate>Mon, 23 Jul 2012 22:51:48 GMT</pubDate>
    <dc:creator>tgiles</dc:creator>
    <dc:date>2012-07-23T22:51:48Z</dc:date>
    <item>
      <title>Time Zone Confusion</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Time-Zone-Confusion/m-p/106379#M22402</link>
      <description>&lt;P&gt;Hi, All.&lt;/P&gt;

&lt;P&gt;I’m running into an issue with heavy forwarders not setting the time zone correctly when sending logs to my indexer. All indexers are on CST, and forwarders can be pretty much anything.&lt;/P&gt;

&lt;P&gt;I’ll step through a device and see if you can pin down where I’m doing it terribly wrong. The available docs aren't the most clear-cut on this topic.&lt;/P&gt;

&lt;P&gt;OK, log in to a system with a date problem, check the date:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SWEB1 ~ # date
Mon Jul 23 18:21:03 EDT 2012
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;edit &lt;CODE&gt;/opt/splunk/etc/system/local/props.conf&lt;/CODE&gt; on the heavy forwarder and set the time zone:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[host::*]
TZ = US/Eastern
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Restart the heavy forwarder, view logs on indexer. They’re still showing up with the incorrect time zone (I.E. one hour off from CST)&lt;/P&gt;

&lt;P&gt;What do I need to do to make the EST logs on the heavy forwarder show up as CST on the indexer?&lt;/P&gt;

&lt;P&gt;According to the &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/data/Applytimezoneoffsetstotimestamps"&gt;docs&lt;/A&gt;, the examples like &lt;STRONG&gt;US/Eastern&lt;/STRONG&gt; and &lt;STRONG&gt;US/ Pacific&lt;/STRONG&gt; are used as for setting Splunk TZ, then points us to &lt;A href="http://en.wikipedia.org/wiki/List_of_zoneinfo_timezones"&gt;Wikipedia&lt;/A&gt; for a much more thorough treatment of what to put in there. &lt;/P&gt;

&lt;P&gt;However, the Wikipedia page does not use either &lt;STRONG&gt;US/Eastern&lt;/STRONG&gt; and &lt;STRONG&gt;US/ Pacific&lt;/STRONG&gt; at all for TZ entries. &lt;STRONG&gt;America/New_York&lt;/STRONG&gt; or &lt;STRONG&gt;America/Los_Angeles&lt;/STRONG&gt; is listed as correct. Which one will work best for Splunk?&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;Edit&lt;/EM&gt;: this is occurring with all &lt;EM&gt;new&lt;/EM&gt; data sent by the forwarder after I adjusted the props.conf on the heavy forwarder. I'm ignoring any historical data for this test.&lt;/P&gt;

&lt;P&gt;If you could point me in the right direction, I'd appreciate it.&lt;/P&gt;

&lt;P&gt;tom&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jul 2012 22:51:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Time-Zone-Confusion/m-p/106379#M22402</guid>
      <dc:creator>tgiles</dc:creator>
      <dc:date>2012-07-23T22:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: Time Zone Confusion</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Time-Zone-Confusion/m-p/106380#M22403</link>
      <description>&lt;P&gt;So here's the deal - the timezone setting will only apply to new data arriving in Splunk. Any existing data (that has already been indexed) will not be changed.&lt;/P&gt;

&lt;P&gt;So the only way to correct the data would be to remove it from the index and then reindex it. This will be a tedious endeavor, but it may be your best solution.&lt;/P&gt;

&lt;P&gt;Here is a pretty good entry that describes the steps in &lt;A href="http://splunk-base.splunk.com/answers/2954/how-can-i-re-index-all-the-data-in-my-environment"&gt;reindexing&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jul 2012 06:28:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Time-Zone-Confusion/m-p/106380#M22403</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2012-07-24T06:28:43Z</dc:date>
    </item>
    <item>
      <title>Re: Time Zone Confusion</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Time-Zone-Confusion/m-p/106381#M22404</link>
      <description>&lt;P&gt;Hi, Thanks for the input. I probably should have been clearer- all of the new data coming into the indexer is still an hour off, even after performing a timezone adjustment on the forwarder.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jul 2012 14:05:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Time-Zone-Confusion/m-p/106381#M22404</guid>
      <dc:creator>tgiles</dc:creator>
      <dc:date>2012-07-24T14:05:35Z</dc:date>
    </item>
  </channel>
</rss>

