<?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 exclude events where the date greater than today? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-events-where-the-date-greater-than-today/m-p/402743#M116544</link>
    <description>&lt;P&gt;Can you provide some info on what field that date is in and how it is formatted?&lt;/P&gt;</description>
    <pubDate>Mon, 25 Jun 2018 09:41:12 GMT</pubDate>
    <dc:creator>FrankVl</dc:creator>
    <dc:date>2018-06-25T09:41:12Z</dc:date>
    <item>
      <title>How to exclude events where the date greater than today?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-events-where-the-date-greater-than-today/m-p/402742#M116543</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Is there a way to exclude events in a search where a specific date field (not timestamp) is greater than today. Sow i only want to see events where the specified date field is today or smaller. &lt;/P&gt;</description>
      <pubDate>Mon, 25 Jun 2018 09:30:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-events-where-the-date-greater-than-today/m-p/402742#M116543</guid>
      <dc:creator>ebruozys</dc:creator>
      <dc:date>2018-06-25T09:30:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude events where the date greater than today?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-events-where-the-date-greater-than-today/m-p/402743#M116544</link>
      <description>&lt;P&gt;Can you provide some info on what field that date is in and how it is formatted?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jun 2018 09:41:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-events-where-the-date-greater-than-today/m-p/402743#M116544</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-06-25T09:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude events where the date greater than today?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-events-where-the-date-greater-than-today/m-p/402744#M116545</link>
      <description>&lt;P&gt;The date field is in a human readable format as follows 2018-03-27 00:00:00.0, sow its YYYY-MM-DD. &lt;/P&gt;</description>
      <pubDate>Mon, 25 Jun 2018 09:45:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-events-where-the-date-greater-than-today/m-p/402744#M116545</guid>
      <dc:creator>ebruozys</dc:creator>
      <dc:date>2018-06-25T09:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude events where the date greater than today?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-events-where-the-date-greater-than-today/m-p/402745#M116546</link>
      <description>&lt;P&gt;Try the following, which first parses the date field into a proper date/time value. Then calculates the date/time value for today and then filters events that have a date smaller or equal to today.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... your base search ...
| eval filterdate = strptime(date,"%Y-%m-%d")
| eval today = relative_time(now(),"-0d@d")
| where filterdate &amp;lt;= today
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 25 Jun 2018 11:22:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-events-where-the-date-greater-than-today/m-p/402745#M116546</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-06-25T11:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude events where the date greater than today?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-events-where-the-date-greater-than-today/m-p/402746#M116547</link>
      <description>&lt;P&gt;Hi Frank,&lt;/P&gt;

&lt;P&gt;This is the answer I was looking for. I would rather exclude it in the base search but I guess with the readable time format that is not possible. &lt;/P&gt;</description>
      <pubDate>Mon, 25 Jun 2018 13:06:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-events-where-the-date-greater-than-today/m-p/402746#M116547</guid>
      <dc:creator>ebruozys</dc:creator>
      <dc:date>2018-06-25T13:06:14Z</dc:date>
    </item>
  </channel>
</rss>

