<?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 DB Query with time parameter in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/DB-Query-with-time-parameter/m-p/398874#M168749</link>
    <description>&lt;P&gt;Hi!&lt;/P&gt;

&lt;P&gt;I have installed the DB Connect App and want to use a Query in which I have to pass a time based value as a Parameter&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| dbxquery query="SELECT Name, Timestring FROM myTable WHERE Timestring &amp;gt;= ? ;"  connection="DB2" params="1806211100"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This works well and now my question, how can I calculate this "1806211100" Timestring whitin that search and append it as the params Parameter?&lt;/P&gt;

&lt;P&gt;Thanks&lt;BR /&gt;
Rob&lt;/P&gt;</description>
    <pubDate>Thu, 21 Jun 2018 10:29:42 GMT</pubDate>
    <dc:creator>RobertRi</dc:creator>
    <dc:date>2018-06-21T10:29:42Z</dc:date>
    <item>
      <title>DB Query with time parameter</title>
      <link>https://community.splunk.com/t5/Splunk-Search/DB-Query-with-time-parameter/m-p/398874#M168749</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;

&lt;P&gt;I have installed the DB Connect App and want to use a Query in which I have to pass a time based value as a Parameter&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| dbxquery query="SELECT Name, Timestring FROM myTable WHERE Timestring &amp;gt;= ? ;"  connection="DB2" params="1806211100"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This works well and now my question, how can I calculate this "1806211100" Timestring whitin that search and append it as the params Parameter?&lt;/P&gt;

&lt;P&gt;Thanks&lt;BR /&gt;
Rob&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 10:29:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/DB-Query-with-time-parameter/m-p/398874#M168749</guid>
      <dc:creator>RobertRi</dc:creator>
      <dc:date>2018-06-21T10:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: DB Query with time parameter</title>
      <link>https://community.splunk.com/t5/Splunk-Search/DB-Query-with-time-parameter/m-p/398875#M168750</link>
      <description>&lt;P&gt;Hello @RobertRi,&lt;/P&gt;

&lt;P&gt;where doas the Paameter come from? Is it the result of a search query?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 12:05:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/DB-Query-with-time-parameter/m-p/398875#M168750</guid>
      <dc:creator>poete</dc:creator>
      <dc:date>2018-06-21T12:05:26Z</dc:date>
    </item>
    <item>
      <title>Re: DB Query with time parameter</title>
      <link>https://community.splunk.com/t5/Splunk-Search/DB-Query-with-time-parameter/m-p/398876#M168751</link>
      <description>&lt;P&gt;Hi! The query is embedded in a form search and via a time token, the user has the Chance to define the time&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 12:49:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/DB-Query-with-time-parameter/m-p/398876#M168751</guid>
      <dc:creator>RobertRi</dc:creator>
      <dc:date>2018-06-21T12:49:25Z</dc:date>
    </item>
  </channel>
</rss>

