<?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: DB Connect 2 millisecond timestamp fields Frankenstien _time in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-Connect-2-millisecond-timestamp-fields-Frankenstien-time/m-p/252601#M28982</link>
    <description>&lt;P&gt;I thought this line handled setting the timestamp as that column for my input?&lt;/P&gt;

&lt;P&gt;input_timestamp_column_name = EVENT_TIMESTAMP&lt;/P&gt;

&lt;P&gt;It should be noted that the config I showed above was the result from using the web GUI. I did not try to tweak anything.&lt;/P&gt;

&lt;P&gt;It should also be noted the old DBX 1 app handled a millisecond timestamp just fine. So unsure why DB Connect 2 is breaking so spectacularly?&lt;/P&gt;

&lt;P&gt;Looking at my old &lt;STRONG&gt;working&lt;/STRONG&gt; DB Connect 1 inputs.conf it was&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[dbmon-tail://SVR-DEV/SVR-DEV]
host = dev-oracle
index = application
interval = auto
output.format = mkv
output.timestamp = 1
output.timestamp.column = EVENT_TIMESTAMP
query = Select * from log.log_event_logs {{WHERE $rising_column$ &amp;gt; ?}}
sourcetype = db:svr
table = SVR-DEV
tail.rising.column = EVENT_LOG_ID
disabled = 0
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 29 Sep 2020 08:00:35 GMT</pubDate>
    <dc:creator>phoenixdigital</dc:creator>
    <dc:date>2020-09-29T08:00:35Z</dc:date>
    <item>
      <title>DB Connect 2 millisecond timestamp fields Frankenstien _time</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-Connect-2-millisecond-timestamp-fields-Frankenstien-time/m-p/252599#M28980</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;Seeing some very strange results from a DB input.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[mi_input://SVR-DEV]
connection = SVR-DEV
index = server_application
interval = 43200
max_rows = 10000
mode = tail
output_timestamp_format = YYYY-MM-dd HH:mm:ss
query = Select * from log.log_event_logs
source = dbx2:svr-dev
sourcetype = db:svr
tail_follow_only = 1
tail_rising_column_name = EVENT_LOG_ID
tail_rising_column_number = 4
ui_query_catalog = NULL
ui_query_mode = advanced
ui_query_schema = undefined
ui_query_table = undefined
input_timestamp_column_name = EVENT_TIMESTAMP
input_timestamp_column_number = 11
tail_rising_column_checkpoint_value = 215663
disabled = 1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Now for the interesting part. DB Connect 2 performs the following&lt;/P&gt;

&lt;P&gt;"2015-12-30 08:50:10" EVENT_LOG_ID=157931, EVENT_TIMESTAMP=1419889810000, EVENT_TYPE="INVALID_ROLE", EVENT_SEVERITY_CODE="ERROR", EVENT_TEXT="Message authorization failed for id:", EVENT_DETAIL_DATA="A............&lt;/P&gt;

&lt;P&gt;Note EVENT_TIMESTAMP=1419889810000 &lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;which is a millisecond timestamp of 1419889810.000 &lt;/LI&gt;
&lt;LI&gt;which equates to Mon, 29 Dec 2014 21:50:10 GMT&lt;/LI&gt;
&lt;LI&gt;adjusting for timezone +10 hours = Mon, 30 Dec 2014 8:50:10 &lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;So the first issue here is DB Connect 2 added a year to the date!&lt;/P&gt;

&lt;P&gt;The second issue is _time for this event is &lt;STRONG&gt;24/11/2015 08:50:10.000&lt;/STRONG&gt;!&lt;/P&gt;

&lt;P&gt;I can see the time 8:50:10 is right but where did it get 24/11/2015 from???&lt;/P&gt;

&lt;P&gt;Further investigation into the event in Splunk 24/11/2015 was the index time.&lt;/P&gt;

&lt;P&gt;So does anyone know to resolve this&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;The timestamp is getting broken in ingestion of the data (adding one year)&lt;/LI&gt;
&lt;LI&gt;_time is a Frankenstein combination of index_time (date) and the timestamp (time)&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;To be clear no changes have been made to MAX_DAYS_AGO (default 2000 days) and MAX_DAYS_HENCE (default 2 days) so these should be fine with defaults.&lt;/P&gt;

&lt;P&gt;The only other thing I can think of would be a props.conf entry for the TIME_FORMAT to specifically tell Splunk to match the output_timestamp_format in the DB input definition. But it is a pretty standard format I would have thought Splunk would recognise it in an instant.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:00:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-Connect-2-millisecond-timestamp-fields-Frankenstien-time/m-p/252599#M28980</guid>
      <dc:creator>phoenixdigital</dc:creator>
      <dc:date>2020-09-29T08:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: DB Connect 2 millisecond timestamp fields Frankenstien _time</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-Connect-2-millisecond-timestamp-fields-Frankenstien-time/m-p/252600#M28981</link>
      <description>&lt;P&gt;Which timestamp do you want to use? &lt;/P&gt;

&lt;P&gt;It might help to double-check the "timestamp" section of the &lt;A href="http://docs.splunk.com/Documentation/DBX/2.0.6/DeployDBX/Troubleshooting"&gt;Troubleshooting section of DBx2&lt;/A&gt;.  &lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2015 03:13:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-Connect-2-millisecond-timestamp-fields-Frankenstien-time/m-p/252600#M28981</guid>
      <dc:creator>Richfez</dc:creator>
      <dc:date>2015-11-30T03:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: DB Connect 2 millisecond timestamp fields Frankenstien _time</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-Connect-2-millisecond-timestamp-fields-Frankenstien-time/m-p/252601#M28982</link>
      <description>&lt;P&gt;I thought this line handled setting the timestamp as that column for my input?&lt;/P&gt;

&lt;P&gt;input_timestamp_column_name = EVENT_TIMESTAMP&lt;/P&gt;

&lt;P&gt;It should be noted that the config I showed above was the result from using the web GUI. I did not try to tweak anything.&lt;/P&gt;

&lt;P&gt;It should also be noted the old DBX 1 app handled a millisecond timestamp just fine. So unsure why DB Connect 2 is breaking so spectacularly?&lt;/P&gt;

&lt;P&gt;Looking at my old &lt;STRONG&gt;working&lt;/STRONG&gt; DB Connect 1 inputs.conf it was&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[dbmon-tail://SVR-DEV/SVR-DEV]
host = dev-oracle
index = application
interval = auto
output.format = mkv
output.timestamp = 1
output.timestamp.column = EVENT_TIMESTAMP
query = Select * from log.log_event_logs {{WHERE $rising_column$ &amp;gt; ?}}
sourcetype = db:svr
table = SVR-DEV
tail.rising.column = EVENT_LOG_ID
disabled = 0
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:00:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-Connect-2-millisecond-timestamp-fields-Frankenstien-time/m-p/252601#M28982</guid>
      <dc:creator>phoenixdigital</dc:creator>
      <dc:date>2020-09-29T08:00:35Z</dc:date>
    </item>
    <item>
      <title>Re: DB Connect 2 millisecond timestamp fields Frankenstien _time</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-Connect-2-millisecond-timestamp-fields-Frankenstien-time/m-p/252602#M28983</link>
      <description>&lt;P&gt;Also that troubleshooting section you linked to is peppered with DBX 1 config commands. In particular "If your timestamp is not of type datetime/timestamp"&lt;/P&gt;

&lt;P&gt;The documentation is wrong or the web GUI config creation when entering timestamp columns is wrong. Either way that is pretty poor form for a troubleshooting page having a red herring in there like that.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2015 03:35:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-Connect-2-millisecond-timestamp-fields-Frankenstien-time/m-p/252602#M28983</guid>
      <dc:creator>phoenixdigital</dc:creator>
      <dc:date>2015-11-30T03:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: DB Connect 2 millisecond timestamp fields Frankenstien _time</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-Connect-2-millisecond-timestamp-fields-Frankenstien-time/m-p/252603#M28984</link>
      <description>&lt;P&gt;Try yyyy instead of YYYY. The fomat YYYY is weakyear, which can give weird results&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2016 17:02:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-Connect-2-millisecond-timestamp-fields-Frankenstien-time/m-p/252603#M28984</guid>
      <dc:creator>Rjaramillom</dc:creator>
      <dc:date>2016-01-05T17:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: DB Connect 2 millisecond timestamp fields Frankenstien _time</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-Connect-2-millisecond-timestamp-fields-Frankenstien-time/m-p/252604#M28985</link>
      <description>&lt;P&gt;Dude&lt;/P&gt;

&lt;P&gt;please try yyyy instead of YYYY in your inputs&lt;/P&gt;

&lt;P&gt;regards&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2016 17:05:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-Connect-2-millisecond-timestamp-fields-Frankenstien-time/m-p/252604#M28985</guid>
      <dc:creator>evinasco</dc:creator>
      <dc:date>2016-01-05T17:05:26Z</dc:date>
    </item>
  </channel>
</rss>

