<?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 How to only return subsearch results which are not available on main search? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-only-return-subsearch-results-which-are-not-available-on/m-p/607583#M211252</link>
    <description>&lt;P&gt;I have two indexes which include same data in a different fields as seen below.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial black,avant garde"&gt;index1 -- user, fileName, ...etc&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial black,avant garde"&gt;index2 -- event.file, actor&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial black,avant garde"&gt;user = actor and fileName = event.file&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;The following search gives me if a user and their file in &lt;STRONG&gt;index2&lt;/STRONG&gt; is available in the &lt;STRONG&gt;index1&lt;/STRONG&gt;, but I dont need this since I know they should be included in &lt;STRONG&gt;index1&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;What I am trying to find is : If a user and their file in &lt;STRONG&gt;index2&lt;/STRONG&gt; is NOT available in the &lt;STRONG&gt;index1&lt;/STRONG&gt;, I wanna list them out.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for help&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial black,avant garde"&gt;index="index1"&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial black,avant garde"&gt;[search index="index2" "event"=event2 event.file="something_*"&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial black,avant garde"&gt;| table event.file, actor&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial black,avant garde"&gt;| rename event.file as fileName, actor as user&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial black,avant garde"&gt;]&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial black,avant garde"&gt;| table actor&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 29 Jul 2022 23:24:41 GMT</pubDate>
    <dc:creator>splunkxorsplunk</dc:creator>
    <dc:date>2022-07-29T23:24:41Z</dc:date>
    <item>
      <title>How to only return subsearch results which are not available on main search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-only-return-subsearch-results-which-are-not-available-on/m-p/607583#M211252</link>
      <description>&lt;P&gt;I have two indexes which include same data in a different fields as seen below.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial black,avant garde"&gt;index1 -- user, fileName, ...etc&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial black,avant garde"&gt;index2 -- event.file, actor&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial black,avant garde"&gt;user = actor and fileName = event.file&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;The following search gives me if a user and their file in &lt;STRONG&gt;index2&lt;/STRONG&gt; is available in the &lt;STRONG&gt;index1&lt;/STRONG&gt;, but I dont need this since I know they should be included in &lt;STRONG&gt;index1&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;What I am trying to find is : If a user and their file in &lt;STRONG&gt;index2&lt;/STRONG&gt; is NOT available in the &lt;STRONG&gt;index1&lt;/STRONG&gt;, I wanna list them out.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for help&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial black,avant garde"&gt;index="index1"&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial black,avant garde"&gt;[search index="index2" "event"=event2 event.file="something_*"&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial black,avant garde"&gt;| table event.file, actor&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial black,avant garde"&gt;| rename event.file as fileName, actor as user&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial black,avant garde"&gt;]&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial black,avant garde"&gt;| table actor&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2022 23:24:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-only-return-subsearch-results-which-are-not-available-on/m-p/607583#M211252</guid>
      <dc:creator>splunkxorsplunk</dc:creator>
      <dc:date>2022-07-29T23:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: Only return subsearch results which are not available on main search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-only-return-subsearch-results-which-are-not-available-on/m-p/607586#M211255</link>
      <description>&lt;P&gt;Swap the searches and you should get what you're looking for.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="index2"
NOT [search index="index1" "event"=event2 fileName="something_*"
| fields fileName user
| rename fileName as event.file, user as actor
| format
]
| table actor&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 29 Jul 2022 20:54:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-only-return-subsearch-results-which-are-not-available-on/m-p/607586#M211255</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-07-29T20:54:37Z</dc:date>
    </item>
    <item>
      <title>Re: Only return subsearch results which are not available on main search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-only-return-subsearch-results-which-are-not-available-on/m-p/607588#M211256</link>
      <description>&lt;P&gt;Thanks for solution recommendations!&lt;/P&gt;&lt;P&gt;My initial pivot point should be index2 since index1 includes all files and actors. if a user and associated file is available in index2 but not index1, that is what I am looking for.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2022 21:28:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-only-return-subsearch-results-which-are-not-available-on/m-p/607588#M211256</guid>
      <dc:creator>splunkxorsplunk</dc:creator>
      <dc:date>2022-07-29T21:28:10Z</dc:date>
    </item>
  </channel>
</rss>

