<?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 How to ignore certain events from past and do not include them in the new search in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-ignore-certain-events-from-past-and-do-not-include-them/m-p/148362#M41498</link>
    <description>&lt;P&gt;I have following data:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;January 2013 (sample events)&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;
field1:123abc  field2:789xyz  field3:567ghj&lt;BR /&gt;&lt;BR /&gt;
field1:dkd786  field2:cgu874  field3:1j7ut5&lt;BR /&gt;&lt;BR /&gt;
field1:i98udy  field2:jfutid  field3:4jfu76  &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;February 2013 (sample events)&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;
field1:99yekf  field2:mkioie  field3:34fvgh&lt;BR /&gt;&lt;BR /&gt;
field1:klou43  field2:ccxx45  field3:loaq56&lt;BR /&gt;&lt;BR /&gt;
field1:i98udy  field2:jfutid  field3:4jfu76 (exists in January 2013 / maybe before)  &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;March 2013 (sample events)&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;
field1:poph34  field2:cvt87q  field3:45fgty&lt;BR /&gt;&lt;BR /&gt;
field1:klou43  field2:ccxx45  field3:loaq56 (exists in February 2013 / maybe before)&lt;BR /&gt;&lt;BR /&gt;
field1:nbty67  field2:23sxcr  field3:oiu765  &lt;/P&gt;

&lt;P&gt;I have written some regexs to extract different fields and make reports out of it which works fine. However for some of the reports I have a requirement that if field1's value exists in the previous month(s) events, it should NOT show in the current month's report. The current month report should ONLY show the new fields.&lt;/P&gt;

&lt;P&gt;Any ideas how to accomplish this. Many thanks in advance.&lt;/P&gt;</description>
    <pubDate>Tue, 19 Nov 2013 19:37:45 GMT</pubDate>
    <dc:creator>dearimranz</dc:creator>
    <dc:date>2013-11-19T19:37:45Z</dc:date>
    <item>
      <title>How to ignore certain events from past and do not include them in the new search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-ignore-certain-events-from-past-and-do-not-include-them/m-p/148362#M41498</link>
      <description>&lt;P&gt;I have following data:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;January 2013 (sample events)&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;
field1:123abc  field2:789xyz  field3:567ghj&lt;BR /&gt;&lt;BR /&gt;
field1:dkd786  field2:cgu874  field3:1j7ut5&lt;BR /&gt;&lt;BR /&gt;
field1:i98udy  field2:jfutid  field3:4jfu76  &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;February 2013 (sample events)&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;
field1:99yekf  field2:mkioie  field3:34fvgh&lt;BR /&gt;&lt;BR /&gt;
field1:klou43  field2:ccxx45  field3:loaq56&lt;BR /&gt;&lt;BR /&gt;
field1:i98udy  field2:jfutid  field3:4jfu76 (exists in January 2013 / maybe before)  &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;March 2013 (sample events)&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;
field1:poph34  field2:cvt87q  field3:45fgty&lt;BR /&gt;&lt;BR /&gt;
field1:klou43  field2:ccxx45  field3:loaq56 (exists in February 2013 / maybe before)&lt;BR /&gt;&lt;BR /&gt;
field1:nbty67  field2:23sxcr  field3:oiu765  &lt;/P&gt;

&lt;P&gt;I have written some regexs to extract different fields and make reports out of it which works fine. However for some of the reports I have a requirement that if field1's value exists in the previous month(s) events, it should NOT show in the current month's report. The current month report should ONLY show the new fields.&lt;/P&gt;

&lt;P&gt;Any ideas how to accomplish this. Many thanks in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2013 19:37:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-ignore-certain-events-from-past-and-do-not-include-them/m-p/148362#M41498</guid>
      <dc:creator>dearimranz</dc:creator>
      <dc:date>2013-11-19T19:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to ignore certain events from past and do not include them in the new search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-ignore-certain-events-from-past-and-do-not-include-them/m-p/148363#M41499</link>
      <description>&lt;P&gt;Try "... | dedup field1 sortby _time". It'll remove duplicates giving you the earliest occurrence of the value in the field&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2013 19:47:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-ignore-certain-events-from-past-and-do-not-include-them/m-p/148363#M41499</guid>
      <dc:creator>aholzer</dc:creator>
      <dc:date>2013-11-19T19:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to ignore certain events from past and do not include them in the new search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-ignore-certain-events-from-past-and-do-not-include-them/m-p/148364#M41500</link>
      <description>&lt;P&gt;Try following. This will first get list of all the months in which a particular combination of field1, field2, field3 occurs. If count of months for a combination is more than 1, it will be excluded. Also, if there are only one month, month value should match with current month, else it will be excluded too.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...... |stats values(date_month) as months by field1, field2, field3 | where mvcount(months)=1 AND isnotnull(mvfind(months,lower(strftime(now(),"%B"))))
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 19 Nov 2013 20:01:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-ignore-certain-events-from-past-and-do-not-include-them/m-p/148364#M41500</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2013-11-19T20:01:00Z</dc:date>
    </item>
  </channel>
</rss>

