<?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: Is it possible to only return events that have no corresponding start or end transaction event? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-only-return-events-that-have-no-corresponding/m-p/219417#M64482</link>
    <description>&lt;P&gt;keepevicted=true&lt;/P&gt;</description>
    <pubDate>Fri, 20 Mar 2020 11:56:19 GMT</pubDate>
    <dc:creator>gmartinn</dc:creator>
    <dc:date>2020-03-20T11:56:19Z</dc:date>
    <item>
      <title>Is it possible to only return events that have no corresponding start or end transaction event?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-only-return-events-that-have-no-corresponding/m-p/219411#M64476</link>
      <description>&lt;P&gt;Hi Splunk community,&lt;/P&gt;

&lt;P&gt;I'm currently trying to correlate different event sources and events with each other. &lt;/P&gt;

&lt;P&gt;My search gives me the following results:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Event A
Event B
Event A
Event B
Event B &amp;lt;---
Event A
Event B
Event A
Event B
etc.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can see that there is one Event B that has no Event A in front of it. &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Can I somehow tell Splunk to only show events where the Event is only B and no A before or only A and no B afterwards?&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;I know about transaction, but I don't know how to only show results that do not match a transaction condition.&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;Any suggestions to solve this without transactions?&lt;/EM&gt;&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;Thank you in advance!&lt;/P&gt;

&lt;P&gt;Regards,&lt;BR /&gt;
pyro_wood&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jan 2016 12:14:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-only-return-events-that-have-no-corresponding/m-p/219411#M64476</guid>
      <dc:creator>horsefez</dc:creator>
      <dc:date>2016-01-11T12:14:09Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to only return events that have no corresponding start or end transaction event?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-only-return-events-that-have-no-corresponding/m-p/219412#M64477</link>
      <description>&lt;P&gt;Assuming you have used &lt;CODE&gt;transaction&lt;/CODE&gt; command and grouping appears right, you can use the &lt;CODE&gt;keepevicted &amp;amp; closed_txn&lt;/CODE&gt; options to show events that are not grouped. So your command will look something like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;.... | transaction &amp;lt;unique_field&amp;gt; startswith=abc endswith=xyz keepevicted=t | table _raw closed_txn | where closed_txn=1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 11 Jan 2016 14:26:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-only-return-events-that-have-no-corresponding/m-p/219412#M64477</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-01-11T14:26:41Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to only return events that have no corresponding start or end transaction event?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-only-return-events-that-have-no-corresponding/m-p/219413#M64478</link>
      <description>&lt;P&gt;Without transaction it could look like this by using the streamstats command:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| streamstats last(event) AS previous_event current=f window=1
| search event="B" AND previous_event!="A"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 11 Jan 2016 16:11:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-only-return-events-that-have-no-corresponding/m-p/219413#M64478</guid>
      <dc:creator>HeinzWaescher</dc:creator>
      <dc:date>2016-01-11T16:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to only return events that have no corresponding start or end transaction event?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-only-return-events-that-have-no-corresponding/m-p/219414#M64479</link>
      <description>&lt;P&gt;You can include filter for event=A as well here. Like&lt;BR /&gt;
    ....&lt;BR /&gt;
    | search (event="B" AND previous_event!="A") OR (event="A" AND previous_event!="B")&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:24:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-only-return-events-that-have-no-corresponding/m-p/219414#M64479</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2020-09-29T08:24:18Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to only return events that have no corresponding start or end transaction event?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-only-return-events-that-have-no-corresponding/m-p/219415#M64480</link>
      <description>&lt;P&gt;Wow! :)))))))&lt;/P&gt;

&lt;P&gt;Keepevicted is such a useful parameter. I almost gave up, not finding any solution.&lt;BR /&gt;
Thank you, you literally made my day! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jan 2016 16:23:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-only-return-events-that-have-no-corresponding/m-p/219415#M64480</guid>
      <dc:creator>horsefez</dc:creator>
      <dc:date>2016-01-11T16:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to only return events that have no corresponding start or end transaction event?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-only-return-events-that-have-no-corresponding/m-p/219416#M64481</link>
      <description>&lt;P&gt;Thank you for your suggestions!&lt;BR /&gt;
I'll try them aswell!&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jan 2016 16:53:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-only-return-events-that-have-no-corresponding/m-p/219416#M64481</guid>
      <dc:creator>horsefez</dc:creator>
      <dc:date>2016-01-11T16:53:36Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to only return events that have no corresponding start or end transaction event?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-only-return-events-that-have-no-corresponding/m-p/219417#M64482</link>
      <description>&lt;P&gt;keepevicted=true&lt;/P&gt;</description>
      <pubDate>Fri, 20 Mar 2020 11:56:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-only-return-events-that-have-no-corresponding/m-p/219417#M64482</guid>
      <dc:creator>gmartinn</dc:creator>
      <dc:date>2020-03-20T11:56:19Z</dc:date>
    </item>
  </channel>
</rss>

