<?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 Get preset values as specific date in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Get-preset-values-as-specific-date/m-p/367977#M24033</link>
    <description>&lt;P&gt;I have a time dropdown as below:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;input type="time" token="dashboardTime" searchWhenChanged="true"&amp;gt;
        &amp;lt;label&amp;gt;SELECT TIME RANGE&amp;lt;/label&amp;gt;
        &amp;lt;default&amp;gt;
          &amp;lt;earliest&amp;gt;-7d@d&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
        &amp;lt;/default&amp;gt;
      &amp;lt;/input&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Now , I need write a query based field which was under the selected time . For Eg: If I choose Last 7 days it should be:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=**** sourcetype=**** "cf_foundation=px-npe01" "cf_org_name=****" "cf_space_name=****" "cf_app_name=****" "||splunk-logger||" taskName='****' status='COMPLETED' | sort -splunkLogId  | eval startDateModified= strptime( startDate, "%d-%m-%Y") 
 | where startDateModified &amp;gt; "01/02/2018" and starDate &amp;lt;=  "07/02/208"|stats count
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 07 Feb 2018 10:21:06 GMT</pubDate>
    <dc:creator>karthi25</dc:creator>
    <dc:date>2018-02-07T10:21:06Z</dc:date>
    <item>
      <title>Get preset values as specific date</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Get-preset-values-as-specific-date/m-p/367977#M24033</link>
      <description>&lt;P&gt;I have a time dropdown as below:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;input type="time" token="dashboardTime" searchWhenChanged="true"&amp;gt;
        &amp;lt;label&amp;gt;SELECT TIME RANGE&amp;lt;/label&amp;gt;
        &amp;lt;default&amp;gt;
          &amp;lt;earliest&amp;gt;-7d@d&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
        &amp;lt;/default&amp;gt;
      &amp;lt;/input&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Now , I need write a query based field which was under the selected time . For Eg: If I choose Last 7 days it should be:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=**** sourcetype=**** "cf_foundation=px-npe01" "cf_org_name=****" "cf_space_name=****" "cf_app_name=****" "||splunk-logger||" taskName='****' status='COMPLETED' | sort -splunkLogId  | eval startDateModified= strptime( startDate, "%d-%m-%Y") 
 | where startDateModified &amp;gt; "01/02/2018" and starDate &amp;lt;=  "07/02/208"|stats count
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 07 Feb 2018 10:21:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Get-preset-values-as-specific-date/m-p/367977#M24033</guid>
      <dc:creator>karthi25</dc:creator>
      <dc:date>2018-02-07T10:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: Get preset values as specific date</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Get-preset-values-as-specific-date/m-p/367978#M24034</link>
      <description>&lt;P&gt;it looks like startDateModified is based on startDate, so the values would be the same, but formatted differently? Is there a reason you're using both in the where statement? Are the values different than _time? &lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2018 13:25:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Get-preset-values-as-specific-date/m-p/367978#M24034</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2018-02-07T13:25:50Z</dc:date>
    </item>
  </channel>
</rss>

