<?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: Set operator in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Set-operator/m-p/153502#M185622</link>
    <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;P&gt;index=mobile   Action_Name=Page_View  OS="*" | eval temp=if(like(app_usage_location,"%Stadium%") OR like(app_usage_location,"%Park%" OR like(app_usage_location,"%Unkno%"),1,2) | stats values(temp) as temp by user_id | where mvcount(temp)=1 | fields user_id&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 17:48:42 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2020-09-28T17:48:42Z</dc:date>
    <item>
      <title>Set operator</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Set-operator/m-p/153501#M185621</link>
      <description>&lt;P&gt;I've tried using SET operator to find all the users who satisfy first condition but are not present in second search with different condition...below is an example query..&lt;/P&gt;

&lt;P&gt;given set operator's limit of 10k records, I'm trying to find the best way to implement SET operations especially DIFF &lt;/P&gt;

&lt;P&gt;Any pointers would be great&lt;/P&gt;

&lt;P&gt;thanks, ronak&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| set diff [search  index=mobile   Action_Name=Page_View  OS="*" (app_usage_location=*Stadium* OR app_usage_location=*Park* OR app_usage_location=*Unkno*) | fields user_id] [ search  index=mobile   Action_Name=Page_View  OS="*" NOT(app_usage_location=*Stadium* OR app_usage_location=*Park* OR app_usage_location=*Unkno*) |fields user_id] | stats dc(user_id)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 07 Oct 2014 05:12:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Set-operator/m-p/153501#M185621</guid>
      <dc:creator>ronak</dc:creator>
      <dc:date>2014-10-07T05:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: Set operator</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Set-operator/m-p/153502#M185622</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;P&gt;index=mobile   Action_Name=Page_View  OS="*" | eval temp=if(like(app_usage_location,"%Stadium%") OR like(app_usage_location,"%Park%" OR like(app_usage_location,"%Unkno%"),1,2) | stats values(temp) as temp by user_id | where mvcount(temp)=1 | fields user_id&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:48:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Set-operator/m-p/153502#M185622</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2020-09-28T17:48:42Z</dc:date>
    </item>
  </channel>
</rss>

