<?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: Why doesn't my new lookup field show up in search? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-doesn-t-my-new-lookup-field-show-up-in-search/m-p/48843#M11682</link>
    <description>&lt;P&gt;Is the sourcetype for these events really "dhcpd_username"? The stanza in props.conf says it is but my guess is that the sourcetype is something else - in that case you need to change props.conf to reflect that. So for instance if sourcetype for these events is "dhcp":&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[dhcp]
LOOKUP-user = dhcpd_username src_mac OUTPUTNEW user
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 26 Jul 2011 21:23:43 GMT</pubDate>
    <dc:creator>Ayn</dc:creator>
    <dc:date>2011-07-26T21:23:43Z</dc:date>
    <item>
      <title>Why doesn't my new lookup field show up in search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-doesn-t-my-new-lookup-field-show-up-in-search/m-p/48842#M11681</link>
      <description>&lt;P&gt;Hi, I am trying to tie mac addresses to username based on DHCP data. I have followed all the online documentation but the new field is not showing up in the field picker in the search app. I have tried checking the permissions (they're correct) and restarting splunk to no effect. Here is a sample of the DHCP data:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;Jul 26 15:27:42 130.184.6.37 Jul 26 15:27:42 130.184.251.34 dhcpd: DHCPACK on 172.17.158.212 to 00:0a:5e:02:c4:58 (NetworkJack) via eth0.158&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;Here is a sample of the lookup file and the relevant .conf bits:&lt;/P&gt;

&lt;P&gt;**Lookup CSV:&lt;BR /&gt;
in /opt/splunk/etc/apps/search/lookups/dhcpd_username.csv&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;src_mac,user&lt;/P&gt;

&lt;P&gt;58:b0:35:fd:c8:d5,sean&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;**Transforms.conf&lt;BR /&gt;
in /opt/splunk/etc/apps/search/local/transforms.conf&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;[dhcpd_username]&lt;/P&gt;

&lt;P&gt;filename = dhcpd_username.csv&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;**Props.conf&lt;BR /&gt;
in /opt/splunk/etc/apps/search/local/props.conf&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;[dhcpd_username]&lt;/P&gt;

&lt;P&gt;LOOKUP-user = dhcpd_username src_mac OUTPUTNEW user&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;And to get src_mac I am using the app Linux DHCP by araitz.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:45:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-doesn-t-my-new-lookup-field-show-up-in-search/m-p/48842#M11681</guid>
      <dc:creator>sab057</dc:creator>
      <dc:date>2020-09-28T09:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: Why doesn't my new lookup field show up in search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-doesn-t-my-new-lookup-field-show-up-in-search/m-p/48843#M11682</link>
      <description>&lt;P&gt;Is the sourcetype for these events really "dhcpd_username"? The stanza in props.conf says it is but my guess is that the sourcetype is something else - in that case you need to change props.conf to reflect that. So for instance if sourcetype for these events is "dhcp":&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[dhcp]
LOOKUP-user = dhcpd_username src_mac OUTPUTNEW user
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 26 Jul 2011 21:23:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-doesn-t-my-new-lookup-field-show-up-in-search/m-p/48843#M11682</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2011-07-26T21:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: Why doesn't my new lookup field show up in search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-doesn-t-my-new-lookup-field-show-up-in-search/m-p/48844#M11683</link>
      <description>&lt;P&gt;Thanks! That was it. I knew it had to be something simple. I think I was assuming that had to match the transforms.conf.  Great!!&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2011 21:45:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-doesn-t-my-new-lookup-field-show-up-in-search/m-p/48844#M11683</guid>
      <dc:creator>sab057</dc:creator>
      <dc:date>2011-07-26T21:45:47Z</dc:date>
    </item>
  </channel>
</rss>

