<?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 Is it possible to alert on something that is NOT in a lookup file? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-alert-on-something-that-is-NOT-in-a-lookup/m-p/372774#M109613</link>
    <description>&lt;P&gt;Hello everyone,&lt;/P&gt;

&lt;P&gt;Basically exactly what the title says.  I made a white list of approved accounts and would like to alert on successful logins for accounts that are NOT on that list.  So far, what I have is very basic:&lt;/P&gt;

&lt;P&gt;| inputlookup test_lookup | return account&lt;/P&gt;

&lt;P&gt;The issue is that I can't find anything on the logic needed to match for accounts that are not in the file.  &lt;/P&gt;</description>
    <pubDate>Tue, 27 Jun 2017 21:04:18 GMT</pubDate>
    <dc:creator>Svill321</dc:creator>
    <dc:date>2017-06-27T21:04:18Z</dc:date>
    <item>
      <title>Is it possible to alert on something that is NOT in a lookup file?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-alert-on-something-that-is-NOT-in-a-lookup/m-p/372774#M109613</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;

&lt;P&gt;Basically exactly what the title says.  I made a white list of approved accounts and would like to alert on successful logins for accounts that are NOT on that list.  So far, what I have is very basic:&lt;/P&gt;

&lt;P&gt;| inputlookup test_lookup | return account&lt;/P&gt;

&lt;P&gt;The issue is that I can't find anything on the logic needed to match for accounts that are not in the file.  &lt;/P&gt;</description>
      <pubDate>Tue, 27 Jun 2017 21:04:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-alert-on-something-that-is-NOT-in-a-lookup/m-p/372774#M109613</guid>
      <dc:creator>Svill321</dc:creator>
      <dc:date>2017-06-27T21:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to alert on something that is NOT in a lookup file?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-alert-on-something-that-is-NOT-in-a-lookup/m-p/372775#M109614</link>
      <description>&lt;P&gt;Hi,  &lt;/P&gt;

&lt;P&gt;I do white- and blacklisting via lookup files. &lt;/P&gt;

&lt;P&gt;The logic behind that evolves around this&lt;/P&gt;

&lt;P&gt;For example this will give you only results for events that src_ip does not show up in the ip_whitelist lookup table.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| inputlookup ip_whitelist ip AS src_ip OUTPUT ip AS src_ip2&lt;BR /&gt;
 | where isnull(src_ip2)&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:39:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-alert-on-something-that-is-NOT-in-a-lookup/m-p/372775#M109614</guid>
      <dc:creator>horsefez</dc:creator>
      <dc:date>2020-09-29T14:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to alert on something that is NOT in a lookup file?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-alert-on-something-that-is-NOT-in-a-lookup/m-p/372776#M109615</link>
      <description>&lt;P&gt;You might try the set diff command. &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.6.1/SearchReference/Set"&gt;http://docs.splunk.com/Documentation/Splunk/6.6.1/SearchReference/Set&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;It takes two lists and basically finds the differences &lt;/P&gt;</description>
      <pubDate>Tue, 27 Jun 2017 21:23:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-alert-on-something-that-is-NOT-in-a-lookup/m-p/372776#M109615</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2017-06-27T21:23:25Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to alert on something that is NOT in a lookup file?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-alert-on-something-that-is-NOT-in-a-lookup/m-p/372777#M109616</link>
      <description>&lt;P&gt;Try like this &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search to get account logins NOT [| inputlookup test_lookup | table account ]  | table ...relevant field to show in alert...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Above assumes that your logs have a field called account which has exactly same value as account field in the lookup table. If the field names are different, add a rename command in subsearch. You can then setup alert to get fired when number of events are greater than 0.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jun 2017 21:28:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-alert-on-something-that-is-NOT-in-a-lookup/m-p/372777#M109616</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-06-27T21:28:47Z</dc:date>
    </item>
  </channel>
</rss>

