<?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: Find users who have done an event A, but not done an event B in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Find-users-who-have-done-an-event-A-but-not-done-an-event-B/m-p/110561#M28923</link>
    <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;event=A OR event=B
| stats count(eval(event="A")) as ACount count(eval(event="B")) as Bcount by user_id
| where ACount &amp;gt;= 1 AND BCount &amp;lt; 1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I realize that you are being abstract in your question, so my answer may not have enough details for you. Follow up with more details about event A and event B, if you want a more detailed answer...&lt;/P&gt;</description>
    <pubDate>Thu, 14 May 2015 18:05:19 GMT</pubDate>
    <dc:creator>lguinn2</dc:creator>
    <dc:date>2015-05-14T18:05:19Z</dc:date>
    <item>
      <title>Find users who have done an event A, but not done an event B</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Find-users-who-have-done-an-event-A-but-not-done-an-event-B/m-p/110560#M28922</link>
      <description>&lt;P&gt;I have a splunk log that has fields 'user_id' and 'event'. What I would like to do is to find the list of users who have done an Event A, but has not done an Event B. &lt;/P&gt;

&lt;P&gt;The way I have figured out right now uses a sub-search, but the number of items returned by the sub-search causes a more than maxout warning. The query I use is:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;event=A user_id NOT [event=B | fields user_id]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What is the alternate way to do this?&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2015 09:46:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Find-users-who-have-done-an-event-A-but-not-done-an-event-B/m-p/110560#M28922</guid>
      <dc:creator>anoopsankar</dc:creator>
      <dc:date>2015-05-14T09:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: Find users who have done an event A, but not done an event B</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Find-users-who-have-done-an-event-A-but-not-done-an-event-B/m-p/110561#M28923</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;event=A OR event=B
| stats count(eval(event="A")) as ACount count(eval(event="B")) as Bcount by user_id
| where ACount &amp;gt;= 1 AND BCount &amp;lt; 1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I realize that you are being abstract in your question, so my answer may not have enough details for you. Follow up with more details about event A and event B, if you want a more detailed answer...&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2015 18:05:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Find-users-who-have-done-an-event-A-but-not-done-an-event-B/m-p/110561#M28923</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2015-05-14T18:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: Find users who have done an event A, but not done an event B</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Find-users-who-have-done-an-event-A-but-not-done-an-event-B/m-p/110562#M28924</link>
      <description>&lt;P&gt;@Iguinn, the answer looks promising. Just to have some more clarity, the events are something like this:&lt;BR /&gt;
Event A = a user registration event (usually happens only once per user)&lt;BR /&gt;
Event B = a user doing a payment on our application (could happen many times for a user or never at all).&lt;/P&gt;

&lt;P&gt;So what I'm looking at is the list of users who have registered but have not yet done even a single payment. Hope this clarifies.&lt;/P&gt;

&lt;P&gt;Thanks! &lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2015 05:27:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Find-users-who-have-done-an-event-A-but-not-done-an-event-B/m-p/110562#M28924</guid>
      <dc:creator>anoopsankar</dc:creator>
      <dc:date>2015-05-15T05:27:44Z</dc:date>
    </item>
  </channel>
</rss>

