<?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 Splunk doesn't recognize timestamp properly when importing data from DB in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-doesn-t-recognize-timestamp-properly-when-importing-data/m-p/194202#M98609</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;I'm importing simple events from Oracle table. I don't have specific field with timestamp in database table and while I'm trying to import data I have a GMT time in the timestamp except GMT+4 as my (and server) timezone should be.&lt;/P&gt;

&lt;P&gt;I tried to fix this with such code in &lt;EM&gt;props.conf&lt;/EM&gt; in etc/system/local but didn't succeed:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[sourcetype_name]
TZ=Europe/Moscow
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;How can I fix this and make correct timestamps?&lt;/P&gt;</description>
    <pubDate>Mon, 25 Aug 2014 16:00:02 GMT</pubDate>
    <dc:creator>ArsenyKapralov</dc:creator>
    <dc:date>2014-08-25T16:00:02Z</dc:date>
    <item>
      <title>Splunk doesn't recognize timestamp properly when importing data from DB</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-doesn-t-recognize-timestamp-properly-when-importing-data/m-p/194202#M98609</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;I'm importing simple events from Oracle table. I don't have specific field with timestamp in database table and while I'm trying to import data I have a GMT time in the timestamp except GMT+4 as my (and server) timezone should be.&lt;/P&gt;

&lt;P&gt;I tried to fix this with such code in &lt;EM&gt;props.conf&lt;/EM&gt; in etc/system/local but didn't succeed:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[sourcetype_name]
TZ=Europe/Moscow
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;How can I fix this and make correct timestamps?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Aug 2014 16:00:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-doesn-t-recognize-timestamp-properly-when-importing-data/m-p/194202#M98609</guid>
      <dc:creator>ArsenyKapralov</dc:creator>
      <dc:date>2014-08-25T16:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk doesn't recognize timestamp properly when importing data from DB</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-doesn-t-recognize-timestamp-properly-when-importing-data/m-p/194203#M98610</link>
      <description>&lt;P&gt;If your database is on the correct time zone and you haven't figured out any other way to get Splunk to adjust, I'd recommend adding the timestamp to your SQL query, based on sysdate, so that it comes into Splunk with the proper local timezone adjustment:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;select to_char(sysdate,'DD-MM-YYYY HH24:MI:SS') "time", ... 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 23 Sep 2014 22:55:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-doesn-t-recognize-timestamp-properly-when-importing-data/m-p/194203#M98610</guid>
      <dc:creator>pmdba</dc:creator>
      <dc:date>2014-09-23T22:55:03Z</dc:date>
    </item>
  </channel>
</rss>

