<?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: After migrating from Splunk DB Connect version 1 to version 2, why does the app handle date time differently than the previous version? in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/After-migrating-from-Splunk-DB-Connect-version-1-to-version-2/m-p/240568#M27231</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Thanks for the answer. Maybe things have changed now with DBX 3.0.0 (I haven't tested).&lt;BR /&gt;
For the documentation, is seem talking about the inputs and on my side, I've an issue with the dbxquery so those parameters aren't available (because it's not indexation).&lt;/P&gt;</description>
    <pubDate>Fri, 24 Feb 2017 08:56:25 GMT</pubDate>
    <dc:creator>groland</dc:creator>
    <dc:date>2017-02-24T08:56:25Z</dc:date>
    <item>
      <title>After migrating from Splunk DB Connect version 1 to version 2, why does the app handle date time differently than the previous version?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/After-migrating-from-Splunk-DB-Connect-version-1-to-version-2/m-p/240566#M27229</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;

&lt;P&gt;When I used Splunk DB Connect v1 on MS SQL, I was able to something like that (very simplified):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| dbquery mssql "SELECT GETDATE() AS getdate" | eval _time = getdate | timechart count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But with Splunk DB Connect v2, the datetime is output as string and wasn't recognized as a timestamp, so this doesn't work anymore:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| dbxquery connection=mssql query="SELECT GETDATE() AS getdate" | eval _time = getdate | timechart count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The workaround is to convert the date to timestamp before using it in the timechart:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| dbxquery connection=mssql shortnames=t query="SELECT GETDATE() AS getdate" | eval getdate = strptime(getdate, "%Y-%m-%d %H:%M:%S.%3Q") | eval _time = getdate | timechart count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Is this a desired feature or an issue on my side?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2017 18:07:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/After-migrating-from-Splunk-DB-Connect-version-1-to-version-2/m-p/240566#M27229</guid>
      <dc:creator>groland</dc:creator>
      <dc:date>2017-01-17T18:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: After migrating from Splunk DB Connect version 1 to version 2, why does the app handle date time differently than the previous version?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/After-migrating-from-Splunk-DB-Connect-version-1-to-version-2/m-p/240567#M27230</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;This is intentional. The documentation under "Choose Column" in  &lt;A href="http://docs.splunk.com/Documentation/DBX/3.0.0/DeployDBX/Createandmanagedatabaseinputs#Set_parameters"&gt;http://docs.splunk.com/Documentation/DBX/3.0.0/DeployDBX/Createandmanagedatabaseinputs#Set_parameters&lt;/A&gt; covers the current behavior for this feature. &lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2017 20:36:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/After-migrating-from-Splunk-DB-Connect-version-1-to-version-2/m-p/240567#M27230</guid>
      <dc:creator>jcoates_splunk</dc:creator>
      <dc:date>2017-02-23T20:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: After migrating from Splunk DB Connect version 1 to version 2, why does the app handle date time differently than the previous version?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/After-migrating-from-Splunk-DB-Connect-version-1-to-version-2/m-p/240568#M27231</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Thanks for the answer. Maybe things have changed now with DBX 3.0.0 (I haven't tested).&lt;BR /&gt;
For the documentation, is seem talking about the inputs and on my side, I've an issue with the dbxquery so those parameters aren't available (because it's not indexation).&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2017 08:56:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/After-migrating-from-Splunk-DB-Connect-version-1-to-version-2/m-p/240568#M27231</guid>
      <dc:creator>groland</dc:creator>
      <dc:date>2017-02-24T08:56:25Z</dc:date>
    </item>
  </channel>
</rss>

