<?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 return events based on if else rules in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-return-events-based-on-if-else-rules/m-p/174061#M49930</link>
    <description>&lt;P&gt;Maybe a transaction will help.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="brem" sanl31 eham Successfully completed | transaction MessageTime | where eventcount = 1 | ...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 21 May 2014 15:25:40 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2014-05-21T15:25:40Z</dc:date>
    <item>
      <title>How to return events based on if else rules</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-return-events-based-on-if-else-rules/m-p/174060#M49929</link>
      <description>&lt;P&gt;I have events like these:&lt;/P&gt;

&lt;P&gt;20131212 17:59:07@VE@SANL31 EHDB 121755 CCA@06240@EHAM@ @E 4.47N52.18@Successfully completed&lt;BR /&gt;
20131212 17:57:17@VE@SANL31 EHDB 121755 @06240@EHAM@ @E 4.47N52.18@Successfully completed&lt;/P&gt;

&lt;P&gt;These events belong together because they have the same MessageTime (121755). Using the following subsearch I can return them in pairs:&lt;/P&gt;

&lt;P&gt;[search sourcetype="brem" sanl31 eham Successfully completed (cc*) | fields MessageTime] sanl31 eham Successfully completed&lt;/P&gt;

&lt;P&gt;How can I refine this search in order to only return the one containing CCA when there is no message not containing the CCA? In this example  no event should be returned because both appear. If however the second event was not there I want to keep the first one.&lt;/P&gt;</description>
      <pubDate>Wed, 21 May 2014 14:57:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-return-events-based-on-if-else-rules/m-p/174060#M49929</guid>
      <dc:creator>rijk</dc:creator>
      <dc:date>2014-05-21T14:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to return events based on if else rules</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-return-events-based-on-if-else-rules/m-p/174061#M49930</link>
      <description>&lt;P&gt;Maybe a transaction will help.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="brem" sanl31 eham Successfully completed | transaction MessageTime | where eventcount = 1 | ...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 21 May 2014 15:25:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-return-events-based-on-if-else-rules/m-p/174061#M49930</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2014-05-21T15:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to return events based on if else rules</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-return-events-based-on-if-else-rules/m-p/174062#M49931</link>
      <description>&lt;P&gt;Thanks, indeed no subsearches but transactions.&lt;/P&gt;</description>
      <pubDate>Thu, 22 May 2014 09:37:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-return-events-based-on-if-else-rules/m-p/174062#M49931</guid>
      <dc:creator>rijk</dc:creator>
      <dc:date>2014-05-22T09:37:33Z</dc:date>
    </item>
  </channel>
</rss>

