<?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 in props.conf doesn't have any effect in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Timezone-in-props-conf-doesn-t-have-any-effect/m-p/483773#M82869</link>
    <description>&lt;PRE&gt;&lt;CODE&gt;TIME_PREFIX=timestamp
⇨
TIME_PREFIX=\"timestamp\": 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;HR /&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_FORMAT=%Y-%m-%d %H:%M:%S
⇨
TIME_FORMAT="%Y-%m-%d %H:%M:%S"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hi, how about it?&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2019 08:03:00 GMT</pubDate>
    <dc:creator>to4kawa</dc:creator>
    <dc:date>2019-11-16T08:03:00Z</dc:date>
    <item>
      <title>Timezone in props.conf doesn't have any effect</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timezone-in-props-conf-doesn-t-have-any-effect/m-p/483772#M82868</link>
      <description>&lt;P&gt;I am working on demo using Splunk. I have a tool which uploads json data to Windows Event Log and Splunk UW forwards the data to Splunk instance (on the same machine). The json event has a field called timestamp which I plan to use for event time in splunk. I also want to interpret timestamp as from a different timezone (Europe/Lisbon). I have changed the file $SPLUNK_HOME/etc/system/local/props.conf and added:&lt;/P&gt;

&lt;P&gt;[source::WinEventLog*]&lt;BR /&gt;
TIME_PREFIX=timestamp&lt;BR /&gt;
TIME_FORMAT=%Y-%m-%d %H:%M:%S&lt;BR /&gt;&lt;BR /&gt;
TZ=Europe/Lisbon&lt;BR /&gt;
MAX_TIMESTAMP_LOOKAHEAD=30&lt;BR /&gt;
MAX_DAYS_AGO=1000&lt;/P&gt;

&lt;P&gt;I expect the event in splunk to show the time of the event as that in timestamp field and also changed by 8 hours since my computer region is PST. But it doesnt seem to have any effect on the time. The event time is shown as the time event was posed to Windows Event log. Here is a sample event:&lt;/P&gt;

&lt;P&gt;11/14/2019 07:39:41 PM&lt;BR /&gt;
LogName=CustomLog&lt;BR /&gt;
SourceName=ECEventLogProvider&lt;BR /&gt;
EventCode=256&lt;BR /&gt;
EventType=4&lt;BR /&gt;
Type=Information&lt;BR /&gt;
ComputerName=CHECHI&lt;BR /&gt;
TaskCategory=Network Events&lt;BR /&gt;
OpCode=None&lt;BR /&gt;
RecordNumber=40498&lt;BR /&gt;
Keywords=Classic&lt;BR /&gt;
Message={&lt;BR /&gt;
    "country" : "United Kingdom",&lt;BR /&gt;
    "description" : "Sample",&lt;BR /&gt;
    "deviceId" : "Computer748",&lt;BR /&gt;
    "event_id" : "34",&lt;BR /&gt;
    "id" : "29",&lt;BR /&gt;
    "logtype" : "Info",&lt;BR /&gt;
    "msgqnum" : "0",&lt;BR /&gt;
    "severity" : "High",&lt;BR /&gt;
    "source" : "Sample",&lt;BR /&gt;
    "system_state" : "S4/S5",&lt;BR /&gt;
    "timestamp" : "2019-11-12 23:43:06",&lt;BR /&gt;
    "timestamp_accuracy" : "Accurate"&lt;BR /&gt;
}&lt;/P&gt;

&lt;P&gt;The event time in splunk search shows as 11/14/2019 07:39:41 PM. I would expect it to be 2019-11-12 15:43:06 &lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 02:58:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timezone-in-props-conf-doesn-t-have-any-effect/m-p/483772#M82868</guid>
      <dc:creator>angshul</dc:creator>
      <dc:date>2020-09-30T02:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: Timezone in props.conf doesn't have any effect</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timezone-in-props-conf-doesn-t-have-any-effect/m-p/483773#M82869</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;TIME_PREFIX=timestamp
⇨
TIME_PREFIX=\"timestamp\": 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;HR /&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_FORMAT=%Y-%m-%d %H:%M:%S
⇨
TIME_FORMAT="%Y-%m-%d %H:%M:%S"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hi, how about it?&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2019 08:03:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timezone-in-props-conf-doesn-t-have-any-effect/m-p/483773#M82869</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2019-11-16T08:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: Timezone in props.conf doesn't have any effect</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timezone-in-props-conf-doesn-t-have-any-effect/m-p/483774#M82870</link>
      <description>&lt;P&gt;You are testing it wrong.  The raw event text will never change; it will always be whatever it always was.  The interpretation as used by the &lt;CODE&gt;Time picker&lt;/CODE&gt; and the &lt;CODE&gt;Time&lt;/CODE&gt; column in the &lt;CODE&gt;Events&lt;/CODE&gt; tab is somewhat hard to understand because it is adjusted to your personal &lt;CODE&gt;Time zone&lt;/CODE&gt; setting.  Make sure to set your &lt;CODE&gt;&amp;lt;Your Name&amp;gt;&lt;/CODE&gt; -&amp;gt; &lt;CODE&gt;Settings&lt;/CODE&gt; -&amp;gt; &lt;CODE&gt;Time zone&lt;/CODE&gt; to an appropriate value and you will see that indeed, it does work as presented by the &lt;CODE&gt;Time&lt;/CODE&gt; column.&lt;/P&gt;</description>
      <pubDate>Sun, 17 Nov 2019 02:41:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timezone-in-props-conf-doesn-t-have-any-effect/m-p/483774#M82870</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-11-17T02:41:10Z</dc:date>
    </item>
  </channel>
</rss>

