<?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: Restrict search to exclude events from today in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Restrict-search-to-exclude-events-from-today/m-p/132294#M36076</link>
    <description>&lt;P&gt;A dirty way would be to modify the search underneath the form to include this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | where _time &amp;lt; relative_time(now(), "@d") | ...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;That won't work if users can type in their own search of course. I don't think there's a way to force people into a specific timerange if they also have custom time available from a time range picker.&lt;/P&gt;</description>
    <pubDate>Thu, 07 Nov 2013 12:39:05 GMT</pubDate>
    <dc:creator>martin_mueller</dc:creator>
    <dc:date>2013-11-07T12:39:05Z</dc:date>
    <item>
      <title>Restrict search to exclude events from today</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Restrict-search-to-exclude-events-from-today/m-p/132293#M36075</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;
I would like to know how is it possible to narrow every search that a user can launch to exclude events comin from 00:00 of current day.&lt;BR /&gt;
i know I could use latest=@d, but since the search is issued in a form where there's also a timerange picker, if I put latest=@d it completely override the time range chosen by user.&lt;BR /&gt;
Maybe should I do some eval after the initial search (&lt;SEARCH&gt; | eval bla bla about time).?&lt;/SEARCH&gt;&lt;/P&gt;

&lt;P&gt;Thanks in advance and kind regards.&lt;/P&gt;

&lt;P&gt;Luca Caldiero&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2013 12:18:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Restrict-search-to-exclude-events-from-today/m-p/132293#M36075</guid>
      <dc:creator>cafissimo</dc:creator>
      <dc:date>2013-11-07T12:18:57Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict search to exclude events from today</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Restrict-search-to-exclude-events-from-today/m-p/132294#M36076</link>
      <description>&lt;P&gt;A dirty way would be to modify the search underneath the form to include this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | where _time &amp;lt; relative_time(now(), "@d") | ...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;That won't work if users can type in their own search of course. I don't think there's a way to force people into a specific timerange if they also have custom time available from a time range picker.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2013 12:39:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Restrict-search-to-exclude-events-from-today/m-p/132294#M36076</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2013-11-07T12:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict search to exclude events from today</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Restrict-search-to-exclude-events-from-today/m-p/132295#M36077</link>
      <description>&lt;P&gt;Well,&lt;BR /&gt;
that is what I was looking for. I agree with you that it is a dirty way.&lt;BR /&gt;
I've also modified times.conf to exclude certain time periods (last 60 minutes, last 4 hours and so on).&lt;BR /&gt;
I will put this where condition into my form, even if I am quite sure it will slow down searches.&lt;/P&gt;

&lt;P&gt;Thanks a lot&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2013 13:09:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Restrict-search-to-exclude-events-from-today/m-p/132295#M36077</guid>
      <dc:creator>cafissimo</dc:creator>
      <dc:date>2013-11-07T13:09:22Z</dc:date>
    </item>
  </channel>
</rss>

