<?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: dbconnect ms sql timestamp  error in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/dbconnect-ms-sql-timestamp-error/m-p/257399#M49429</link>
    <description>&lt;P&gt;the idea is to convert the epoch time. Good thing to know : epoch time on win!=epochtime on linux....&lt;BR /&gt;
the sql command that did the trick is : dateadd&lt;BR /&gt;
and also divide by 1000 to get the epoch time in second instead of ms&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;dateadd(second, mysqlfield/1000,'19700101')
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 27 Nov 2015 16:04:36 GMT</pubDate>
    <dc:creator>sduchene_splunk</dc:creator>
    <dc:date>2015-11-27T16:04:36Z</dc:date>
    <item>
      <title>dbconnect ms sql timestamp  error</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/dbconnect-ms-sql-timestamp-error/m-p/257398#M49428</link>
      <description>&lt;P&gt;Hello, Question + answers here :&lt;BR /&gt;
We were using dbconnect 2 for a MS sql query. the column used for the timestamp was giving us an error BIGINT.&lt;BR /&gt;
(you can see it by typing index=_internal sourcetype=&lt;EM&gt;dbx2&lt;/EM&gt; error )&lt;BR /&gt;
The trick is to convert the MS SQL epoch time, wich is in millinsecond, to a linux epoch time, in second, so that splunk can understand the time.&lt;BR /&gt;
How do we do this ?  answer below. hope it's useful for you&lt;/P&gt;</description>
      <pubDate>Fri, 27 Nov 2015 15:59:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/dbconnect-ms-sql-timestamp-error/m-p/257398#M49428</guid>
      <dc:creator>sduchene_splunk</dc:creator>
      <dc:date>2015-11-27T15:59:24Z</dc:date>
    </item>
    <item>
      <title>Re: dbconnect ms sql timestamp  error</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/dbconnect-ms-sql-timestamp-error/m-p/257399#M49429</link>
      <description>&lt;P&gt;the idea is to convert the epoch time. Good thing to know : epoch time on win!=epochtime on linux....&lt;BR /&gt;
the sql command that did the trick is : dateadd&lt;BR /&gt;
and also divide by 1000 to get the epoch time in second instead of ms&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;dateadd(second, mysqlfield/1000,'19700101')
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 27 Nov 2015 16:04:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/dbconnect-ms-sql-timestamp-error/m-p/257399#M49429</guid>
      <dc:creator>sduchene_splunk</dc:creator>
      <dc:date>2015-11-27T16:04:36Z</dc:date>
    </item>
  </channel>
</rss>

