<?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: How is my `set diff` returning any difference if I'm using the same macro as both subsearches? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-is-my-set-diff-returning-any-difference-if-I-m-using-the/m-p/501430#M139618</link>
    <description>&lt;P&gt;Because you are using &lt;CODE&gt;subsearches&lt;/CODE&gt; which have both &lt;CODE&gt;time&lt;/CODE&gt;, &lt;CODE&gt;size&lt;/CODE&gt; and &lt;CODE&gt;memory available&lt;/CODE&gt; limits, which may be hit at different places for different runs of the same search.  There are MUCH better ways to do &lt;CODE&gt;diffs&lt;/CODE&gt; than &lt;CODE&gt;set diff&lt;/CODE&gt; and I always use those other ways.  I have never had to use &lt;CODE&gt;set diff&lt;/CODE&gt; to get the job done.&lt;/P&gt;</description>
    <pubDate>Thu, 05 Dec 2019 15:39:13 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2019-12-05T15:39:13Z</dc:date>
    <item>
      <title>How is my `set diff` returning any difference if I'm using the same macro as both subsearches?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-is-my-set-diff-returning-any-difference-if-I-m-using-the/m-p/501428#M139616</link>
      <description>&lt;P&gt;I'm building a dashboard where a user selects a dropdown item that has the value of a search macro name and then a single value panel is rendered as a &lt;CODE&gt;stats dc(X)&lt;/CODE&gt; (where X is a named field found in both macros).&lt;/P&gt;

&lt;P&gt;However, I'm running into a strange occurrence where if I select a macro to &lt;CODE&gt;set diff&lt;/CODE&gt; against itself, the value isn't &lt;CODE&gt;0&lt;/CODE&gt;, &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| set diff 
[ `ad_enabled_computer_objects_no_vdi_all` 
| fields asset_hostname] 
[ `ad_enabled_computer_objects_no_vdi_all` 
| fields asset_hostname]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This occurs on many macros that return results from many different data sources.&lt;/P&gt;

&lt;P&gt;Has anyone experienced this with &lt;CODE&gt;set diff&lt;/CODE&gt; ?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2019 02:31:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-is-my-set-diff-returning-any-difference-if-I-m-using-the/m-p/501428#M139616</guid>
      <dc:creator>mbrownoutside</dc:creator>
      <dc:date>2019-12-05T02:31:59Z</dc:date>
    </item>
    <item>
      <title>Re: How is my `set diff` returning any difference if I'm using the same macro as both subsearches?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-is-my-set-diff-returning-any-difference-if-I-m-using-the/m-p/501429#M139617</link>
      <description>&lt;P&gt;IT was my macro SPL.  Once fixed, the issue did not persist.   It happened that the two macros I tested were both incorrect.  Of course.  &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2019 13:58:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-is-my-set-diff-returning-any-difference-if-I-m-using-the/m-p/501429#M139617</guid>
      <dc:creator>mbrownoutside</dc:creator>
      <dc:date>2019-12-05T13:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: How is my `set diff` returning any difference if I'm using the same macro as both subsearches?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-is-my-set-diff-returning-any-difference-if-I-m-using-the/m-p/501430#M139618</link>
      <description>&lt;P&gt;Because you are using &lt;CODE&gt;subsearches&lt;/CODE&gt; which have both &lt;CODE&gt;time&lt;/CODE&gt;, &lt;CODE&gt;size&lt;/CODE&gt; and &lt;CODE&gt;memory available&lt;/CODE&gt; limits, which may be hit at different places for different runs of the same search.  There are MUCH better ways to do &lt;CODE&gt;diffs&lt;/CODE&gt; than &lt;CODE&gt;set diff&lt;/CODE&gt; and I always use those other ways.  I have never had to use &lt;CODE&gt;set diff&lt;/CODE&gt; to get the job done.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2019 15:39:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-is-my-set-diff-returning-any-difference-if-I-m-using-the/m-p/501430#M139618</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-12-05T15:39:13Z</dc:date>
    </item>
  </channel>
</rss>

