<?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: How do I tell Splunk (or DB Connect) that the incoming timestamp field is an UTC one? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-tell-Splunk-or-DB-Connect-that-the-incoming-timestamp/m-p/613778#M106221</link>
    <description>&lt;P&gt;Hi Altink,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;are you able to modify the SQL query to change the TIMESTAMP field? Here is a solution (using Oracle, but same premise):&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-configure-time-in-Splunk-DB-Connect-and-the-Add-on-for/m-p/399225" target="_self"&gt;https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-configure-time-in-Splunk-DB-Connect-and-the-Add-on-for/m-p/399225&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Also, if thats the only connection you are using, you can also change the timezone at the jvm level, as it uses its own separate from the OS (unless they've been synced, but I usually see them using their own)&lt;/P&gt;</description>
    <pubDate>Tue, 20 Sep 2022 14:21:21 GMT</pubDate>
    <dc:creator>nyc_jason</dc:creator>
    <dc:date>2022-09-20T14:21:21Z</dc:date>
    <item>
      <title>How do I tell Splunk (or DB Connect) that the incoming timestamp field is an UTC one?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-tell-Splunk-or-DB-Connect-that-the-incoming-timestamp/m-p/613232#M106126</link>
      <description>&lt;P&gt;Hello&lt;BR /&gt;&lt;BR /&gt;I am pulling data from a MS SQL Server database via App DB Connect. I have an UTC timestamp field in the returned dataset, which I map to Splunk's TIMESTAMP column to have it for the _time field.&lt;BR /&gt;&lt;BR /&gt;Splunk vrs is 8.2, DB Connect is 3.6.0&lt;BR /&gt;&lt;BR /&gt;The problem:&lt;BR /&gt;The Splunk's _time field shows wrong hour, the difference to my local time vs UTC.&lt;BR /&gt;&lt;BR /&gt;Question:&lt;BR /&gt;How do I tell Splunk (or DB Connect) that the incoming timestamp field is an UTC one?&lt;BR /&gt;&lt;BR /&gt;best regards&lt;BR /&gt;Altin&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2022 15:12:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-tell-Splunk-or-DB-Connect-that-the-incoming-timestamp/m-p/613232#M106126</guid>
      <dc:creator>altink</dc:creator>
      <dc:date>2022-09-15T15:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp field as UTC via DB Connect</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-tell-Splunk-or-DB-Connect-that-the-incoming-timestamp/m-p/613234#M106127</link>
      <description>&lt;P&gt;Use the &lt;FONT face="courier new,courier"&gt;strptime&lt;/FONT&gt; function to convert the field into a Splunk timestamp.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2022 14:03:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-tell-Splunk-or-DB-Connect-that-the-incoming-timestamp/m-p/613234#M106127</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-09-15T14:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp field as UTC via DB Connect</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-tell-Splunk-or-DB-Connect-that-the-incoming-timestamp/m-p/613425#M106143</link>
      <description>&lt;P&gt;Thank you &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt; for the answer.&lt;BR /&gt;&lt;BR /&gt;May be I am not getting something right, but I am not looking to display the incoming field into a UNIX timestamp.&lt;BR /&gt;I am looking to tell Splunk that this field is in UTC timezone and not local, so that the _time field is handled correctly.&lt;BR /&gt;&lt;BR /&gt;I could do this in the SQL pull query, but I am looking for a way Splunk ingests an UTC timestamp via DB Connent&lt;BR /&gt;&lt;BR /&gt;best regards&lt;BR /&gt;Altin&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 14:18:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-tell-Splunk-or-DB-Connect-that-the-incoming-timestamp/m-p/613425#M106143</guid>
      <dc:creator>altink</dc:creator>
      <dc:date>2022-09-16T14:18:24Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp field as UTC via DB Connect</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-tell-Splunk-or-DB-Connect-that-the-incoming-timestamp/m-p/613437#M106145</link>
      <description>&lt;P&gt;The _time field is a Unix timestamp so if it's not being set correctly automatically, you can use strptime to do it manually.&amp;nbsp; Of course, you first should choose a sourcetype that has the &lt;FONT face="courier new,courier"&gt;TZ=UTC&lt;/FONT&gt; setting, but if that doesn't work try adding this to your query.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval _time=strptime(database_timestamp . "Z", "&amp;lt;&amp;lt;database timestamp format&amp;gt;&amp;gt;Z")&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 16 Sep 2022 15:27:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-tell-Splunk-or-DB-Connect-that-the-incoming-timestamp/m-p/613437#M106145</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-09-16T15:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: How do I tell Splunk (or DB Connect) that the incoming timestamp field is an UTC one?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-tell-Splunk-or-DB-Connect-that-the-incoming-timestamp/m-p/613495#M106157</link>
      <description>&lt;P&gt;you can add a TZ setting to the props.conf in db connect for that sourcetype.&lt;/P&gt;</description>
      <pubDate>Sat, 17 Sep 2022 05:56:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-tell-Splunk-or-DB-Connect-that-the-incoming-timestamp/m-p/613495#M106157</guid>
      <dc:creator>nyc_jason</dc:creator>
      <dc:date>2022-09-17T05:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: How do I tell Splunk (or DB Connect) that the incoming timestamp field is an UTC one?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-tell-Splunk-or-DB-Connect-that-the-incoming-timestamp/m-p/613619#M106183</link>
      <description>&lt;P&gt;HI &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/124800"&gt;@nyc_jason&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;and thank you for the reply.&lt;BR /&gt;&lt;BR /&gt;There is no props.conf under /&amp;lt;home&amp;gt;/splunk_app_db_connect/local&lt;BR /&gt;&lt;BR /&gt;Since my DB Input is saved under an App called "Ub Security Hub" - and not under DB Connect, I did check also under /&amp;lt;home&amp;gt;/ub_security_hub/local. No no props.conf found there too.&lt;BR /&gt;&lt;BR /&gt;Should I create one? If yes, under /splunk_app_db_connect/local or /ub_security_hub/local ?&lt;BR /&gt;And what should I write inside props.conf? Will the below&lt;BR /&gt;&lt;BR /&gt;------- props.conf ---------&lt;BR /&gt;[&amp;lt;sourcetype_name&amp;gt;]&lt;BR /&gt;TZ=UTC&lt;BR /&gt;------- props.conf ---------&lt;BR /&gt;&lt;BR /&gt;... be enough ?&lt;BR /&gt;&lt;BR /&gt;please advise&lt;BR /&gt;&lt;BR /&gt;best regards&lt;BR /&gt;Altin&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 14:42:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-tell-Splunk-or-DB-Connect-that-the-incoming-timestamp/m-p/613619#M106183</guid>
      <dc:creator>altink</dc:creator>
      <dc:date>2022-09-19T14:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: How do I tell Splunk (or DB Connect) that the incoming timestamp field is an UTC one?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-tell-Splunk-or-DB-Connect-that-the-incoming-timestamp/m-p/613623#M106185</link>
      <description>&lt;P&gt;also the below&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="altink_0-1663598906878.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/21533i6C7011DB73B76C10/image-size/medium?v=v2&amp;amp;px=400" role="button" title="altink_0-1663598906878.png" alt="altink_0-1663598906878.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 14:52:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-tell-Splunk-or-DB-Connect-that-the-incoming-timestamp/m-p/613623#M106185</guid>
      <dc:creator>altink</dc:creator>
      <dc:date>2022-09-19T14:52:35Z</dc:date>
    </item>
    <item>
      <title>Re: How do I tell Splunk (or DB Connect) that the incoming timestamp field is an UTC one?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-tell-Splunk-or-DB-Connect-that-the-incoming-timestamp/m-p/613631#M106187</link>
      <description>&lt;P&gt;Actually, from the docs, this is now the method, when creating the database connection:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/DBX/3.10.0/DeployDBX/Createandmanagedatabaseconnections#Create_a_database_connection" target="_blank"&gt;https://docs.splunk.com/Documentation/DBX/3.10.0/DeployDBX/Createandmanagedatabaseconnections#Create_a_database_connection&lt;/A&gt;&lt;/P&gt;&lt;P&gt;see the part re Timezone:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="timezone.png" style="width: 826px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/21535iBA50C78C4F19A32F/image-dimensions/826x496?v=v2" width="826" height="496" role="button" title="timezone.png" alt="timezone.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 15:27:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-tell-Splunk-or-DB-Connect-that-the-incoming-timestamp/m-p/613631#M106187</guid>
      <dc:creator>nyc_jason</dc:creator>
      <dc:date>2022-09-19T15:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: How do I tell Splunk (or DB Connect) that the incoming timestamp field is an UTC one?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-tell-Splunk-or-DB-Connect-that-the-incoming-timestamp/m-p/613773#M106218</link>
      <description>&lt;P&gt;Thank you for the reply &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/124800"&gt;@nyc_jason&lt;/a&gt; .&lt;BR /&gt;&lt;BR /&gt;But the two parameters:&amp;nbsp;timezone and&amp;nbsp; localTimezoneConversionEnabled, in the documentation for db_connections.conf.spec, do appear first on version 3.7.0.&lt;BR /&gt;&lt;BR /&gt;Our DB Connect is on version 3.6.0 - and the parameters above do NOT appear there:&lt;BR /&gt;&lt;A href="https://docs.splunk.com/Documentation/DBX/3.6.0/DeployDBX/databasespec" target="_self"&gt;db_connections.conf.spec - 3.6.0&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;How do we do this on DB Connect 3.6.0 ?&lt;BR /&gt;&lt;BR /&gt;best regards&lt;BR /&gt;Altin&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2022 13:46:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-tell-Splunk-or-DB-Connect-that-the-incoming-timestamp/m-p/613773#M106218</guid>
      <dc:creator>altink</dc:creator>
      <dc:date>2022-09-20T13:46:38Z</dc:date>
    </item>
    <item>
      <title>Re: How do I tell Splunk (or DB Connect) that the incoming timestamp field is an UTC one?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-tell-Splunk-or-DB-Connect-that-the-incoming-timestamp/m-p/613776#M106219</link>
      <description>&lt;P&gt;Sounds like a great reason to upgrade to 3.7.0.&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2022 14:10:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-tell-Splunk-or-DB-Connect-that-the-incoming-timestamp/m-p/613776#M106219</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-09-20T14:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: How do I tell Splunk (or DB Connect) that the incoming timestamp field is an UTC one?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-tell-Splunk-or-DB-Connect-that-the-incoming-timestamp/m-p/613778#M106221</link>
      <description>&lt;P&gt;Hi Altink,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;are you able to modify the SQL query to change the TIMESTAMP field? Here is a solution (using Oracle, but same premise):&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-configure-time-in-Splunk-DB-Connect-and-the-Add-on-for/m-p/399225" target="_self"&gt;https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-configure-time-in-Splunk-DB-Connect-and-the-Add-on-for/m-p/399225&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Also, if thats the only connection you are using, you can also change the timezone at the jvm level, as it uses its own separate from the OS (unless they've been synced, but I usually see them using their own)&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2022 14:21:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-tell-Splunk-or-DB-Connect-that-the-incoming-timestamp/m-p/613778#M106221</guid>
      <dc:creator>nyc_jason</dc:creator>
      <dc:date>2022-09-20T14:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: How do I tell Splunk (or DB Connect) that the incoming timestamp field is an UTC one?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-tell-Splunk-or-DB-Connect-that-the-incoming-timestamp/m-p/613797#M106227</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/124800"&gt;@nyc_jason&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I can change the UTC timestamp in local timezone in my SQL query.&lt;BR /&gt;&lt;BR /&gt;But this Question was asked on how do I do this on Splunk or DB Connect - and not outside.&lt;BR /&gt;&lt;BR /&gt;Is this possible inside Splunk 8.2 and/or DB Connect 3.6.0 ?&lt;BR /&gt;&lt;BR /&gt;best regards&lt;BR /&gt;Altin&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2022 15:52:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-tell-Splunk-or-DB-Connect-that-the-incoming-timestamp/m-p/613797#M106227</guid>
      <dc:creator>altink</dc:creator>
      <dc:date>2022-09-20T15:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: How do I tell Splunk (or DB Connect) that the incoming timestamp field is an UTC one?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-tell-Splunk-or-DB-Connect-that-the-incoming-timestamp/m-p/613806#M106230</link>
      <description>&lt;P&gt;since its an older version of dbx, you can try to add something like this to the connection string in the dbx jvm parameter settings:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-Duser.timezone=GMT&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;just be aware this would apply to all connections.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2022 16:35:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-tell-Splunk-or-DB-Connect-that-the-incoming-timestamp/m-p/613806#M106230</guid>
      <dc:creator>nyc_jason</dc:creator>
      <dc:date>2022-09-20T16:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: How do I tell Splunk (or DB Connect) that the incoming timestamp field is an UTC one?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-tell-Splunk-or-DB-Connect-that-the-incoming-timestamp/m-p/613933#M106263</link>
      <description>&lt;P&gt;Thank You for this&lt;BR /&gt;&lt;BR /&gt;but it would not be acceptable to have this thing applied to all Inputs.&lt;BR /&gt;&lt;BR /&gt;best regards&lt;BR /&gt;Altin&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2022 13:09:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-tell-Splunk-or-DB-Connect-that-the-incoming-timestamp/m-p/613933#M106263</guid>
      <dc:creator>altink</dc:creator>
      <dc:date>2022-09-21T13:09:26Z</dc:date>
    </item>
  </channel>
</rss>

