<?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: Filtering results based on subsequent events? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Filtering-results-based-on-subsequent-events/m-p/83931#M21387</link>
    <description>&lt;P&gt;Ok, I figured this out myself; the trick is to search for both the success and failure messages, dedup based on the host so you get the last of the two messages and then filter those results for the failure message. Something like this:&lt;/P&gt;

&lt;PRE&gt;
"failed to run" OR "ran successfully" | dedup host | search "failed to run" |table host
&lt;/PRE&gt;</description>
    <pubDate>Fri, 30 Sep 2011 18:53:37 GMT</pubDate>
    <dc:creator>Wilcooley</dc:creator>
    <dc:date>2011-09-30T18:53:37Z</dc:date>
    <item>
      <title>Filtering results based on subsequent events?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filtering-results-based-on-subsequent-events/m-p/83930#M21386</link>
      <description>&lt;P&gt;Sorry for the horrible title but I cannot think of a good, succinct description of the problem I am trying to solve (which has also made searching for existing answer difficult).&lt;/P&gt;

&lt;P&gt;I am trying to build a table of hosts on where a tool is failing to run; that's easy enough:&lt;/P&gt;

&lt;PRE&gt;
 hostA tool failed to run
 hostB tool failed to run
 ...
&lt;/PRE&gt;

&lt;P&gt;I build the table with:&lt;BR /&gt;
&lt;PRE&gt;&lt;BR /&gt;
 "failed to run" | dedup host | table host&lt;BR /&gt;
&lt;/PRE&gt;&lt;/P&gt;

&lt;P&gt;But what I've really got is this:&lt;/P&gt;

&lt;PRE&gt;
time000 hostA tool failed to run
time001 hostB tool failed to run
 ...
time005 hostA tool run successfully
 ...
&lt;/PRE&gt;

&lt;P&gt;So what I'd like to do is exclude &lt;EM&gt;hostA&lt;/EM&gt;, since clearly it is not longer failing, but I am not even sure how to approach this.&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2011 05:56:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filtering-results-based-on-subsequent-events/m-p/83930#M21386</guid>
      <dc:creator>Wilcooley</dc:creator>
      <dc:date>2011-09-30T05:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering results based on subsequent events?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filtering-results-based-on-subsequent-events/m-p/83931#M21387</link>
      <description>&lt;P&gt;Ok, I figured this out myself; the trick is to search for both the success and failure messages, dedup based on the host so you get the last of the two messages and then filter those results for the failure message. Something like this:&lt;/P&gt;

&lt;PRE&gt;
"failed to run" OR "ran successfully" | dedup host | search "failed to run" |table host
&lt;/PRE&gt;</description>
      <pubDate>Fri, 30 Sep 2011 18:53:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filtering-results-based-on-subsequent-events/m-p/83931#M21387</guid>
      <dc:creator>Wilcooley</dc:creator>
      <dc:date>2011-09-30T18:53:37Z</dc:date>
    </item>
  </channel>
</rss>

