<?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: Help with diff or eval? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Help-with-diff-or-eval/m-p/105806#M27479</link>
    <description>&lt;P&gt;Perhaps &lt;CODE&gt;transaction&lt;/CODE&gt; would be better suited for your scenario.&lt;/P&gt;

&lt;P&gt;You could do something like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;eventtype1 OR eventtype2 | transaction user | search eventtype1 AND NOT eventtype2
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 29 Oct 2012 17:49:57 GMT</pubDate>
    <dc:creator>Ayn</dc:creator>
    <dc:date>2012-10-29T17:49:57Z</dc:date>
    <item>
      <title>Help with diff or eval?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-diff-or-eval/m-p/105805#M27478</link>
      <description>&lt;P&gt;I have one search, for one event type, and a second search for a second event type. one is 'user login' and the other is 'user logout', right?  Ideally in the search i am trying to create, the result set would be all of the users that have logged in, and that have not logged out.&lt;/P&gt;

&lt;P&gt;I tried to use diff, but I don't know if that function is the best to use for this?&lt;/P&gt;

&lt;P&gt;I'm still pretty new to Splunk, so please take a look. &lt;/P&gt;

&lt;P&gt;My search looks like this:&lt;BR /&gt;
&lt;SEARCH for="" event="" type="" 1=""&gt; | join user(subsearch for eventtype 2) | dedup user | table _time,host,user,ip&lt;/SEARCH&gt;&lt;/P&gt;

&lt;P&gt;this seems to give me all of the users that have logged in, and logged out. I'm looking for those that have logged in, and that have NOT logged out. any ideas?  &lt;/P&gt;</description>
      <pubDate>Mon, 29 Oct 2012 17:30:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-diff-or-eval/m-p/105805#M27478</guid>
      <dc:creator>tmarlette</dc:creator>
      <dc:date>2012-10-29T17:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: Help with diff or eval?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-diff-or-eval/m-p/105806#M27479</link>
      <description>&lt;P&gt;Perhaps &lt;CODE&gt;transaction&lt;/CODE&gt; would be better suited for your scenario.&lt;/P&gt;

&lt;P&gt;You could do something like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;eventtype1 OR eventtype2 | transaction user | search eventtype1 AND NOT eventtype2
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 29 Oct 2012 17:49:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-diff-or-eval/m-p/105806#M27479</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-10-29T17:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: Help with diff or eval?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-diff-or-eval/m-p/105807#M27480</link>
      <description>&lt;P&gt;I believe it's closer, I think I will still have to fiddle with this to get it right.  &lt;/P&gt;

&lt;P&gt;Thank you so much!  I'm sure ill be back. &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Oct 2012 20:06:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-diff-or-eval/m-p/105807#M27480</guid>
      <dc:creator>tmarlette</dc:creator>
      <dc:date>2012-10-29T20:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: Help with diff or eval?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-diff-or-eval/m-p/105808#M27481</link>
      <description>&lt;P&gt;This did work with some more monkeying! Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2013 15:17:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-diff-or-eval/m-p/105808#M27481</guid>
      <dc:creator>tmarlette</dc:creator>
      <dc:date>2013-04-17T15:17:32Z</dc:date>
    </item>
  </channel>
</rss>

