<?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: Is there any result limit of CIDR() in lookup? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Is-there-any-result-limit-of-CIDR-in-lookup/m-p/413739#M119244</link>
    <description>&lt;P&gt;limits.confに以下の設定をしたら、うまく動きました。&lt;/P&gt;

&lt;P&gt;[lookup]&lt;BR /&gt;
max_memtable_bytes = 20000000&lt;/P&gt;

&lt;P&gt;仕様なんですかね…。&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 23:33:43 GMT</pubDate>
    <dc:creator>yutaka1005</dc:creator>
    <dc:date>2020-09-29T23:33:43Z</dc:date>
    <item>
      <title>Is there any result limit of CIDR() in lookup?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-any-result-limit-of-CIDR-in-lookup/m-p/413737#M119242</link>
      <description>&lt;P&gt;I want to add &lt;CODE&gt;AS number&lt;/CODE&gt; to ip by using some geo data. &lt;BR /&gt;
This data has column &lt;CODE&gt;AS number&lt;/CODE&gt; and &lt;CODE&gt;network&lt;/CODE&gt; like below.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;AS_number,network
xxxxx,10.0.0.0/24
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I uploaded this data as lookup, and configured lookup definitions with &lt;CODE&gt;CIDR(network)&lt;/CODE&gt;.&lt;BR /&gt;
Then I tried some ip addresses like below, but it didn't work.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults count=2 
| streamstats count as c 
| eval network=if(c=1,"2001:4860:4860::8844","216.58.197.131")
| lookup Geo_AS_Lookup network OUTPUT
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So I extracted only the lines with the following two networks matching the test addresses, and created a lookup table and lookup definition newly.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;AS_number,network
xxxxx,2001:4860:4840::/42
yyyyy,216.58.192.0/19
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then it began to match well.&lt;BR /&gt;
I wonder is there result limit of lookup?(* Because this lookup has about 440000 rows.)&lt;/P&gt;

&lt;P&gt;If someone knows about it, please tell me.&lt;/P&gt;

&lt;H4&gt;additional info&lt;/H4&gt;

&lt;P&gt;Apparently the size is more concerned than the number of rows.&lt;/P&gt;

&lt;P&gt;I made two pieces of data as below and found that the size of less than 10 MB matched well.&lt;/P&gt;

&lt;P&gt;sample_geo.csv 27MB (500000 rows with 3 columns)&lt;BR /&gt;
sample_geo_2.csv 8.95MB (500000 rows with 2 columns)&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 23:28:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-any-result-limit-of-CIDR-in-lookup/m-p/413737#M119242</guid>
      <dc:creator>yutaka1005</dc:creator>
      <dc:date>2020-09-29T23:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any result limit of CIDR() in lookup?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-any-result-limit-of-CIDR-in-lookup/m-p/413738#M119243</link>
      <description>&lt;P&gt;このリンクは見ましたか？max_memtable_bytesについての記述があります。&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/8228/lookup-table-limits.html" target="_blank"&gt;https://answers.splunk.com/answers/8228/lookup-table-limits.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 23:28:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-any-result-limit-of-CIDR-in-lookup/m-p/413738#M119243</guid>
      <dc:creator>HiroshiSatoh</dc:creator>
      <dc:date>2020-09-29T23:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any result limit of CIDR() in lookup?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-any-result-limit-of-CIDR-in-lookup/m-p/413739#M119244</link>
      <description>&lt;P&gt;limits.confに以下の設定をしたら、うまく動きました。&lt;/P&gt;

&lt;P&gt;[lookup]&lt;BR /&gt;
max_memtable_bytes = 20000000&lt;/P&gt;

&lt;P&gt;仕様なんですかね…。&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 23:33:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-any-result-limit-of-CIDR-in-lookup/m-p/413739#M119244</guid>
      <dc:creator>yutaka1005</dc:creator>
      <dc:date>2020-09-29T23:33:43Z</dc:date>
    </item>
  </channel>
</rss>

