<?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: Timezone affecting logs date in Splunk in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Timezone-affecting-logs-date-in-Splunk/m-p/450462#M78187</link>
    <description>&lt;P&gt;Hi @burwell,&lt;/P&gt;

&lt;P&gt;I am using TIME_FORMAT = %Y-%m-%d %H:%M:%S,%3N because the date of the log that I want the event to be split is 2018-11-01 04:59:40,965&lt;/P&gt;

&lt;P&gt;&lt;IMG src="https://imgur.com/a/DjNHr8W" alt="Example of an event" /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 01 Nov 2018 05:12:22 GMT</pubDate>
    <dc:creator>zongwei</dc:creator>
    <dc:date>2018-11-01T05:12:22Z</dc:date>
    <item>
      <title>Timezone affecting logs date in Splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timezone-affecting-logs-date-in-Splunk/m-p/450459#M78184</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;My timezone is GMT+8, and this caused logs captured in Splunk to always be 8 hours ago.&lt;/P&gt;

&lt;P&gt;For instance:&lt;BR /&gt;
Time log is captured: 2018-10-31 16:17:30,241&lt;BR /&gt;
Time shown on splunk: 2018-10-31 08:17:30,241&lt;/P&gt;

&lt;P&gt;I have tried configuring TZ in props.conf but it does not seem to work. here is snippet of my props.conf&lt;/P&gt;

&lt;P&gt;[source]&lt;BR /&gt;
TIME_FORMAT = %Y-%m-%d %H:%M:%S,%3N&lt;BR /&gt;
TZ = Asia/Singapore&lt;/P&gt;

&lt;P&gt;Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Wed, 31 Oct 2018 08:20:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timezone-affecting-logs-date-in-Splunk/m-p/450459#M78184</guid>
      <dc:creator>zongwei</dc:creator>
      <dc:date>2018-10-31T08:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: Timezone affecting logs date in Splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timezone-affecting-logs-date-in-Splunk/m-p/450460#M78185</link>
      <description>&lt;P&gt;Additonal info:&lt;/P&gt;

&lt;P&gt;For every event log, there is the _time field. Example of a _time field:&lt;/P&gt;

&lt;P&gt;2018-11-01T03:04:33.916+08:00&lt;/P&gt;

&lt;P&gt;It seems that Splunk does know that the time is short by 8 hours, but the logs display ignored the +08:00 behind the _time field.&lt;/P&gt;

&lt;P&gt;Is there anyway to workaround with this to display the correct time? Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 01 Nov 2018 03:15:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timezone-affecting-logs-date-in-Splunk/m-p/450460#M78185</guid>
      <dc:creator>zongwei</dc:creator>
      <dc:date>2018-11-01T03:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: Timezone affecting logs date in Splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timezone-affecting-logs-date-in-Splunk/m-p/450461#M78186</link>
      <description>&lt;P&gt;Hello @zongwei. It appears that the props you have for you time format&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_FORMAT = %Y-%m-%d %H:%M:%S,%3N
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Doesn't match the time in the logs&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2018-11-01T03:04:33.916+08:00
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;OL&gt;
&lt;LI&gt;The time would need to include the letter T after the day of the month&lt;/LI&gt;
&lt;LI&gt;You have %S,%3N for seconds which is seconds + a comma + 3 digits of subseconds. But your logs have a seconds then a period then 3 subseconds&lt;/LI&gt;
&lt;LI&gt;You would need to have a timezone that include the +08:00 (use %:z I believe)&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Thu, 01 Nov 2018 04:46:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timezone-affecting-logs-date-in-Splunk/m-p/450461#M78186</guid>
      <dc:creator>burwell</dc:creator>
      <dc:date>2018-11-01T04:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: Timezone affecting logs date in Splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timezone-affecting-logs-date-in-Splunk/m-p/450462#M78187</link>
      <description>&lt;P&gt;Hi @burwell,&lt;/P&gt;

&lt;P&gt;I am using TIME_FORMAT = %Y-%m-%d %H:%M:%S,%3N because the date of the log that I want the event to be split is 2018-11-01 04:59:40,965&lt;/P&gt;

&lt;P&gt;&lt;IMG src="https://imgur.com/a/DjNHr8W" alt="Example of an event" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Nov 2018 05:12:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timezone-affecting-logs-date-in-Splunk/m-p/450462#M78187</guid>
      <dc:creator>zongwei</dc:creator>
      <dc:date>2018-11-01T05:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: Timezone affecting logs date in Splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timezone-affecting-logs-date-in-Splunk/m-p/450463#M78188</link>
      <description>&lt;P&gt;Oh I misunderstood the issue. Also I can't see the example (I see a broken image)&lt;/P&gt;

&lt;P&gt;So it sounds to me like perhaps your user profile has a time setting so you are showing the events in a different timezone: &lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/7.2.0/Security/ConfigureuserswithSplunkWeb"&gt;http://docs.splunk.com/Documentation/Splunk/7.2.0/Security/ConfigureuserswithSplunkWeb&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;When I look at this:&lt;BR /&gt;
&lt;A href="+http://docs.splunk.com/Documentation/Splunk/7.2.0/Data/Applytimezoneoffsetstotimestamps"&gt;http://docs.splunk.com/Documentation/Splunk/7.2.0/Data/Applytimezoneoffsetstotimestamps&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;You are providing the time info and the timezone data.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Nov 2018 05:12:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timezone-affecting-logs-date-in-Splunk/m-p/450463#M78188</guid>
      <dc:creator>burwell</dc:creator>
      <dc:date>2018-11-02T05:12:37Z</dc:date>
    </item>
    <item>
      <title>Re: Timezone affecting logs date in Splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timezone-affecting-logs-date-in-Splunk/m-p/450464#M78189</link>
      <description>&lt;P&gt;Hi @zongwei,&lt;BR /&gt;
Please try below configuration.&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::source-name]
TIME_FORMAT = %Y-%m-%d %H:%M:%S,%3N
TZ = Timezone of event source system where the event is generated (If time in log event is in UTC/GMT then do not specify this option)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Set your timezone into Splunk by going  &lt;CODE&gt;User Setting (above Logout option) -&amp;gt; Timezone&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Nov 2018 09:27:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timezone-affecting-logs-date-in-Splunk/m-p/450464#M78189</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2018-11-02T09:27:11Z</dc:date>
    </item>
  </channel>
</rss>

