<?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 Table with CIDR, running but no matches in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Lookup-Table-with-CIDR-running-but-no-matches/m-p/667535#M229002</link>
    <description>&lt;P&gt;Thank you for your response. I double checked and all the fields are correctly spelled.&lt;/P&gt;&lt;P&gt;A coworker put 'AND' in front of the subsearch, and events are returning. She is using a lookup without the match type being set to CIDR(ip_address), so now I'm more puzzled.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;EDIT: Oh yes, I forgot that you said that matchtype doesn't have meaning with inputlookup, so I guess that is why it doesn't matter in this case. Although I'm still puzzled as to why the 'AND' is making a difference.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 06 Nov 2023 14:03:33 GMT</pubDate>
    <dc:creator>yoshileigh66</dc:creator>
    <dc:date>2023-11-06T14:03:33Z</dc:date>
    <item>
      <title>Lookup Table with CIDR, running but no matches</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-Table-with-CIDR-running-but-no-matches/m-p/667340#M228931</link>
      <description>&lt;P&gt;Hello, I think this is a simple answer but I'm not able to find a solution.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I created a lookup table that looks like this (but of course has more info):&lt;/P&gt;
&lt;P&gt;Cidr, ip_address&lt;/P&gt;
&lt;P&gt;24, 99.99.99.99/24&lt;BR /&gt;25, 100.100.100/25&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;I only included the Cidr column as I read that the lookup table needs at least 2 columns, but I do not use it. Let me know if I should!&lt;/P&gt;
&lt;P&gt;I am trying to find source ips that match with the ip_address in my lookup table.&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index="index1" [|inputlookup lookup | rename ip_address as src_ip]&lt;/LI-CODE&gt;
&lt;P&gt;I have ensured that Advanced Settings -&amp;gt; Match -&amp;gt; CIDR(ip_address)&lt;/P&gt;
&lt;P&gt;When the query is ran, no matches are found, but I know that there is traffic from the addresses. What am I overlooking?&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2023 16:50:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-Table-with-CIDR-running-but-no-matches/m-p/667340#M228931</guid>
      <dc:creator>yoshileigh66</dc:creator>
      <dc:date>2023-11-03T16:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup Table with CIDR, running but no matches</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-Table-with-CIDR-running-but-no-matches/m-p/667361#M228941</link>
      <description>&lt;P&gt;Match type has no meaning with inputlookup.&lt;/P&gt;&lt;P&gt;Your subsearch will get expanded to a set of conditions like&lt;/P&gt;&lt;PRE&gt;(src_ip="1.2.3.4/24) OR (src_ip="4.5.6.7/23") OR ...)&lt;/PRE&gt;&lt;P&gt;Verify your expanded search in job dashboard if it matches the field naming in your events.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2023 21:28:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-Table-with-CIDR-running-but-no-matches/m-p/667361#M228941</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2023-11-03T21:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup Table with CIDR, running but no matches</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-Table-with-CIDR-running-but-no-matches/m-p/667371#M228947</link>
      <description>&lt;LI-CODE lang="markup"&gt;index="index1" 
|lookup lookup ip_address as src_ip
| where isnotnull(Cidr)&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 04 Nov 2023 10:37:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-Table-with-CIDR-running-but-no-matches/m-p/667371#M228947</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-11-04T10:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup Table with CIDR, running but no matches</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-Table-with-CIDR-running-but-no-matches/m-p/667383#M228956</link>
      <description>&lt;P&gt;That's another solution but it's worth noting the difference in the search process of both those SPLs and the possible difference in performance.&lt;/P&gt;</description>
      <pubDate>Sat, 04 Nov 2023 16:38:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-Table-with-CIDR-running-but-no-matches/m-p/667383#M228956</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2023-11-04T16:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup Table with CIDR, running but no matches</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-Table-with-CIDR-running-but-no-matches/m-p/667535#M229002</link>
      <description>&lt;P&gt;Thank you for your response. I double checked and all the fields are correctly spelled.&lt;/P&gt;&lt;P&gt;A coworker put 'AND' in front of the subsearch, and events are returning. She is using a lookup without the match type being set to CIDR(ip_address), so now I'm more puzzled.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;EDIT: Oh yes, I forgot that you said that matchtype doesn't have meaning with inputlookup, so I guess that is why it doesn't matter in this case. Although I'm still puzzled as to why the 'AND' is making a difference.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 14:03:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-Table-with-CIDR-running-but-no-matches/m-p/667535#M229002</guid>
      <dc:creator>yoshileigh66</dc:creator>
      <dc:date>2023-11-06T14:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup Table with CIDR, running but no matches</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-Table-with-CIDR-running-but-no-matches/m-p/667536#M229003</link>
      <description>&lt;P&gt;Thank you so much!&amp;nbsp;&lt;BR /&gt;Out of curiosity, is the isnotnull(CIDR) referring to the column in the lookup table, or to the matchtype that was set up when creating the lookup definition?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 14:01:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-Table-with-CIDR-running-but-no-matches/m-p/667536#M229003</guid>
      <dc:creator>yoshileigh66</dc:creator>
      <dc:date>2023-11-06T14:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup Table with CIDR, running but no matches</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-Table-with-CIDR-running-but-no-matches/m-p/667539#M229005</link>
      <description>&lt;P&gt;The column in the lookup - essentially, if there is no match in the lookup, the output field will be null.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 14:11:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-Table-with-CIDR-running-but-no-matches/m-p/667539#M229005</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-11-06T14:11:05Z</dc:date>
    </item>
  </channel>
</rss>

