<?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 DB Connect 2: I configured Input\Output timestamp format=Epoch, but why am I getting a corrupted timestamp? in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-I-configured-Input-Output-timestamp-format/m-p/226923#M25126</link>
    <description>&lt;P&gt;Hi Splunkers&lt;/P&gt;

&lt;P&gt;I have a MySQL table with column 'dateTimeOrigination' where each event records its time of occurrence in Linux time (epoch) like this: &lt;CODE&gt;1470925285&lt;/CODE&gt; (standard 10 symbols). In Splunk DB Connect 2, I configure Output Timestamp Format=Epoch Time, Rising Column='dateTimeOrigination'. Metadata sourcetype is JSON.&lt;/P&gt;

&lt;P&gt;What I have in output (indexed) is &lt;CODE&gt;1470925&lt;/CODE&gt; (7 symbols), so Splunk converts it to 1/18/1970 and neither Output format works nor Java date can be established.&lt;/P&gt;

&lt;P&gt;How this could happen (suddenly milliseconds are expected?) and how can I fix it?&lt;/P&gt;</description>
    <pubDate>Thu, 11 Aug 2016 15:43:08 GMT</pubDate>
    <dc:creator>evelenke</dc:creator>
    <dc:date>2016-08-11T15:43:08Z</dc:date>
    <item>
      <title>Splunk DB Connect 2: I configured Input\Output timestamp format=Epoch, but why am I getting a corrupted timestamp?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-I-configured-Input-Output-timestamp-format/m-p/226923#M25126</link>
      <description>&lt;P&gt;Hi Splunkers&lt;/P&gt;

&lt;P&gt;I have a MySQL table with column 'dateTimeOrigination' where each event records its time of occurrence in Linux time (epoch) like this: &lt;CODE&gt;1470925285&lt;/CODE&gt; (standard 10 symbols). In Splunk DB Connect 2, I configure Output Timestamp Format=Epoch Time, Rising Column='dateTimeOrigination'. Metadata sourcetype is JSON.&lt;/P&gt;

&lt;P&gt;What I have in output (indexed) is &lt;CODE&gt;1470925&lt;/CODE&gt; (7 symbols), so Splunk converts it to 1/18/1970 and neither Output format works nor Java date can be established.&lt;/P&gt;

&lt;P&gt;How this could happen (suddenly milliseconds are expected?) and how can I fix it?&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2016 15:43:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-I-configured-Input-Output-timestamp-format/m-p/226923#M25126</guid>
      <dc:creator>evelenke</dc:creator>
      <dc:date>2016-08-11T15:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect 2: I configured Input\Output timestamp format=Epoch, but why am I getting a corrupted timestamp?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-I-configured-Input-Output-timestamp-format/m-p/226924#M25127</link>
      <description>&lt;P&gt;Hi, using 2.3.0 improves the UI of this area, so it's worth going there... here's the docs section for doing inputs:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/DBX/2.3.0/DeployDBX/Createandmanagedatabaseinputs"&gt;http://docs.splunk.com/Documentation/DBX/2.3.0/DeployDBX/Createandmanagedatabaseinputs&lt;/A&gt; &lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;If your column is already datetime format in the database, you can just click it and we should be good.&lt;/LI&gt;
&lt;LI&gt;If it's not, you can click it and specify an override format in Java style&lt;/LI&gt;
&lt;LI&gt;Or you can modify your SQL to issue a friendly format: &lt;A href="http://docs.splunk.com/Documentation/DBX/2.3.0/DeployDBX/SQLtipsandtricks"&gt;http://docs.splunk.com/Documentation/DBX/2.3.0/DeployDBX/SQLtipsandtricks&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;note that you might need to use props.conf to deal with timezone (for instance the database is in UTC and has global times, but your Splunk is in local and therefore sees some of the records as coming from the future).&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Thu, 11 Aug 2016 15:54:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-I-configured-Input-Output-timestamp-format/m-p/226924#M25127</guid>
      <dc:creator>jcoates_splunk</dc:creator>
      <dc:date>2016-08-11T15:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect 2: I configured Input\Output timestamp format=Epoch, but why am I getting a corrupted timestamp?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-I-configured-Input-Output-timestamp-format/m-p/226925#M25128</link>
      <description>&lt;P&gt;Hi, jcoates. &lt;BR /&gt;
Thank you for quick reply and suggestion, we will update ASAP. &lt;BR /&gt;
But I'm afraid there's something misconfigured or that I can configure so Splunk will not cut off last 3 symbols of original timestamp record. The events are indexing well, the problem it has wrong input for time.&lt;BR /&gt;
&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/1720i8CB0A20D363641D2/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2016 17:07:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-I-configured-Input-Output-timestamp-format/m-p/226925#M25128</guid>
      <dc:creator>evelenke</dc:creator>
      <dc:date>2016-08-11T17:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect 2: I configured Input\Output timestamp format=Epoch, but why am I getting a corrupted timestamp?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-I-configured-Input-Output-timestamp-format/m-p/226926#M25129</link>
      <description>&lt;P&gt;You do this with &lt;CODE&gt;datetime.xml&lt;/CODE&gt;:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://www.function1.com/2013/01/oh-no-splunking-log-files-with-multiple-formats-no-problem"&gt;http://www.function1.com/2013/01/oh-no-splunking-log-files-with-multiple-formats-no-problem&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2016 13:13:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-I-configured-Input-Output-timestamp-format/m-p/226926#M25129</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2016-08-15T13:13:08Z</dc:date>
    </item>
  </channel>
</rss>

