<?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: Lookup works on one instance, but not another in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Lookup-works-on-one-instance-but-not-another/m-p/368462#M108601</link>
    <description>&lt;P&gt;You're welcome. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 07 Feb 2018 14:44:33 GMT</pubDate>
    <dc:creator>Yunagi</dc:creator>
    <dc:date>2018-02-07T14:44:33Z</dc:date>
    <item>
      <title>Lookup works on one instance, but not another</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-works-on-one-instance-but-not-another/m-p/368457#M108596</link>
      <description>&lt;P&gt;I'm seeing a weird issue - I have two Splunk instances, one for prod and one for dev. I have a lookup created that looks for an IP and then compares it to the lookup list to see what CIDR it falls into and then extracts the firewall zone it's in. Here's a search I run in prod that works (returns the firewall zone):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=foo sourcetype="foo"
| lookup ip_cidr.csv cidr_range as IP_Address
| eval firewall=coalesce(firewall,"null")
| eval context=coalesce(context,"null")
| eval zone=coalesce(zone,"null")
| stats count by IP_Address,zone
| fieldformat count=tostring(count,"commas") 
| sort -count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I get a list of IPs with the zone and the count&lt;/P&gt;

&lt;P&gt;On dev, I'm running a similar search against our DNS logs:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=bind `dns_whitelist`
| lookup ip_cidr.csv cidr_range as src
| eval firewall=coalesce(firewall,"null")
| eval context=coalesce(context,"null")
| eval zone=coalesce(zone,"null")
| stats count by src,zone,query
| fieldformat count=tostring(count,"commas") 
| sort -count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;However, for this search the zone is returned as "null" for every IP. I verified the permissions for both the lookup file and the lookup definition and they're both set to Global and All apps.&lt;/P&gt;

&lt;P&gt;I'm just at a loss as to what the difference is between the two. Any help would be appreciated.&lt;/P&gt;

&lt;P&gt;Thx&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2018 13:51:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-works-on-one-instance-but-not-another/m-p/368457#M108596</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2018-02-07T13:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup works on one instance, but not another</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-works-on-one-instance-but-not-another/m-p/368458#M108597</link>
      <description>&lt;P&gt;Run &lt;CODE&gt;|input lookup ip_cidr.csv&lt;/CODE&gt;. Are the lookup tables the same on each instance? Does the lookup field "cidr_range" exist in your dev search? You can run just &lt;CODE&gt;index=bind 'dns_whitelist'&lt;/CODE&gt; to check that. It seems like the lookup isn't finding anything and is reverting to a default value of null based on the lookup definition. The issues seems to point to a difference in fields between the two logs.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 18:01:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-works-on-one-instance-but-not-another/m-p/368458#M108597</guid>
      <dc:creator>mdsnmss</dc:creator>
      <dc:date>2020-09-29T18:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup works on one instance, but not another</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-works-on-one-instance-but-not-another/m-p/368459#M108598</link>
      <description>&lt;P&gt;Have you checked the "Match type" setting for your lookup definitions? You need to click on "Advanced options" when editing a lookup definition to make it visible.&lt;BR /&gt;
I believe the match type for your first lookup definition (prod) should be: CIDR(IP_Address)&lt;BR /&gt;
For the second lookup definition (dev), it should be: CIDR(src)&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2018 14:12:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-works-on-one-instance-but-not-another/m-p/368459#M108598</guid>
      <dc:creator>Yunagi</dc:creator>
      <dc:date>2018-02-07T14:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup works on one instance, but not another</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-works-on-one-instance-but-not-another/m-p/368460#M108599</link>
      <description>&lt;P&gt;I ran &lt;CODE&gt;| inputlookup ip_cidr.csv&lt;/CODE&gt; on both instances and I'm seeing the same results - 2,439 results - on both instances.&lt;/P&gt;

&lt;P&gt;Thx&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2018 14:16:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-works-on-one-instance-but-not-another/m-p/368460#M108599</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2018-02-07T14:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup works on one instance, but not another</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-works-on-one-instance-but-not-another/m-p/368461#M108600</link>
      <description>&lt;P&gt;Thx Yunagi - that was it!&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2018 14:19:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-works-on-one-instance-but-not-another/m-p/368461#M108600</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2018-02-07T14:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup works on one instance, but not another</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-works-on-one-instance-but-not-another/m-p/368462#M108601</link>
      <description>&lt;P&gt;You're welcome. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2018 14:44:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-works-on-one-instance-but-not-another/m-p/368462#M108601</guid>
      <dc:creator>Yunagi</dc:creator>
      <dc:date>2018-02-07T14:44:33Z</dc:date>
    </item>
  </channel>
</rss>

