<?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: Splunk DB Connect 1: Why am I unable to apply the date range from the time range picker to filter my query? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-DB-Connect-1-Why-am-I-unable-to-apply-the-date-range-from/m-p/192419#M98596</link>
    <description>&lt;P&gt;Actually this exact problem seems to have been posted with a couple of solutions in a previous answer: &lt;A href="https://answers.splunk.com/answers/75999/splunk-db-connect-dbquery-inline-search-and-time-filtering-not-working.html"&gt;https://answers.splunk.com/answers/75999/splunk-db-connect-dbquery-inline-search-and-time-filtering-not-working.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Jul 2015 01:16:06 GMT</pubDate>
    <dc:creator>acharlieh</dc:creator>
    <dc:date>2015-07-08T01:16:06Z</dc:date>
    <item>
      <title>Splunk DB Connect 1: Why am I unable to apply the date range from the time range picker to filter my query?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-DB-Connect-1-Why-am-I-unable-to-apply-the-date-range-from/m-p/192418#M98595</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have connected to Splunk database. I have applied "dropdown input" filter on "Transdate column". When I click on "2011-03-22", it is showing  "2011-03-22"  data. Filter is working fine. Token name as "field1" &amp;amp; query is as below.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| dbquery "srdb" "SELECT   TransDate as '_time', ShowRoomCode as srcode , Num_of_Customers as totalcs FROM  Centro_Customer_Visit where Centro_Customer_Visit.TransDate
='$field1$'"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But I want to apply time range picker on "TransDate" column dynamically. I have tried, but I didn't get the date range. &lt;/P&gt;

&lt;P&gt;I have data from 2011 to 2015. I want to fetch data from March 2011 to April 2011 using time range picker. Is it  possible? How it will work? Please help me and send any documentation on this.......&lt;/P&gt;

&lt;P&gt;Thanks in advance,&lt;BR /&gt;
A.kavya.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jul 2015 08:41:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-DB-Connect-1-Why-am-I-unable-to-apply-the-date-range-from/m-p/192418#M98595</guid>
      <dc:creator>kavyaa</dc:creator>
      <dc:date>2015-07-07T08:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect 1: Why am I unable to apply the date range from the time range picker to filter my query?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-DB-Connect-1-Why-am-I-unable-to-apply-the-date-range-from/m-p/192419#M98596</link>
      <description>&lt;P&gt;Actually this exact problem seems to have been posted with a couple of solutions in a previous answer: &lt;A href="https://answers.splunk.com/answers/75999/splunk-db-connect-dbquery-inline-search-and-time-filtering-not-working.html"&gt;https://answers.splunk.com/answers/75999/splunk-db-connect-dbquery-inline-search-and-time-filtering-not-working.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2015 01:16:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-DB-Connect-1-Why-am-I-unable-to-apply-the-date-range-from/m-p/192419#M98596</guid>
      <dc:creator>acharlieh</dc:creator>
      <dc:date>2015-07-08T01:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect 1: Why am I unable to apply the date range from the time range picker to filter my query?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-DB-Connect-1-Why-am-I-unable-to-apply-the-date-range-from/m-p/192420#M98597</link>
      <description>&lt;P&gt;I have seen that post. I have tried . But i did nt get correct data regarding selected input time filter. The code is follows. Please help me. Timestamp column "TransDate" has no time , only date values&lt;/P&gt;

&lt;H2&gt;Trandate coulmn have data format like this&lt;/H2&gt;

&lt;PRE&gt;&lt;CODE&gt;2011-03-18
2011-06-26
2012-03-16
2012-05-21
2013-04-23
2013-07-14
2014-02-12
2014-03-29
2015-01-21
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;xml code is as follow&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;**&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;sample_time&amp;lt;/label&amp;gt;
  &amp;lt;fieldset submitButton="false" autoRun="true"&amp;gt;
    &amp;lt;input type="time" token="TOKEN1" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Selct Date&amp;lt;/label&amp;gt;
      &amp;lt;default&amp;gt;
        &amp;lt;earliest&amp;gt;1300645800&amp;lt;/earliest&amp;gt;
        &amp;lt;latest&amp;gt;1300905000&amp;lt;/latest&amp;gt;
      &amp;lt;/default&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;| dbquery "CENTRO" "SELECT   TransDate , ShowRoomCode as srcode , Num_of_Customers as totalcs FROM  Centro_Customer_Visit  WHERE TransDate='$TOKEN1$'"&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;1300645800&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;1332527400&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="wrap"&amp;gt;true&amp;lt;/option&amp;gt;
        &amp;lt;option name="rowNumbers"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="dataOverlayMode"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;cell&amp;lt;/option&amp;gt;
        &amp;lt;option name="count"&amp;gt;10&amp;lt;/option&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;**
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 08 Jul 2015 10:05:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-DB-Connect-1-Why-am-I-unable-to-apply-the-date-range-from/m-p/192420#M98597</guid>
      <dc:creator>kavyaa</dc:creator>
      <dc:date>2015-07-08T10:05:54Z</dc:date>
    </item>
  </channel>
</rss>

