<?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: return events that not match in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/return-events-that-not-match/m-p/573093#M199752</link>
    <description>&lt;P&gt;Yes, as I suggested, a different search might be used to return all the server names, assuming you have the events indexed, or you could use makeresults to generate a set of events with the server names you are looking for.&lt;/P&gt;</description>
    <pubDate>Sun, 31 Oct 2021 15:02:30 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2021-10-31T15:02:30Z</dc:date>
    <item>
      <title>return events that not match</title>
      <link>https://community.splunk.com/t5/Splunk-Search/return-events-that-not-match/m-p/573077#M199744</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;I have field that call "servername" that return this:&lt;BR /&gt;...| table servername&lt;BR /&gt;server1&lt;BR /&gt;server2&lt;BR /&gt;server3&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;need spl that when I give list of my servername, return which servername not exist&lt;/P&gt;&lt;P&gt;expected output:&lt;BR /&gt;...|search server1 OR server2 OR server3 OR server4 | table servername status&lt;/P&gt;&lt;P&gt;servername&amp;nbsp; &amp;nbsp; status&lt;BR /&gt;server4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; X&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;any idea?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sun, 31 Oct 2021 06:04:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/return-events-that-not-match/m-p/573077#M199744</guid>
      <dc:creator>indeed_2000</dc:creator>
      <dc:date>2021-10-31T06:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: return events that not match</title>
      <link>https://community.splunk.com/t5/Splunk-Search/return-events-that-not-match/m-p/573083#M199746</link>
      <description>&lt;P&gt;This is a classic case of wanting splunk to make stuff up!&lt;/P&gt;&lt;P&gt;If the event doesn't exist, how does splunk know what to return?&lt;/P&gt;&lt;P&gt;Answer, you need to tell it!&lt;/P&gt;&lt;P&gt;This is often done by getting the events from another source, either a lookup file e.g. csv file/store or a different search e.g. over a different time period, then combining this with the original search and looking for events which occur in one search and not in the other.&lt;/P&gt;</description>
      <pubDate>Sun, 31 Oct 2021 08:34:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/return-events-that-not-match/m-p/573083#M199746</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-10-31T08:34:27Z</dc:date>
    </item>
    <item>
      <title>Re: return events that not match</title>
      <link>https://community.splunk.com/t5/Splunk-Search/return-events-that-not-match/m-p/573084#M199747</link>
      <description>&lt;P&gt;Splunk on its own only passes returned data past the pipe. It has no&amp;nbsp; idea what the search was. So it doesn't matter if you were searching for just 3 hosts or for 4 and one just wasn't there. You simply get your resulting events.&lt;/P&gt;&lt;P&gt;So if you want to have stats for non-existing entities (servername in your case) you have to prepare "baseline" values append them to original results and combine them together&lt;/P&gt;&lt;PRE&gt;&amp;lt;your search&amp;gt; &lt;BR /&gt;| append&lt;BR /&gt; [ | inputlookup baseline.csv ]&lt;BR /&gt;| stats values(status) by servername&lt;BR /&gt;| eval status=if(mvcount(status)=1,status,mvfilter(status!="X"))&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 31 Oct 2021 08:47:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/return-events-that-not-match/m-p/573084#M199747</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2021-10-31T08:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: return events that not match</title>
      <link>https://community.splunk.com/t5/Splunk-Search/return-events-that-not-match/m-p/573089#M199748</link>
      <description>&lt;P&gt;is it possibe do this without csv file?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 31 Oct 2021 13:57:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/return-events-that-not-match/m-p/573089#M199748</guid>
      <dc:creator>indeed_2000</dc:creator>
      <dc:date>2021-10-31T13:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: return events that not match</title>
      <link>https://community.splunk.com/t5/Splunk-Search/return-events-that-not-match/m-p/573090#M199749</link>
      <description>&lt;P&gt;is it possible to do this without csv file?&lt;/P&gt;</description>
      <pubDate>Sun, 31 Oct 2021 13:58:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/return-events-that-not-match/m-p/573090#M199749</guid>
      <dc:creator>indeed_2000</dc:creator>
      <dc:date>2021-10-31T13:58:03Z</dc:date>
    </item>
    <item>
      <title>Re: return events that not match</title>
      <link>https://community.splunk.com/t5/Splunk-Search/return-events-that-not-match/m-p/573093#M199752</link>
      <description>&lt;P&gt;Yes, as I suggested, a different search might be used to return all the server names, assuming you have the events indexed, or you could use makeresults to generate a set of events with the server names you are looking for.&lt;/P&gt;</description>
      <pubDate>Sun, 31 Oct 2021 15:02:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/return-events-that-not-match/m-p/573093#M199752</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-10-31T15:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: return events that not match</title>
      <link>https://community.splunk.com/t5/Splunk-Search/return-events-that-not-match/m-p/573098#M199754</link>
      <description>&lt;P&gt;Sure. You can use search through earlier events (question is - do you have all servers there), you can craft them by hand (not very convenient if the number of servers grow). It's just that lookup is easiest to use.&lt;/P&gt;</description>
      <pubDate>Sun, 31 Oct 2021 16:55:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/return-events-that-not-match/m-p/573098#M199754</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2021-10-31T16:55:14Z</dc:date>
    </item>
  </channel>
</rss>

