<?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 Tailing MSSql Database Datetime Problem in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Tailing-MSSql-Database-Datetime-Problem/m-p/128952#M26478</link>
    <description>&lt;P&gt;I am trying to tail an MSSql Database that contains trouble tickets. I pull everything in Key/Value pairs. The DateCreated field is a datetime in MSSql, but when the data shows up in Splunk it shows up as a decimal number "1834239.3423" - how can I get Splunk to properly recognize this as a datetime without writing my own polling script?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Wed, 02 Jul 2014 19:57:14 GMT</pubDate>
    <dc:creator>gjohnson</dc:creator>
    <dc:date>2014-07-02T19:57:14Z</dc:date>
    <item>
      <title>Tailing MSSql Database Datetime Problem</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Tailing-MSSql-Database-Datetime-Problem/m-p/128952#M26478</link>
      <description>&lt;P&gt;I am trying to tail an MSSql Database that contains trouble tickets. I pull everything in Key/Value pairs. The DateCreated field is a datetime in MSSql, but when the data shows up in Splunk it shows up as a decimal number "1834239.3423" - how can I get Splunk to properly recognize this as a datetime without writing my own polling script?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jul 2014 19:57:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Tailing-MSSql-Database-Datetime-Problem/m-p/128952#M26478</guid>
      <dc:creator>gjohnson</dc:creator>
      <dc:date>2014-07-02T19:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: Tailing MSSql Database Datetime Problem</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Tailing-MSSql-Database-Datetime-Problem/m-p/128953#M26479</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I used to have the same issue, just try configuring like that your dbx inputs.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[dbmon-tail://MSSQL/MSSQL_Table1]
index = mssqlindex
interval = 120
output.format = kv
output.timestamp = 1
output.timestamp.column = LastModifiedUTC
output.timestamp.parse.format = yyyy-MM-dd' 'HH:mm:ss' 'Z
output.timestamp.format = yyyy-MM-dd' 'HH:mm:ss' 'Z
query = SELECT convert(varchar,s.LastModified,120) + ' +0000' AS LastModifiedUTC, LastModified, any other column FROM table1 WHERE foo=bar {{AND $rising_column$ &amp;gt; ?}}
sourcetype = mssqltail
table = table1
tail.rising.column = LastModified
disabled = 0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You need to stop restart splunk or "reload inputs". Unfortunately you can't do that using the GUI as the GUI doesn't offers the option to configure output.timestamp.parse.format.&lt;/P&gt;

&lt;P&gt;Hope it helps.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jul 2014 05:45:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Tailing-MSSql-Database-Datetime-Problem/m-p/128953#M26479</guid>
      <dc:creator>musskopf</dc:creator>
      <dc:date>2014-07-07T05:45:04Z</dc:date>
    </item>
    <item>
      <title>Re: Tailing MSSql Database Datetime Problem</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Tailing-MSSql-Database-Datetime-Problem/m-p/128954#M26480</link>
      <description>&lt;P&gt;Two other follow-on questions then. I have multiple date fields, is it possible to add multiple "output.timestamp.column" fields in comma delimited so they pickup the .parse.format format command? Also, if I am tailing a database do I need the {{AND $rising_coumn$ &amp;gt; ?}} and if so, what do I replace the "?" with? I thought the tail command would generate and maintain the value itself?&lt;/P&gt;

&lt;P&gt;TIA&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jul 2014 18:28:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Tailing-MSSql-Database-Datetime-Problem/m-p/128954#M26480</guid>
      <dc:creator>gjohnson</dc:creator>
      <dc:date>2014-07-07T18:28:43Z</dc:date>
    </item>
    <item>
      <title>Re: Tailing MSSql Database Datetime Problem</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Tailing-MSSql-Database-Datetime-Problem/m-p/128955#M26481</link>
      <description>&lt;P&gt;Last question - I have successfully brought the data into splunk from the database and established the CreatedDate and gotten it in the right format - but I have multiple date fields and the other fields are still showing up in Epoch format - not date time - how do I change them?&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jul 2014 18:47:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Tailing-MSSql-Database-Datetime-Problem/m-p/128955#M26481</guid>
      <dc:creator>gjohnson</dc:creator>
      <dc:date>2014-07-07T18:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: Tailing MSSql Database Datetime Problem</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Tailing-MSSql-Database-Datetime-Problem/m-p/128956#M26482</link>
      <description>&lt;P&gt;Question 1: The Tail process need a id or date or anything incremental. The "?" is to be left like that. The DBX stores the last value at "splunk//var//lib//splunk//persistentstorage//dbx//" and use it for the next time it query the DB&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jul 2014 01:04:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Tailing-MSSql-Database-Datetime-Problem/m-p/128956#M26482</guid>
      <dc:creator>musskopf</dc:creator>
      <dc:date>2014-07-08T01:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: Tailing MSSql Database Datetime Problem</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Tailing-MSSql-Database-Datetime-Problem/m-p/128957#M26483</link>
      <description>&lt;P&gt;Question 2: The Splunk event can have only one "_time", which is the default one you use when search for a time range, or last 24h for example.&lt;/P&gt;

&lt;P&gt;If you have more dates and want to use it, you can simply convert it to _time, like: "search foo bar | eval _time=secondary_datetime".&lt;/P&gt;

&lt;P&gt;Or you might want to convert the stored epoch format into something more readable using "| convert timeformat="%F %T" ctime(secondary_datetime)". But would definitely store it in epoch format as is easier to manipulate before convert to human format.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:00:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Tailing-MSSql-Database-Datetime-Problem/m-p/128957#M26483</guid>
      <dc:creator>musskopf</dc:creator>
      <dc:date>2020-09-28T17:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: Tailing MSSql Database Datetime Problem</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Tailing-MSSql-Database-Datetime-Problem/m-p/128958#M26484</link>
      <description>&lt;P&gt;So I think I was tripping over my own feet. I have a stanza in the props.conf file that tries to Eval the date field - but that never worked. At the same time I was trying to run an Eval or a Convert function on the command line FOR THE SAME FIELD... This was failing. When I tried the Eval on the command line for a different date field it worked like a charm. So I am stripping all of the stanza's from the props.conf files and will use this on the command line for searches:&lt;/P&gt;

&lt;P&gt;| eval A_Time=strftime(DateOpened,"%Y-%m-%d %H:%M:%S")&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jul 2014 20:08:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Tailing-MSSql-Database-Datetime-Problem/m-p/128958#M26484</guid>
      <dc:creator>gjohnson</dc:creator>
      <dc:date>2014-07-08T20:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: Tailing MSSql Database Datetime Problem</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Tailing-MSSql-Database-Datetime-Problem/m-p/128959#M26485</link>
      <description>&lt;P&gt;I would like it if someone could tell me which ".conf" file I could put an eval stanza in to do the same thing so I don't have to do this on every single search line for all the date fields I want to convert...&lt;/P&gt;

&lt;P&gt;Is the props.conf file the right place to eval the date to something readable or is that only for changing it before it gets indexed?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jul 2014 20:08:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Tailing-MSSql-Database-Datetime-Problem/m-p/128959#M26485</guid>
      <dc:creator>gjohnson</dc:creator>
      <dc:date>2014-07-08T20:08:54Z</dc:date>
    </item>
  </channel>
</rss>

