<?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 Filter/search Rows based on Current date in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Filter-search-Rows-based-on-Current-date/m-p/490161#M83774</link>
    <description>&lt;P&gt;I have 3 rows like below. I need to filter rows that equals current date. Current date being may 1. &lt;/P&gt;

&lt;P&gt;Plan Start Time&lt;/P&gt;

&lt;P&gt;May 01, 08:00 PM&lt;BR /&gt;
May 03  10:00 PM&lt;BR /&gt;
Apr 30   07:00 AM&lt;/P&gt;</description>
    <pubDate>Fri, 01 May 2020 18:27:09 GMT</pubDate>
    <dc:creator>ashanka</dc:creator>
    <dc:date>2020-05-01T18:27:09Z</dc:date>
    <item>
      <title>Filter/search Rows based on Current date</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-search-Rows-based-on-Current-date/m-p/490161#M83774</link>
      <description>&lt;P&gt;I have 3 rows like below. I need to filter rows that equals current date. Current date being may 1. &lt;/P&gt;

&lt;P&gt;Plan Start Time&lt;/P&gt;

&lt;P&gt;May 01, 08:00 PM&lt;BR /&gt;
May 03  10:00 PM&lt;BR /&gt;
Apr 30   07:00 AM&lt;/P&gt;</description>
      <pubDate>Fri, 01 May 2020 18:27:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-search-Rows-based-on-Current-date/m-p/490161#M83774</guid>
      <dc:creator>ashanka</dc:creator>
      <dc:date>2020-05-01T18:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: Filter/search Rows based on Current date</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-search-Rows-based-on-Current-date/m-p/490162#M83775</link>
      <description>&lt;P&gt;You'll have to convert the dates to epoch form to do that.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | eval epoch = strptime('Plan Start Time', "%b %d, %H:%M %p")
| where (epoch &amp;gt;= relative_time(now(), "@d") AND epoch &amp;lt; relative_time(now(), "+1d@d")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 01 May 2020 18:44:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-search-Rows-based-on-Current-date/m-p/490162#M83775</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-05-01T18:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: Filter/search Rows based on Current date</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-search-Rows-based-on-Current-date/m-p/490163#M83776</link>
      <description>&lt;P&gt;Thanks for the resposne. But its not fetching any results now. &lt;BR /&gt;
 When i add only the eval command.. not seeing any difference in result.&lt;/P&gt;</description>
      <pubDate>Fri, 01 May 2020 18:56:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-search-Rows-based-on-Current-date/m-p/490163#M83776</guid>
      <dc:creator>ashanka</dc:creator>
      <dc:date>2020-05-01T18:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: Filter/search Rows based on Current date</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-search-Rows-based-on-Current-date/m-p/490164#M83777</link>
      <description>&lt;P&gt;Now i have re-Written the query to have 2 columns like below.&lt;/P&gt;

&lt;P&gt;Have to filter rows when these two matches .. can i use where or search?&lt;/P&gt;

&lt;P&gt;Plan_Start_date , today_date&lt;BR /&gt;
May 03 May 01&lt;BR /&gt;
May 01 May 01&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 05:17:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-search-Rows-based-on-Current-date/m-p/490164#M83777</guid>
      <dc:creator>ashanka</dc:creator>
      <dc:date>2020-09-30T05:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: Filter/search Rows based on Current date</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-search-Rows-based-on-Current-date/m-p/490165#M83778</link>
      <description>&lt;P&gt;This run-anywhere query works with your original output.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval PST=
"May 01, 08:00 PM|
May 03 10:00 PM|
Apr 30 07:00 AM" 
| eval PST=split(PST, "|") 
| mvexpand PST 
`comment("Above is just set-up.")`
| eval epoch = strptime(PST, "%b %d, %H:%M %p") 
| where (epoch &amp;gt;= relative_time(now(), "@d") AND epoch &amp;lt; relative_time(now(), "+1d@d"))
| rename PST as "Plan Start Time"
| table "Plan Start Time"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 01 May 2020 19:23:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-search-Rows-based-on-Current-date/m-p/490165#M83778</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-05-01T19:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: Filter/search Rows based on Current date</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-search-Rows-based-on-Current-date/m-p/490166#M83779</link>
      <description>&lt;P&gt;I fugred it out . THANKS&lt;/P&gt;</description>
      <pubDate>Fri, 01 May 2020 19:25:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-search-Rows-based-on-Current-date/m-p/490166#M83779</guid>
      <dc:creator>ashanka</dc:creator>
      <dc:date>2020-05-01T19:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: Filter/search Rows based on Current date</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-search-Rows-based-on-Current-date/m-p/490167#M83780</link>
      <description>&lt;P&gt;Thanks lot&lt;/P&gt;</description>
      <pubDate>Fri, 01 May 2020 19:25:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-search-Rows-based-on-Current-date/m-p/490167#M83780</guid>
      <dc:creator>ashanka</dc:creator>
      <dc:date>2020-05-01T19:25:27Z</dc:date>
    </item>
  </channel>
</rss>

