<?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 TO MAKE EXCEPT SQL QUERY IN SPL (A\B) in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/HOW-TO-MAKE-EXCEPT-SQL-QUERY-IN-SPL-A-B/m-p/551797#M156591</link>
    <description>&lt;P&gt;Sorry &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;, I modified the question and your solution doesn't match. Before the &lt;STRONG&gt;WHERE &lt;/STRONG&gt;clause I've a process on data.&lt;/P&gt;</description>
    <pubDate>Mon, 17 May 2021 07:53:29 GMT</pubDate>
    <dc:creator>DjNaGuRo</dc:creator>
    <dc:date>2021-05-17T07:53:29Z</dc:date>
    <item>
      <title>HOW TO MAKE EXCEPT SQL QUERY IN SPL (A\B)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/HOW-TO-MAKE-EXCEPT-SQL-QUERY-IN-SPL-A-B/m-p/551694#M156553</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I'm new in Splunk. My issue is to make an EXCEPT SQL query in SPL. Something like the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;index="trainning" sourcetype="userList" 
| rex field=userId "\w(?&amp;lt;codeId&amp;gt;\w+)"
| WHERE NOT codeId IN [ search index="trainning" sourcetype="adminUserList" 
| table adminId]
| table userId userName userProfile&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem it's that the subsearch doesn't return its result in appropriated format as ("adminid1", "adminid2", ..., "adminidN").&lt;/P&gt;&lt;P&gt;Thanks in advance for your answers and solutions.&lt;/P&gt;&lt;P&gt;Sorry, I modified my question to take into account the real SPL query issue (I wasn't in front of my Pro PC last time)&lt;/P&gt;</description>
      <pubDate>Mon, 17 May 2021 10:20:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/HOW-TO-MAKE-EXCEPT-SQL-QUERY-IN-SPL-A-B/m-p/551694#M156553</guid>
      <dc:creator>DjNaGuRo</dc:creator>
      <dc:date>2021-05-17T10:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: HOW TO MAKE EXCEPT SQL QUERY IN SPL (A\B)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/HOW-TO-MAKE-EXCEPT-SQL-QUERY-IN-SPL-A-B/m-p/551695#M156554</link>
      <description>&lt;P&gt;Will something like this work?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="trainning" sourcetype="userList" userId userName userProfile
| WHERE NOT [ search index="trainning" sourcetype="adminUserList"
| table adminId | rename adminId as userId]&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 15 May 2021 11:52:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/HOW-TO-MAKE-EXCEPT-SQL-QUERY-IN-SPL-A-B/m-p/551695#M156554</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-05-15T11:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: HOW TO MAKE EXCEPT SQL QUERY IN SPL (A\B)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/HOW-TO-MAKE-EXCEPT-SQL-QUERY-IN-SPL-A-B/m-p/551713#M156560</link>
      <description>&lt;P&gt;It works. Thanks!&lt;/P&gt;&lt;P&gt;index="training"&lt;BR /&gt;| WHERE NOT [ search index="training"&lt;BR /&gt;| table adminId | rename adminId as userId]&lt;BR /&gt;| table userId userName userProfile&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 15 May 2021 16:28:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/HOW-TO-MAKE-EXCEPT-SQL-QUERY-IN-SPL-A-B/m-p/551713#M156560</guid>
      <dc:creator>DjNaGuRo</dc:creator>
      <dc:date>2021-05-15T16:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: HOW TO MAKE EXCEPT SQL QUERY IN SPL (A\B)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/HOW-TO-MAKE-EXCEPT-SQL-QUERY-IN-SPL-A-B/m-p/551797#M156591</link>
      <description>&lt;P&gt;Sorry &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;, I modified the question and your solution doesn't match. Before the &lt;STRONG&gt;WHERE &lt;/STRONG&gt;clause I've a process on data.&lt;/P&gt;</description>
      <pubDate>Mon, 17 May 2021 07:53:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/HOW-TO-MAKE-EXCEPT-SQL-QUERY-IN-SPL-A-B/m-p/551797#M156591</guid>
      <dc:creator>DjNaGuRo</dc:creator>
      <dc:date>2021-05-17T07:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: HOW TO MAKE EXCEPT SQL QUERY IN SPL (A\B)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/HOW-TO-MAKE-EXCEPT-SQL-QUERY-IN-SPL-A-B/m-p/551801#M156592</link>
      <description>&lt;P&gt;The essence of the solution is the same - the sub-search returns rows of field=value which are OR'd then the NOT is applied&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="trainning" sourcetype="userList" userId userName userProfile
| rex field=userId "\w(?&amp;lt;codeId&amp;gt;\w+)"
| WHERE NOT [ search index="trainning" sourcetype="adminUserList"
| table adminId | rename adminId as codeId ]&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 17 May 2021 08:41:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/HOW-TO-MAKE-EXCEPT-SQL-QUERY-IN-SPL-A-B/m-p/551801#M156592</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-05-17T08:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: HOW TO MAKE EXCEPT SQL QUERY IN SPL (A\B)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/HOW-TO-MAKE-EXCEPT-SQL-QUERY-IN-SPL-A-B/m-p/551822#M156595</link>
      <description>&lt;P&gt;Another thing you could try is:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="trainning" sourcetype="userList" userId userName userProfile
| rex field=userId "\w(?&amp;lt;codeId&amp;gt;\w+)"
| WHERE NOT codeId IN [ search index="trainning" sourcetype="adminUserList" 
| table adminId | return $adminId]&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 17 May 2021 09:36:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/HOW-TO-MAKE-EXCEPT-SQL-QUERY-IN-SPL-A-B/m-p/551822#M156595</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-05-17T09:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: HOW TO MAKE EXCEPT SQL QUERY IN SPL (A\B)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/HOW-TO-MAKE-EXCEPT-SQL-QUERY-IN-SPL-A-B/m-p/551826#M156596</link>
      <description>&lt;P&gt;I have the following error when I run the query you proposed :&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;Error in 'where' command: Type checking failed. 'XOR' only takes boolean arguments.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 May 2021 10:37:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/HOW-TO-MAKE-EXCEPT-SQL-QUERY-IN-SPL-A-B/m-p/551826#M156596</guid>
      <dc:creator>DjNaGuRo</dc:creator>
      <dc:date>2021-05-17T10:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: HOW TO MAKE EXCEPT SQL QUERY IN SPL (A\B)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/HOW-TO-MAKE-EXCEPT-SQL-QUERY-IN-SPL-A-B/m-p/551828#M156597</link>
      <description>&lt;P&gt;&lt;FONT color="#00FF00"&gt;It's okay Thanks!&lt;/FONT&gt;&lt;FONT color="#FF0000"&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 May 2021 10:33:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/HOW-TO-MAKE-EXCEPT-SQL-QUERY-IN-SPL-A-B/m-p/551828#M156597</guid>
      <dc:creator>DjNaGuRo</dc:creator>
      <dc:date>2021-05-17T10:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: HOW TO MAKE EXCEPT SQL QUERY IN SPL (A\B)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/HOW-TO-MAKE-EXCEPT-SQL-QUERY-IN-SPL-A-B/m-p/551839#M156598</link>
      <description>&lt;LI-CODE lang="markup"&gt;index="trainning" sourcetype="userList" userId userName userProfile
| rex field=userId "\w(?&amp;lt;codeId&amp;gt;\w+)"
| search NOT [ search index="trainning" sourcetype="adminUserList"
| table adminId | rename adminId as codeId ]&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 17 May 2021 10:34:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/HOW-TO-MAKE-EXCEPT-SQL-QUERY-IN-SPL-A-B/m-p/551839#M156598</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-05-17T10:34:57Z</dc:date>
    </item>
  </channel>
</rss>

