<?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: subnet information in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/subnet-information/m-p/476946#M133891</link>
    <description>&lt;P&gt;Thanks @maciep &lt;BR /&gt;
Also, I am not aware about connectivity between props.conf and automatic lookup. Thanks for sharing.&lt;/P&gt;</description>
    <pubDate>Sat, 14 Sep 2019 18:13:57 GMT</pubDate>
    <dc:creator>nishit_92</dc:creator>
    <dc:date>2019-09-14T18:13:57Z</dc:date>
    <item>
      <title>subnet information</title>
      <link>https://community.splunk.com/t5/Splunk-Search/subnet-information/m-p/476944#M133889</link>
      <description>&lt;P&gt;I have subnet lookup in cidr notation. so i am trying to print subnet detail with dest ip but not getting result.&lt;/P&gt;

&lt;P&gt;query:- &lt;BR /&gt;
index=xyz | stats count by dest | lookup subnet.csv subnet as dest output subnet as subnets&lt;/P&gt;

&lt;P&gt;I have no any transformation stanza right now so let me know if any other staza require to compute this or any other way.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2019 20:04:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/subnet-information/m-p/476944#M133889</guid>
      <dc:creator>nishit_92</dc:creator>
      <dc:date>2019-09-13T20:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: subnet information</title>
      <link>https://community.splunk.com/t5/Splunk-Search/subnet-information/m-p/476945#M133890</link>
      <description>&lt;P&gt;Yes, either in the web gui or in transforms.conf (which is where the web will write it), you need to specify the match type for that field.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.3.1/Admin/Transformsconf#Lookup_tables"&gt;https://docs.splunk.com/Documentation/Splunk/7.3.1/Admin/Transformsconf#Lookup_tables&lt;/A&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;match_type = &amp;lt;string&amp;gt;
* A comma and space-delimited list of &amp;lt;match_type&amp;gt;(&amp;lt;field_name&amp;gt;)
  specification to allow for non-exact matching
* The available match_type values are WILDCARD, CIDR, and EXACT. Only fields 
  that should use WILDCARD or CIDR matching should be specified in this list.
* Default: EXACT 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So probably something like this in transforms:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[subnet]
filename = subnet.csv
match_type = CIDR(subnet)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And if you want the lookup to happen automatically, that would be in props.conf (but also in the web).&lt;/P&gt;

&lt;P&gt;So the simple lookup is in the lookups directory.  The table definition (case sensitivity, wildcards, max matches, etc) is defined in transforms.  And automatically running the lookup command for host/source/sourcetype is done in props.&lt;/P&gt;</description>
      <pubDate>Sat, 14 Sep 2019 14:13:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/subnet-information/m-p/476945#M133890</guid>
      <dc:creator>maciep</dc:creator>
      <dc:date>2019-09-14T14:13:10Z</dc:date>
    </item>
    <item>
      <title>Re: subnet information</title>
      <link>https://community.splunk.com/t5/Splunk-Search/subnet-information/m-p/476946#M133891</link>
      <description>&lt;P&gt;Thanks @maciep &lt;BR /&gt;
Also, I am not aware about connectivity between props.conf and automatic lookup. Thanks for sharing.&lt;/P&gt;</description>
      <pubDate>Sat, 14 Sep 2019 18:13:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/subnet-information/m-p/476946#M133891</guid>
      <dc:creator>nishit_92</dc:creator>
      <dc:date>2019-09-14T18:13:57Z</dc:date>
    </item>
  </channel>
</rss>

