<?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: Not getting field automatically from lookup table in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Not-getting-field-automatically-from-lookup-table/m-p/151340#M42402</link>
    <description>&lt;P&gt;Actually, the correct thing to do is to move it all (inputs.conf, props.conf, transforms.conf) into your own app in a location like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$SPLUNK_HOME/etc/apps/MyApp/default
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can modify it afterwards to give it global app permissions so it works everywhere.&lt;/P&gt;</description>
    <pubDate>Fri, 17 Jul 2015 05:49:16 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2015-07-17T05:49:16Z</dc:date>
    <item>
      <title>Not getting field automatically from lookup table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Not-getting-field-automatically-from-lookup-table/m-p/151336#M42398</link>
      <description>&lt;P&gt;I have a file: racf_username.csv located in /opt/splunk/etc/system/lookups which looks like;&lt;BR /&gt;
racf,username&lt;BR /&gt;
A123456,A Name&lt;BR /&gt;
B123456, Another Name&lt;BR /&gt;
.&lt;BR /&gt;
.&lt;BR /&gt;
As regards permissions, the table is updated nightly from a server and shows No Owner and the app being System.&lt;BR /&gt;
Everyone can read but only admin can write.&lt;/P&gt;

&lt;P&gt;In transforms.conf located in /opt/splunk/etc/system/local is the following:&lt;BR /&gt;
[racf_username]&lt;BR /&gt;
filename=racf_username.csv&lt;BR /&gt;
max_matches=1&lt;BR /&gt;
min_matches=1&lt;BR /&gt;
default_match=Unknown&lt;/P&gt;

&lt;P&gt;In props.conf located in /opt/splunk/etc/system/local is the following:&lt;BR /&gt;
[sourcetype::MySourceType]&lt;BR /&gt;
LOOKUP_racftousernames = racf_username racf OUTPUT username&lt;/P&gt;

&lt;P&gt;However, a simple search such as:&lt;BR /&gt;
sourcetype="MySourceType" | table racf, username     does not display any usernames&lt;/P&gt;

&lt;P&gt;If instead I use:&lt;BR /&gt;
sourcetype="MySourceType" | lookup racf_username racf OUTPUT username | table racf, username&lt;BR /&gt;
then everything works fine. I just don't get the automatically filled in username field.&lt;/P&gt;

&lt;P&gt;Any idea how to get this to work automatically?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:47:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Not-getting-field-automatically-from-lookup-table/m-p/151336#M42398</guid>
      <dc:creator>RVDowning</dc:creator>
      <dc:date>2020-09-28T17:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: Not getting field automatically from lookup table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Not-getting-field-automatically-from-lookup-table/m-p/151337#M42399</link>
      <description>&lt;P&gt;I think you want to replace the underscore in props.conf with a hyphen. It should be &lt;CODE&gt;LOOKUP-racftousernames&lt;/CODE&gt; not &lt;CODE&gt;LOOKUP_racftousernames&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Oct 2014 18:52:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Not-getting-field-automatically-from-lookup-table/m-p/151337#M42399</guid>
      <dc:creator>aweitzman</dc:creator>
      <dc:date>2014-10-03T18:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: Not getting field automatically from lookup table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Not-getting-field-automatically-from-lookup-table/m-p/151338#M42400</link>
      <description>&lt;P&gt;Changing the underscore to a hyphen made no difference.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Oct 2014 19:46:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Not-getting-field-automatically-from-lookup-table/m-p/151338#M42400</guid>
      <dc:creator>RVDowning</dc:creator>
      <dc:date>2014-10-03T19:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: Not getting field automatically from lookup table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Not-getting-field-automatically-from-lookup-table/m-p/151339#M42401</link>
      <description>&lt;P&gt;I redid everything using the web interface instead of editing the files directly and it worked for User admin and App search.  And it worked in search.  I then changed the permissions to make sharing global and it worked for a regular user logon in App search.  &lt;/P&gt;

&lt;P&gt;I tested it in a couple of dashboards and it seems to work for all users and perhaps all apps.  But the props.conf and transforms.conf files are in the directory /opt/splunk/etc/apps/search/local.  I don't understand how other apps are able to work when these conf files are in this directory.  It seems to me that they should be in the directory listed in my original post, namely /opt/splunk/etc/system/local to be non app specific as opposed to being in the search app directory.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Oct 2014 20:18:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Not-getting-field-automatically-from-lookup-table/m-p/151339#M42401</guid>
      <dc:creator>RVDowning</dc:creator>
      <dc:date>2014-10-03T20:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: Not getting field automatically from lookup table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Not-getting-field-automatically-from-lookup-table/m-p/151340#M42402</link>
      <description>&lt;P&gt;Actually, the correct thing to do is to move it all (inputs.conf, props.conf, transforms.conf) into your own app in a location like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$SPLUNK_HOME/etc/apps/MyApp/default
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can modify it afterwards to give it global app permissions so it works everywhere.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jul 2015 05:49:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Not-getting-field-automatically-from-lookup-table/m-p/151340#M42402</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-07-17T05:49:16Z</dc:date>
    </item>
  </channel>
</rss>

