<?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: Why is the subsearch excluding inputlookup results? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-is-the-subsearch-excluding-inputlookup-results/m-p/476741#M133816</link>
    <description>&lt;P&gt;This seems to be working perfectly! Thanks a lot!&lt;/P&gt;</description>
    <pubDate>Fri, 21 Feb 2020 09:52:56 GMT</pubDate>
    <dc:creator>swengroeneveld</dc:creator>
    <dc:date>2020-02-21T09:52:56Z</dc:date>
    <item>
      <title>Why is the subsearch excluding inputlookup results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-the-subsearch-excluding-inputlookup-results/m-p/476738#M133813</link>
      <description>&lt;P&gt;Good morning,&lt;/P&gt;

&lt;P&gt;Hope someone can help me out here. I am trying to get a list of IPs where hits are &amp;gt; 100, but I want to exclude an external list that is saved as an inputlookup file. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=server site=login
| stats count AS Hits BY ip
| search Hits &amp;gt; 100
NOT [| inputlookup savedfile | fields test_ip | rename test_ip AS ip]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The problem I am facing here is that in both cases (so with removing the last line of the code "NOT [|..") I am getting the same number as with the line while I manually reviewed the result and a few IPs are in the input file as well as on the "base" query.&lt;/P&gt;

&lt;P&gt;Also the following did not provide the desired results:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    index=server site=login 
    | stats count AS Hits BY ip
    | search Hits &amp;gt; 100
    | search NOT [ | inputlookup savedfile | fields test_ip | rename test_ip AS ip ]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks for the feedback and thinking in advance,&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2020 06:07:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-the-subsearch-excluding-inputlookup-results/m-p/476738#M133813</guid>
      <dc:creator>swengroeneveld</dc:creator>
      <dc:date>2020-02-20T06:07:56Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the subsearch excluding inputlookup results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-the-subsearch-excluding-inputlookup-results/m-p/476739#M133814</link>
      <description>&lt;P&gt;Not an answer but just curious as to why wouldn't you perform there filtering in the first level search, such as &lt;CODE&gt;index=server site=login NOT [| inputlookup savedfile | fields test_ip | rename test_ip AS ip]&lt;/CODE&gt; ? &lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2020 14:06:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-the-subsearch-excluding-inputlookup-results/m-p/476739#M133814</guid>
      <dc:creator>morethanyell</dc:creator>
      <dc:date>2020-02-20T14:06:10Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the subsearch excluding inputlookup results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-the-subsearch-excluding-inputlookup-results/m-p/476740#M133815</link>
      <description>&lt;P&gt;Use lookup command and exclude IPs that are matched. Try this query.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=server site=login
| stats count AS Hits BY ip
| search Hits &amp;gt; 100
| lookup savedfile test_ip AS ip OUTPUT test_ip 
| where isnull(test_ip)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 20 Feb 2020 14:44:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-the-subsearch-excluding-inputlookup-results/m-p/476740#M133815</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2020-02-20T14:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the subsearch excluding inputlookup results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-the-subsearch-excluding-inputlookup-results/m-p/476741#M133816</link>
      <description>&lt;P&gt;This seems to be working perfectly! Thanks a lot!&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2020 09:52:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-the-subsearch-excluding-inputlookup-results/m-p/476741#M133816</guid>
      <dc:creator>swengroeneveld</dc:creator>
      <dc:date>2020-02-21T09:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the subsearch excluding inputlookup results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-the-subsearch-excluding-inputlookup-results/m-p/476742#M133817</link>
      <description>&lt;P&gt;Good question, my thinking, and maybe wrongly, is that scripts execute left --&amp;gt; right, top to bottom. &lt;/P&gt;

&lt;P&gt;Meaning that if I narrow the search first, the lookup goes quicker.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2020 09:54:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-the-subsearch-excluding-inputlookup-results/m-p/476742#M133817</guid>
      <dc:creator>swengroeneveld</dc:creator>
      <dc:date>2020-02-21T09:54:32Z</dc:date>
    </item>
  </channel>
</rss>

