<?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 to filter results based on date (not _time)? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-results-based-on-date-not-time/m-p/353179#M104538</link>
    <description>&lt;P&gt;This works! Thanks so much @somesoni2!&lt;/P&gt;</description>
    <pubDate>Tue, 14 Mar 2017 14:20:18 GMT</pubDate>
    <dc:creator>tmaltizo</dc:creator>
    <dc:date>2017-03-14T14:20:18Z</dc:date>
    <item>
      <title>How to filter results based on date (not _time)?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-results-based-on-date-not-time/m-p/353177#M104536</link>
      <description>&lt;P&gt;I'm trying to filter my data results based on the following:&lt;/P&gt;

&lt;P&gt;myDate format: &lt;STRONG&gt;yyyy-mm-dd HH:MM:SS&lt;/STRONG&gt; (Ex: &lt;STRONG&gt;2017-03-14 03:59:59&lt;/STRONG&gt;)&lt;/P&gt;

&lt;P&gt;I need to filter results where the myDate is within the last 3 months. I attempted the solution from the following post, but I get no results when there should be. &lt;A href="https://answers.splunk.com/answers/387898/how-to-filter-a-dashboard-search-based-on-a-date-f.html"&gt;https://answers.splunk.com/answers/387898/how-to-filter-a-dashboard-search-based-on-a-date-f.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Please let me know if more info is needed. Thanks for your help in advance!&lt;BR /&gt;
Trista&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2017 19:54:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-results-based-on-date-not-time/m-p/353177#M104536</guid>
      <dc:creator>tmaltizo</dc:creator>
      <dc:date>2017-03-13T19:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter results based on date (not _time)?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-results-based-on-date-not-time/m-p/353178#M104537</link>
      <description>&lt;P&gt;From that post itself, this should be your version (assuming the field which contains string date is 'myDate'). Please ensure to have larger time range for the search as it myDate is not _time (time range only applies on _time field)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search 
 | eval myDate= strptime(myDate, "%Y-%m-%d %H:%M:%S") 
 | where myDate&amp;gt;=relative_time(now(),"-3mon")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 13 Mar 2017 19:59:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-results-based-on-date-not-time/m-p/353178#M104537</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-03-13T19:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter results based on date (not _time)?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-results-based-on-date-not-time/m-p/353179#M104538</link>
      <description>&lt;P&gt;This works! Thanks so much @somesoni2!&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2017 14:20:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-results-based-on-date-not-time/m-p/353179#M104538</guid>
      <dc:creator>tmaltizo</dc:creator>
      <dc:date>2017-03-14T14:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter results based on date (not _time)?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-results-based-on-date-not-time/m-p/353180#M104539</link>
      <description>&lt;P&gt;Glad it worked out for you. You can close this question by accepting this answer.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2017 14:27:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-results-based-on-date-not-time/m-p/353180#M104539</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-03-14T14:27:02Z</dc:date>
    </item>
  </channel>
</rss>

