<?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 Why is our search on Windows DHCP logs using a MAC address lookup table not producing any results? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-is-our-search-on-Windows-DHCP-logs-using-a-MAC-address/m-p/168615#M48091</link>
    <description>&lt;P&gt;We have created a MAC lookup table, but we get no hits in our searches.&lt;/P&gt;

&lt;P&gt;Our aim is to lookup the Manufacturer's name from MAC addresses in the Windows DHCP logs.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Lookup Table&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[root@lab ~]# head /opt/splunk/etc/system/lookups/ieee-mac-oui.csv
Vendor_MAC,Manufacturer
000000,XEROX CORPORATION
000001,XEROX CORPORATION
000002,XEROX CORPORATION
000003,XEROX CORPORATION
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Search&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=windhcp | lookup ieee-mac-oui.csv Vendor_MAC OUTPUT Manufacturer | table hostname, mac, src_ip, Manufacturer
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Since the lookup table consists of the the first 6 digits of the MAC address, we specified &lt;STRONG&gt;match_type = WILDCARD&lt;/STRONG&gt; in transforms.conf.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;transforms.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[ieee-mac-oui]
filename = ieee-mac-oui.csv
match_type = WILDCARD
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;As we were not looking for an exact match, only the first 6 digits of the MAC address.&lt;/P&gt;</description>
    <pubDate>Wed, 12 Aug 2015 03:23:17 GMT</pubDate>
    <dc:creator>pjohnson1</dc:creator>
    <dc:date>2015-08-12T03:23:17Z</dc:date>
    <item>
      <title>Why is our search on Windows DHCP logs using a MAC address lookup table not producing any results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-our-search-on-Windows-DHCP-logs-using-a-MAC-address/m-p/168615#M48091</link>
      <description>&lt;P&gt;We have created a MAC lookup table, but we get no hits in our searches.&lt;/P&gt;

&lt;P&gt;Our aim is to lookup the Manufacturer's name from MAC addresses in the Windows DHCP logs.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Lookup Table&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[root@lab ~]# head /opt/splunk/etc/system/lookups/ieee-mac-oui.csv
Vendor_MAC,Manufacturer
000000,XEROX CORPORATION
000001,XEROX CORPORATION
000002,XEROX CORPORATION
000003,XEROX CORPORATION
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Search&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=windhcp | lookup ieee-mac-oui.csv Vendor_MAC OUTPUT Manufacturer | table hostname, mac, src_ip, Manufacturer
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Since the lookup table consists of the the first 6 digits of the MAC address, we specified &lt;STRONG&gt;match_type = WILDCARD&lt;/STRONG&gt; in transforms.conf.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;transforms.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[ieee-mac-oui]
filename = ieee-mac-oui.csv
match_type = WILDCARD
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;As we were not looking for an exact match, only the first 6 digits of the MAC address.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Aug 2015 03:23:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-our-search-on-Windows-DHCP-logs-using-a-MAC-address/m-p/168615#M48091</guid>
      <dc:creator>pjohnson1</dc:creator>
      <dc:date>2015-08-12T03:23:17Z</dc:date>
    </item>
    <item>
      <title>Re: Why is our search on Windows DHCP logs using a MAC address lookup table not producing any results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-our-search-on-Windows-DHCP-logs-using-a-MAC-address/m-p/168616#M48092</link>
      <description>&lt;P&gt;If I'm reading the transforms doc correctly, I'd think you want &lt;CODE&gt;match_type = WILDCARD(Vendor_MAC)&lt;/CODE&gt; but I'll admit I haven't played with such so don't know if this is correct / the only trouble.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Aug 2015 04:06:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-our-search-on-Windows-DHCP-logs-using-a-MAC-address/m-p/168616#M48092</guid>
      <dc:creator>acharlieh</dc:creator>
      <dc:date>2015-08-12T04:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: Why is our search on Windows DHCP logs using a MAC address lookup table not producing any results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-our-search-on-Windows-DHCP-logs-using-a-MAC-address/m-p/168617#M48093</link>
      <description>&lt;P&gt;Thanks for responding. Tried that but no joy...&lt;/P&gt;</description>
      <pubDate>Wed, 12 Aug 2015 09:30:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-our-search-on-Windows-DHCP-logs-using-a-MAC-address/m-p/168617#M48093</guid>
      <dc:creator>pjohnson1</dc:creator>
      <dc:date>2015-08-12T09:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: Why is our search on Windows DHCP logs using a MAC address lookup table not producing any results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-our-search-on-Windows-DHCP-logs-using-a-MAC-address/m-p/168618#M48094</link>
      <description>&lt;P&gt;Could there be a typo in your posting?  The lookup command references a Vendor_MAC field, but the table command uses 'mac'.  I would expect both commands to use the same field.  Perhaps the lookup command should be &lt;CODE&gt;lookup ieee-mac-oui.csv Vendor_MAC AS mac OUTPUT Manufacturer&lt;/CODE&gt;?&lt;BR /&gt;
Do you have a props.conf entry to go with your transforms.conf stanza?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 06:57:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-our-search-on-Windows-DHCP-logs-using-a-MAC-address/m-p/168618#M48094</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-09-29T06:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: Why is our search on Windows DHCP logs using a MAC address lookup table not producing any results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-our-search-on-Windows-DHCP-logs-using-a-MAC-address/m-p/168619#M48095</link>
      <description>&lt;P&gt;Have you tried adding an asterisk to the vendor_mac values in your lookup file?  Like this...&lt;/P&gt;

&lt;P&gt;000000*,XEROX CORPORATION&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2015 01:32:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-our-search-on-Windows-DHCP-logs-using-a-MAC-address/m-p/168619#M48095</guid>
      <dc:creator>maciep</dc:creator>
      <dc:date>2015-08-13T01:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: Why is our search on Windows DHCP logs using a MAC address lookup table not producing any results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-our-search-on-Windows-DHCP-logs-using-a-MAC-address/m-p/168620#M48096</link>
      <description>&lt;P&gt;Tried this but not hits under Manufacturer...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=windhcp | lookup ieee-mac-oui.csv Vendor_MAC AS mac OUTPUT Manufacturer | dedup mac | table hostname, mac, src_ip, Manufacturer
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Apparently, no entry for this ieee-mac-oui lookup in props.conf.  Is one needed, as there isnt one for another lookup which we have (but that lookup only has 1 field).&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Aug 2015 00:14:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-our-search-on-Windows-DHCP-logs-using-a-MAC-address/m-p/168620#M48096</guid>
      <dc:creator>pjohnson1</dc:creator>
      <dc:date>2015-08-14T00:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: Why is our search on Windows DHCP logs using a MAC address lookup table not producing any results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-our-search-on-Windows-DHCP-logs-using-a-MAC-address/m-p/168621#M48097</link>
      <description>&lt;P&gt;couple of things:&lt;/P&gt;

&lt;P&gt;First, acharlieh is correct, you will want to have the transforms.conf file setup with the following:&lt;BR /&gt;
[ieee-mac-oui]&lt;BR /&gt;
filename = ieee-mac-oui.csv&lt;BR /&gt;
match_type = WILDCARD(Vendor_MAC)&lt;/P&gt;

&lt;P&gt;The next part referenced by mcaiep is correct, you will want the values in your lookup table stored with the '&lt;EM&gt;' at the end of the values (ex. below):&lt;BR /&gt;
Vendor_MAC,Manufacturer&lt;BR /&gt;
000000&lt;/EM&gt;,XEROX CORPORATION&lt;BR /&gt;
000001*,XEROX CORPORATION&lt;BR /&gt;
000002*,XEROX CORPORATION&lt;BR /&gt;
000003*,XEROX CORPORATION&lt;/P&gt;

&lt;P&gt;Now, the last part is to reference the stanza name (ieee-mac-oui) in your lookup.&lt;/P&gt;

&lt;P&gt;Current Search:&lt;BR /&gt;
index=windhcp | lookup ieee-mac-oui.csv Vendor_MAC OUTPUT Manufacturer | table hostname, mac, src_ip, Manufacturer&lt;/P&gt;

&lt;P&gt;Corrected Search using Stanza:&lt;BR /&gt;
index=windhcp | lookup ieee-mac-oui Vendor_MAC OUTPUT Manufacturer | table hostname, mac, src_ip, Manufacturer&lt;/P&gt;

&lt;P&gt;Notice the slight difference above, this tells the search to use the stanza in the transforms.conf file instead of just referencing the csv directly without the wildcards.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 06:58:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-our-search-on-Windows-DHCP-logs-using-a-MAC-address/m-p/168621#M48097</guid>
      <dc:creator>icyfeverr</dc:creator>
      <dc:date>2020-09-29T06:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: Why is our search on Windows DHCP logs using a MAC address lookup table not producing any results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-our-search-on-Windows-DHCP-logs-using-a-MAC-address/m-p/168622#M48098</link>
      <description>&lt;P&gt;You do need to specify the WILDCARD(Vendor_MAC) in transforms.conf. This is required for wildcard searches to match correctly.&lt;/P&gt;

&lt;P&gt;Readd this and restart. Can you also provide an example of your dataset?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Aug 2015 02:39:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-our-search-on-Windows-DHCP-logs-using-a-MAC-address/m-p/168622#M48098</guid>
      <dc:creator>esix_splunk</dc:creator>
      <dc:date>2015-08-14T02:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: Why is our search on Windows DHCP logs using a MAC address lookup table not producing any results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-our-search-on-Windows-DHCP-logs-using-a-MAC-address/m-p/168623#M48099</link>
      <description>&lt;P&gt;I've finally got round to re-test this. Thanks for the comment.&lt;/P&gt;

&lt;P&gt;I have updated the transforms and .csv file but the lookup is still not happening.  The query completes but no loookups in the Manufacturers column.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Transforms&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[splunk@lab local]$ more transforms.conf
[ieee-mac-oui]
filename = ieee-mac-oui.csv
match_type = WILDCARD(Vendor_MAC)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;ieee-mac-oui.csv&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[splunk@lab lookups]$ head ieee-mac-oui.csv
Vendor_MAC,Manufacturer
000000,XEROX CORPORATION
000001*,XEROX CORPORATION
000002*,XEROX CORPORATION
000003*,XEROX CORPORATION
000004*,XEROX CORPORATION
000005*,XEROX CORPORATION
000006*,XEROX CORPORATION
000007*,XEROX CORPORATION
000008*,XEROX CORPORATION
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Query&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;The MAC address field is &lt;STRONG&gt;mac&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  index=windhcp | lookup ieee-mac-oui Vendor_MAC as mac OUTPUT Manufacturer | table hostname, mac, src_ip, Manufacturer
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This query now works but some entries does not show the Manufacturer.  Will need to double-check the ieee-mac-oui.csv. Thanks for all the help. I will mark this as answered.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Sep 2015 00:51:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-our-search-on-Windows-DHCP-logs-using-a-MAC-address/m-p/168623#M48099</guid>
      <dc:creator>pjohnson1</dc:creator>
      <dc:date>2015-09-02T00:51:18Z</dc:date>
    </item>
  </channel>
</rss>

