<?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 Comparing results from two searches in Splunk Enterprise Security</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Comparing-results-from-two-searches/m-p/468113#M7046</link>
    <description>&lt;P&gt;index="A" sourcetype=B action=Yes&lt;BR /&gt;&lt;BR /&gt;
| search NOT [ search index="A" sourcetype=B action="No" | fields User ] | stats count by User .&lt;/P&gt;

&lt;P&gt;Here I'm trying to get user whose action is Yes. But whenever users get 'Yes' they get 'No' as well in 20% of cases at same time.&lt;BR /&gt;
So I want those 80% users who are having action as only Yes.&lt;/P&gt;

&lt;P&gt;Could you please help.&lt;/P&gt;</description>
    <pubDate>Wed, 04 Sep 2019 13:37:35 GMT</pubDate>
    <dc:creator>rupeshn</dc:creator>
    <dc:date>2019-09-04T13:37:35Z</dc:date>
    <item>
      <title>Comparing results from two searches</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Comparing-results-from-two-searches/m-p/468113#M7046</link>
      <description>&lt;P&gt;index="A" sourcetype=B action=Yes&lt;BR /&gt;&lt;BR /&gt;
| search NOT [ search index="A" sourcetype=B action="No" | fields User ] | stats count by User .&lt;/P&gt;

&lt;P&gt;Here I'm trying to get user whose action is Yes. But whenever users get 'Yes' they get 'No' as well in 20% of cases at same time.&lt;BR /&gt;
So I want those 80% users who are having action as only Yes.&lt;/P&gt;

&lt;P&gt;Could you please help.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2019 13:37:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Comparing-results-from-two-searches/m-p/468113#M7046</guid>
      <dc:creator>rupeshn</dc:creator>
      <dc:date>2019-09-04T13:37:35Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing results from two searches</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Comparing-results-from-two-searches/m-p/468114#M7047</link>
      <description>&lt;P&gt;When i run above query I'm getting results of both users i.e., action=Yes and action= No. I'mm not sure where this Query went wrong &lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2019 13:39:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Comparing-results-from-two-searches/m-p/468114#M7047</guid>
      <dc:creator>rupeshn</dc:creator>
      <dc:date>2019-09-04T13:39:22Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing results from two searches</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Comparing-results-from-two-searches/m-p/468115#M7048</link>
      <description>&lt;P&gt;Are you only going to have a single Yes and/or a single No for a user?  So the most entries you would have for a single user is 2?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2019 14:22:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Comparing-results-from-two-searches/m-p/468115#M7048</guid>
      <dc:creator>kmaron</dc:creator>
      <dc:date>2019-09-04T14:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing results from two searches</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Comparing-results-from-two-searches/m-p/468116#M7049</link>
      <description>&lt;P&gt;So, you looking for users who only received one of the two actions?&lt;/P&gt;

&lt;P&gt;Using a subsearch has it's limits:&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.3.1/SearchTutorial/Useasubsearch"&gt;https://docs.splunk.com/Documentation/Splunk/7.3.1/SearchTutorial/Useasubsearch&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;You could accomplish something similar with the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="A" sourcetype=B action=Yes  OR action=No
| stats dc(action) as action_count by User
| search action_count&amp;lt;2
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 04 Sep 2019 14:36:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Comparing-results-from-two-searches/m-p/468116#M7049</guid>
      <dc:creator>solarboyz1</dc:creator>
      <dc:date>2019-09-04T14:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing results from two searches</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Comparing-results-from-two-searches/m-p/468117#M7050</link>
      <description>&lt;P&gt;That would also give you the No people.&lt;/P&gt;

&lt;P&gt;But changing it to&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index="A" sourcetype=B action=Yes  OR action=No
 | stats dc(action) as action_count values(action) as action by User
 | search action_count&amp;lt;2 AND action=Yes
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Would be only Yes's. &lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2019 14:39:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Comparing-results-from-two-searches/m-p/468117#M7050</guid>
      <dc:creator>kmaron</dc:creator>
      <dc:date>2019-09-04T14:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing results from two searches</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Comparing-results-from-two-searches/m-p/468118#M7051</link>
      <description>&lt;P&gt;good catch!&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2019 14:46:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Comparing-results-from-two-searches/m-p/468118#M7051</guid>
      <dc:creator>solarboyz1</dc:creator>
      <dc:date>2019-09-04T14:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing results from two searches</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Comparing-results-from-two-searches/m-p/468119#M7052</link>
      <description>&lt;P&gt;I've tried the query posted by you. But it still gives both the users.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2019 15:24:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Comparing-results-from-two-searches/m-p/468119#M7052</guid>
      <dc:creator>rupeshn</dc:creator>
      <dc:date>2019-09-04T15:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing results from two searches</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Comparing-results-from-two-searches/m-p/468120#M7053</link>
      <description>&lt;P&gt;@kmaron ,I've tried the query posted by you. But it still gives both the users.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2019 15:25:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Comparing-results-from-two-searches/m-p/468120#M7053</guid>
      <dc:creator>rupeshn</dc:creator>
      <dc:date>2019-09-04T15:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing results from two searches</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Comparing-results-from-two-searches/m-p/468121#M7054</link>
      <description>&lt;P&gt;I mean users with both actions.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2019 15:42:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Comparing-results-from-two-searches/m-p/468121#M7054</guid>
      <dc:creator>rupeshn</dc:creator>
      <dc:date>2019-09-04T15:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing results from two searches</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Comparing-results-from-two-searches/m-p/468122#M7055</link>
      <description>&lt;P&gt;please share the output you got&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2019 15:59:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Comparing-results-from-two-searches/m-p/468122#M7055</guid>
      <dc:creator>kmaron</dc:creator>
      <dc:date>2019-09-04T15:59:54Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing results from two searches</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Comparing-results-from-two-searches/m-p/468123#M7056</link>
      <description>&lt;P&gt;Hi kmaron,&lt;/P&gt;

&lt;P&gt;I'm getting output but i believe the output that i'm getting is very less(less number of records) than what it should be. &lt;/P&gt;</description>
      <pubDate>Sat, 07 Sep 2019 17:10:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Comparing-results-from-two-searches/m-p/468123#M7056</guid>
      <dc:creator>rupeshn</dc:creator>
      <dc:date>2019-09-07T17:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing results from two searches</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Comparing-results-from-two-searches/m-p/468124#M7057</link>
      <description>&lt;P&gt;If you think the results are incorrect, you can break the search down and review the data:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="A" sourcetype=B action=Yes  OR action=No
 | stats dc(action) as action_count, values(action) as action, by User
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Will show all the results, you can sort by action_count, action, etc.. Look for anomalous values for action.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2019 13:24:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Comparing-results-from-two-searches/m-p/468124#M7057</guid>
      <dc:creator>solarboyz1</dc:creator>
      <dc:date>2019-09-09T13:24:11Z</dc:date>
    </item>
  </channel>
</rss>

