<?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: How to Match the First three characters of a MAC address within a lookup table field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-Match-the-First-three-characters-of-a-MAC-address-within/m-p/690842#M235289</link>
    <description>&lt;P&gt;Yes, I've created a lookup definition and set the Match type as 'WILDCARD(Prefix)'. However, I'm still not getting results. When commenting out the lookup, I get results.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 16 Jun 2024 23:49:17 GMT</pubDate>
    <dc:creator>leykmekoo</dc:creator>
    <dc:date>2024-06-16T23:49:17Z</dc:date>
    <item>
      <title>How to Match the First three characters of a MAC address within a lookup table field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Match-the-First-three-characters-of-a-MAC-address-within/m-p/690837#M235287</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a lookup table where a list of MAC addresses are listed with the associated Vendors; basically an identifier. However, the mac address in this lookup table (column name is 'prefix') only has the three characters - xx:xx:xx. What I'm trying to do is write a query to find devices that were assigned/renewed an IP address from the DHCP server and based on their Mac address information in the result, identify the vendor. I was able to filter the first three characters from the result but when adding the lookup table to enrich the result with the Vendor information, I'm getting zero results. What am I doing wrong here? Thanks in advance!&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=some_dhcp description=renew

| eval d_mac=dest_mac

| rex field=d_mac "(?P&amp;lt;d_mac&amp;gt;([0-9-Fa-f]{2}[:-]){3})"

| lookup vendor.csv Prefix as d_mac OUTPUT Prefix Vendor_Name

| search Prefix=*

| table date dest_mac Vendor_Name description
&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 17 Jun 2024 21:25:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Match-the-First-three-characters-of-a-MAC-address-within/m-p/690837#M235287</guid>
      <dc:creator>leykmekoo</dc:creator>
      <dc:date>2024-06-17T21:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to Match the First three characters of a MAC address within a lookup table field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Match-the-First-three-characters-of-a-MAC-address-within/m-p/690838#M235288</link>
      <description>&lt;P&gt;Have you set up the Prefix field to match_type WILDCARD? See&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.2.1/Knowledge/Usefieldlookupstoaddinformationtoyourevents#Share_a_lookup_table_file_with_apps" target="_blank"&gt;Share a lookup table file with apps&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Sun, 16 Jun 2024 22:19:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Match-the-First-three-characters-of-a-MAC-address-within/m-p/690838#M235288</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2024-06-16T22:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to Match the First three characters of a MAC address within a lookup table field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Match-the-First-three-characters-of-a-MAC-address-within/m-p/690842#M235289</link>
      <description>&lt;P&gt;Yes, I've created a lookup definition and set the Match type as 'WILDCARD(Prefix)'. However, I'm still not getting results. When commenting out the lookup, I get results.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 16 Jun 2024 23:49:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Match-the-First-three-characters-of-a-MAC-address-within/m-p/690842#M235289</guid>
      <dc:creator>leykmekoo</dc:creator>
      <dc:date>2024-06-16T23:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to Match the First three characters of a MAC address within a lookup table field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Match-the-First-three-characters-of-a-MAC-address-within/m-p/690845#M235290</link>
      <description>&lt;P&gt;Does your lookup definition contain nnn* or just nnn - to use wildcard, the lookup itself should have an asterisk&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2024 00:56:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Match-the-First-three-characters-of-a-MAC-address-within/m-p/690845#M235290</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2024-06-17T00:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to Match the First three characters of a MAC address within a lookup table field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Match-the-First-three-characters-of-a-MAC-address-within/m-p/690922#M235302</link>
      <description>&lt;P&gt;Adding a wildcard to a 1000+ lookup table was a pain&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":face_without_mouth:"&gt;😶&lt;/span&gt;&amp;nbsp;but that seems to resolve the issue i was having.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt; It's a good lesson as well.&amp;nbsp;Thank you and everyone for your recommendations!!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2024 18:22:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Match-the-First-three-characters-of-a-MAC-address-within/m-p/690922#M235302</guid>
      <dc:creator>leykmekoo</dc:creator>
      <dc:date>2024-06-17T18:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to Match the First three characters of a MAC address within a lookup table field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Match-the-First-three-characters-of-a-MAC-address-within/m-p/690930#M235306</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/260146"&gt;@leykmekoo&lt;/a&gt;&amp;nbsp;A tip for the future&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| inputlookup your_lookup
| eval your_wildcard_field=your_wildcard_field."*"
| outputlookup your_lookup&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2024 22:28:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Match-the-First-three-characters-of-a-MAC-address-within/m-p/690930#M235306</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2024-06-17T22:28:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to Match the First three characters of a MAC address within a lookup table field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Match-the-First-three-characters-of-a-MAC-address-within/m-p/690938#M235310</link>
      <description>&lt;P&gt;Great! Thanks!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2024 02:02:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Match-the-First-three-characters-of-a-MAC-address-within/m-p/690938#M235310</guid>
      <dc:creator>leykmekoo</dc:creator>
      <dc:date>2024-06-18T02:02:43Z</dc:date>
    </item>
  </channel>
</rss>

