<?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 how to solve Time difference issue? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/how-to-solve-Time-difference-issue/m-p/454136#M78618</link>
    <description>&lt;P&gt;Hi Guys,&lt;BR /&gt;
I'm getting the time difference of events in splunk SH. &lt;BR /&gt;
I've also tried to put TZ = UTC in props.conf of an APP at HF&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/7534i27D68C913A64211C/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;. But didn't work&lt;/P&gt;

&lt;H2&gt;[sourcetype]&lt;/H2&gt;

&lt;HR /&gt;

&lt;HR /&gt;

&lt;P&gt;TZ = UTC&lt;/P&gt;</description>
    <pubDate>Tue, 20 Aug 2019 06:33:58 GMT</pubDate>
    <dc:creator>ssharma09</dc:creator>
    <dc:date>2019-08-20T06:33:58Z</dc:date>
    <item>
      <title>how to solve Time difference issue?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-solve-Time-difference-issue/m-p/454136#M78618</link>
      <description>&lt;P&gt;Hi Guys,&lt;BR /&gt;
I'm getting the time difference of events in splunk SH. &lt;BR /&gt;
I've also tried to put TZ = UTC in props.conf of an APP at HF&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/7534i27D68C913A64211C/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;. But didn't work&lt;/P&gt;

&lt;H2&gt;[sourcetype]&lt;/H2&gt;

&lt;HR /&gt;

&lt;HR /&gt;

&lt;P&gt;TZ = UTC&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2019 06:33:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-solve-Time-difference-issue/m-p/454136#M78618</guid>
      <dc:creator>ssharma09</dc:creator>
      <dc:date>2019-08-20T06:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: how to solve Time difference issue?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-solve-Time-difference-issue/m-p/454137#M78619</link>
      <description>&lt;P&gt;What is the time zone of the data source?  What is the time zone setting for the user who produced the output? What is the &lt;CODE&gt;TIME_FORMAT&lt;/CODE&gt; setting for the sourcetype?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2019 13:01:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-solve-Time-difference-issue/m-p/454137#M78619</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2019-08-20T13:01:49Z</dc:date>
    </item>
    <item>
      <title>Re: how to solve Time difference issue?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-solve-Time-difference-issue/m-p/454138#M78620</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;TZ = &amp;lt;timezone identifier&amp;gt;
* The algorithm for determining the time zone for a particular event is as
  follows:
  * If the event has a timezone in its raw text (for example, UTC, -08:00),
  use that.
  * If TZ is set to a valid timezone string, use that.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Based on that, it will only use the TZ setting, if the TZ is not found in the event. &lt;/P&gt;

&lt;P&gt;You event has a valid TZ of +1000, which Splunk is applying causing the time to 06:19:27 + 1000 = 16:19:27&lt;/P&gt;

&lt;P&gt;If you want it to ignore the timezone set in the timestamp, I believe you will need to configure a custom timestamp extraction for this sourcetype in props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_FORMAT = &amp;lt;strptime-style format&amp;gt;
* Specifies a "strptime" format string to extract the date.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Although the real fix, is to correct the time on the end device. &lt;/P&gt;

&lt;P&gt;You could also have the device sent to a syslog server, that syslog server could apply the timestamp you want as it writes to file, and Splunk can monitor the syslog files. &lt;/P&gt;

&lt;P&gt;As long as the latency between your endpoints and syslog servers are low, the timestamps should be close enough and all normalized your specified timezone. &lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2019 13:47:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-solve-Time-difference-issue/m-p/454138#M78620</guid>
      <dc:creator>solarboyz1</dc:creator>
      <dc:date>2019-08-20T13:47:44Z</dc:date>
    </item>
  </channel>
</rss>

