<?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 don't my custom lookups work after upgrading to 4.1? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-don-t-my-custom-lookups-work-after-upgrading-to-4-1/m-p/11062#M652</link>
    <description>&lt;P&gt;I met this problem too.&lt;/P&gt;

&lt;P&gt;The lookup works in the flashtimeline view of my app but does NOT work in any other of my savedsearch/dashboard/view of that app. The error message is the same: The lookup table xxxxx does not exist. &lt;/P&gt;

&lt;P&gt;By referring the question and answer, I've solved my problem by using "export = system" of [lookups/...] and [transforms/...]. Their original values are "export = none".&lt;/P&gt;

&lt;P&gt;I am still confusing why it should export the objects (lookup file and transform) to "system"  for a lookup which is only supposed to be used in its app?&lt;/P&gt;</description>
    <pubDate>Wed, 07 Apr 2010 17:09:29 GMT</pubDate>
    <dc:creator>William</dc:creator>
    <dc:date>2010-04-07T17:09:29Z</dc:date>
    <item>
      <title>Why don't my custom lookups work after upgrading to 4.1?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-don-t-my-custom-lookups-work-after-upgrading-to-4-1/m-p/11059#M649</link>
      <description>&lt;P&gt;I recently upgrade a test system to Splunk 4.1, and my lookups are all giving me the following error:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
  &lt;P&gt;&lt;STRONG&gt;The lookup table 'MyFieldLookup' does not exist. It is referenced by configuration 'my_source_type'.&lt;/STRONG&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;I get this error appears is a flashy read box on &lt;EM&gt;all&lt;/EM&gt; searches in &lt;EM&gt;any&lt;/EM&gt; app except for the app where &lt;CODE&gt;MyFieldLookup&lt;/CODE&gt; is defined.  (&lt;CODE&gt;MyFieldLookup&lt;/CODE&gt; is exported globally.)  This occurs even with searches that are not using any fields related to the defined lookup, even if when searching on   sourcetypes that are not associated with the lookup.&lt;/P&gt;

&lt;P&gt;Are there a known issues with Lookups beyond what's listed &lt;A href="http://www.splunk.com/base/Documentation/4.1/ReleaseNotes/Knownissues" rel="nofollow"&gt; Known issues&lt;/A&gt; page? (I tried changing the EOLs from CR/LF to LF, but that had no effect, based on the listed SPL-29434)&lt;/P&gt;

&lt;P&gt;I have a single lookup defined which was working fine on Splunk 4.0.10.&lt;/P&gt;

&lt;P&gt;I suspect that there could be some kind of permissions issue here, since the lookup works when I'm within the context of that app, but as soon as I search from a different app (which is the normal case based on my setup) then I get the error shown above.  I've double checked all my permissions, and even added an explicit entry for &lt;CODE&gt;[lookups/my_lookup_file.csv]&lt;/CODE&gt;, but nothing seems to make a difference.&lt;/P&gt;

&lt;P&gt;If I run:  &lt;CODE&gt;btool transforms list --app=&amp;lt;app-1&amp;gt; MyFieldLookup&lt;/CODE&gt;, (where &lt;CODE&gt;app-1&lt;/CODE&gt; is where the config is defined) I see the configuration entry, but if I run the command with &lt;CODE&gt;--app=&amp;lt;app-2&amp;gt;&lt;/CODE&gt; (the app that most frequently uses the lookup), then there is no output, so it would appear that splunk cannot see that entry (or any other entry in the transforms.conf file)&lt;/P&gt;

&lt;P&gt;My &lt;CODE&gt;default.meta&lt;/CODE&gt; includes:&lt;/P&gt;

&lt;PRE&gt;
[transforms]
access = read : [ * ], write : [ admin ]
owner = nobody
export = system
&lt;/PRE&gt;

&lt;P&gt;So the &lt;CODE&gt;transforms&lt;/CODE&gt; entries should be visible from other apps.&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
  &lt;P&gt;&lt;EM&gt;Update:&lt;/EM&gt;  I found out that &lt;CODE&gt;btool&lt;/CODE&gt; seems to behave differently if you specify a user.  For example, if I run &lt;CODE&gt;btool transforms list --app=&amp;lt;app-1&amp;gt; --user=someuser MyFieldLookup&lt;/CODE&gt;, now I get the results I was expecting.  So my problem wasn't with my &lt;CODE&gt;transforms.conf&lt;/CODE&gt; entry or it's permissions.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Wed, 07 Apr 2010 05:00:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-don-t-my-custom-lookups-work-after-upgrading-to-4-1/m-p/11059#M649</guid>
      <dc:creator>Lowell</dc:creator>
      <dc:date>2010-04-07T05:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: Why don't my custom lookups work after upgrading to 4.1?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-don-t-my-custom-lookups-work-after-upgrading-to-4-1/m-p/11060#M650</link>
      <description>&lt;P&gt;Lookups and searchscripts are now permissioned in the &lt;CODE&gt;metadata/*.meta&lt;/CODE&gt; file(s). It should work with a stanza like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[lookups]
export=system
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[lookups/MyFieldLookup]
export=system
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You should use the &lt;CODE&gt;transforms.conf&lt;/CODE&gt;-defined name of the lookup to qualify it, not the file name. &lt;/P&gt;

&lt;P&gt;Incidentally, I would use only local.meta for my own apps, not default.meta, or you'll wind up having to manage two files if you edit permissions through the GUI.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2010 05:10:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-don-t-my-custom-lookups-work-after-upgrading-to-4-1/m-p/11060#M650</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-04-07T05:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: Why don't my custom lookups work after upgrading to 4.1?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-don-t-my-custom-lookups-work-after-upgrading-to-4-1/m-p/11061#M651</link>
      <description>&lt;P&gt;I think you are mixing two things here. I think when you said "&lt;CODE&gt;[lookups/MyFieldLookup]&lt;/CODE&gt;", you mean "&lt;CODE&gt;[transforms/MyFieldLookup]&lt;/CODE&gt;". The &lt;CODE&gt;[lookups/...]&lt;/CODE&gt; entries seem to be for specific files in the &lt;CODE&gt;lookups&lt;/CODE&gt; folder, not the name of the lookup (which is in the transforms file).  I think my actual problem was I was some how missing the &lt;CODE&gt;export=system&lt;/CODE&gt; in my &lt;CODE&gt;[lookups]&lt;/CODE&gt; entry.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2010 05:42:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-don-t-my-custom-lookups-work-after-upgrading-to-4-1/m-p/11061#M651</guid>
      <dc:creator>Lowell</dc:creator>
      <dc:date>2010-04-07T05:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: Why don't my custom lookups work after upgrading to 4.1?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-don-t-my-custom-lookups-work-after-upgrading-to-4-1/m-p/11062#M652</link>
      <description>&lt;P&gt;I met this problem too.&lt;/P&gt;

&lt;P&gt;The lookup works in the flashtimeline view of my app but does NOT work in any other of my savedsearch/dashboard/view of that app. The error message is the same: The lookup table xxxxx does not exist. &lt;/P&gt;

&lt;P&gt;By referring the question and answer, I've solved my problem by using "export = system" of [lookups/...] and [transforms/...]. Their original values are "export = none".&lt;/P&gt;

&lt;P&gt;I am still confusing why it should export the objects (lookup file and transform) to "system"  for a lookup which is only supposed to be used in its app?&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2010 17:09:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-don-t-my-custom-lookups-work-after-upgrading-to-4-1/m-p/11062#M652</guid>
      <dc:creator>William</dc:creator>
      <dc:date>2010-04-07T17:09:29Z</dc:date>
    </item>
    <item>
      <title>Re: Why don't my custom lookups work after upgrading to 4.1?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-don-t-my-custom-lookups-work-after-upgrading-to-4-1/m-p/11063#M653</link>
      <description>&lt;P&gt;You are correct, you shouldn't have to export your objects to use them within that app.  In my original scenario, my lookups worked within the app they were defined in, but not from another app.  You may want to check your settings again, it's really easy to overlook some of the permissions settings.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Apr 2010 00:21:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-don-t-my-custom-lookups-work-after-upgrading-to-4-1/m-p/11063#M653</guid>
      <dc:creator>Lowell</dc:creator>
      <dc:date>2010-04-08T00:21:55Z</dc:date>
    </item>
    <item>
      <title>Re: Why don't my custom lookups work after upgrading to 4.1?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-don-t-my-custom-lookups-work-after-upgrading-to-4-1/m-p/11064#M654</link>
      <description>&lt;P&gt;Since I posted my last comment.  I too am running to an issue where I can't access an object shared at the application level.  The only way to access it seems to be to set the access-level to global... very weird.  (I'm seeing the same behavior in Splunk 4.0, BTW)&lt;/P&gt;</description>
      <pubDate>Thu, 08 Apr 2010 01:42:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-don-t-my-custom-lookups-work-after-upgrading-to-4-1/m-p/11064#M654</guid>
      <dc:creator>Lowell</dc:creator>
      <dc:date>2010-04-08T01:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: Why don't my custom lookups work after upgrading to 4.1?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-don-t-my-custom-lookups-work-after-upgrading-to-4-1/m-p/11065#M655</link>
      <description>&lt;P&gt;&lt;EM&gt;For the simplicity, let me consolidate the answers and comments here:&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;NOTICE&lt;/STRONG&gt;&lt;/EM&gt;&lt;STRONG&gt;&lt;/STRONG&gt;:  Splunk 4.1.1 and later add a migration note about these permissions changes when during the upgrade.  So hopefully fewer users will run into this issue.  The migration notes point your to the following docs &lt;A href="http://www.splunk.com/base/Documentation/4.1.1/Developer/Step5SetPermissions#make_objects_globally_available" rel="nofollow"&gt;page&lt;/A&gt;.&lt;/P&gt;

&lt;P&gt;In Splunk 4.1. it is now possible to set permissions on individual lookup tables (aka &lt;CODE&gt;.csv&lt;/CODE&gt; files) in the &lt;CODE&gt;lookups&lt;/CODE&gt; folder of an app.  Because of this new control in Splunk 4.1, you have the option to grant or restrict access to these files.  There are actually 3 different sets of permissions to control access to the lookups now.&lt;/P&gt;

&lt;P&gt;You basically have two options:  (1) Disable your lookups to make the error message go away, and use the &lt;CODE&gt;lookup&lt;/CODE&gt; search operator instead.  Or (2), make your transforms and lookups global (or otherwise tweak your permissions till you get it all working again...)&lt;/P&gt;

&lt;H2&gt;Option 1:  Disabling your automatic lookup&lt;/H2&gt;

&lt;P&gt;Assuming your have sensitive info in your lookup file, you can avoid this error message by  disabling (comment-out) or changing the permissions of your &lt;CODE&gt;LOOKUP-&amp;lt;class&amp;gt;&lt;/CODE&gt; entry in your &lt;CODE&gt;props.conf&lt;/CODE&gt; file.  You can do this from the UI via &lt;EM&gt;Manager » Lookups » Automatic lookups&lt;/EM&gt;, then find your stanza name (which will be based on your source, sourcetype, or host and the name of your &lt;CODE&gt;LOOKUP&lt;/CODE&gt; line) and change the permission using the &lt;EM&gt;Permissions&lt;/EM&gt; link.&lt;/P&gt;

&lt;P&gt;If you prefer editing config files directly, you can also set your permissions in &lt;CODE&gt;metadata/local.meta&lt;/CODE&gt; with an entry like this:&lt;/P&gt;

&lt;PRE&gt;
[props/my_sourcetype/LOOKUP-MyFieldLookup]
access = read : [ *  ], write : [ admin ]
export = none
&lt;/PRE&gt;

&lt;P&gt;Keep in mind, that if you choose to completely remove (or comment out) your &lt;CODE&gt;LOOKUP&lt;/CODE&gt; entries, rather than change the permissions, then you will need to use the &lt;CODE&gt;lookup&lt;/CODE&gt; search command now, since the lookup fields will no longer be "automatic".&lt;/P&gt;

&lt;H2&gt;Option 2:  Enable global lookup access&lt;/H2&gt;

&lt;P&gt;You can go back to the globally-available behavior of Splunk 4.0 by setting your lookups permissions using the UI (&lt;EM&gt;Manger &amp;gt;&amp;gt; Lookups &amp;gt;&amp;gt; Lookup Table files&lt;/EM&gt;, then click on the &lt;EM&gt;Permissions&lt;/EM&gt; link).&lt;/P&gt;

&lt;P&gt;This can also be done by updating the &lt;CODE&gt;metadata/local.meta&lt;/CODE&gt; file manually.  To allow all access to all csv files from any application, add an entry like so:&lt;/P&gt;

&lt;PRE&gt;
[lookups]
export = system
&lt;/PRE&gt;

&lt;P&gt;Or, for a single lookup file:&lt;/P&gt;

&lt;PRE&gt;
[lookups/my_lookup_file.csv]
export = system
&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;NOTE:&lt;/STRONG&gt;  You can also specify permission to the Lookup definition (based on the &lt;CODE&gt;transforms.conf&lt;/CODE&gt; name), in same way as in Splunk 4.0.  So if you want your lookup to be global, you would use something like:&lt;/P&gt;

&lt;PRE&gt;
[tranforms/MyFieldLookup]
export=system
&lt;/PRE&gt;

&lt;P&gt;Again, this can also be done from the UI.  In Splunk 4.1, navigate to &lt;EM&gt;Manger &amp;gt;&amp;gt; Lookups &amp;gt;&amp;gt; Lookup definitions&lt;/EM&gt;, then click the &lt;EM&gt;Permissions&lt;/EM&gt; link.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Apr 2010 02:51:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-don-t-my-custom-lookups-work-after-upgrading-to-4-1/m-p/11065#M655</guid>
      <dc:creator>Lowell</dc:creator>
      <dc:date>2010-04-13T02:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: Why don't my custom lookups work after upgrading to 4.1?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-don-t-my-custom-lookups-work-after-upgrading-to-4-1/m-p/11066#M656</link>
      <description>&lt;P&gt;I don't think the export is working properly globally. To use your example, if I do&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[lookups/my_lookup_file.csv]
export = system
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;in my &lt;STRONG&gt;local.meta&lt;/STRONG&gt; file for the app, the error message disappears as noted. However, as soon I move to another app that doesn't even use the my_lookup_file.csv and its associated &lt;STRONG&gt;props.conf&lt;/STRONG&gt; and &lt;STRONG&gt;transforms.conf&lt;/STRONG&gt; files, the error:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;The lookup table 'MyFieldLookup' does not exist. It is referenced by configuration 'my_source_type'.&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;returns when loading a dashboard from within another app. The workaround is to comment out the lookup entry in &lt;STRONG&gt;props.conf&lt;/STRONG&gt; to disable automatic lookups for this lookup. You could still call the lookup explicitly within a search using the lookup command. I have not made my transforms global within local.meta, which may solve this, because I do not want to make these entries global.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2010 06:57:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-don-t-my-custom-lookups-work-after-upgrading-to-4-1/m-p/11066#M656</guid>
      <dc:creator>ndoshi</dc:creator>
      <dc:date>2010-04-14T06:57:40Z</dc:date>
    </item>
    <item>
      <title>Re: Why don't my custom lookups work after upgrading to 4.1?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-don-t-my-custom-lookups-work-after-upgrading-to-4-1/m-p/11067#M657</link>
      <description>&lt;P&gt;Yes, thats the same issue I was seeing (I updated the question to make the point about &lt;EM&gt;any&lt;/EM&gt; search no matter how unrelated results in this error message.)   As you point out, you certainly do have two choices.  Either make it all global, or hide the transformer section and remove the lookups altogether and do it via the search &lt;CODE&gt;lookup&lt;/CODE&gt; command.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2010 07:57:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-don-t-my-custom-lookups-work-after-upgrading-to-4-1/m-p/11067#M657</guid>
      <dc:creator>Lowell</dc:creator>
      <dc:date>2010-04-14T07:57:15Z</dc:date>
    </item>
    <item>
      <title>Re: Why don't my custom lookups work after upgrading to 4.1?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-don-t-my-custom-lookups-work-after-upgrading-to-4-1/m-p/11068#M658</link>
      <description>&lt;P&gt;I updated my &lt;EM&gt;consolidated&lt;/EM&gt; answer to include your input.  Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2010 08:49:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-don-t-my-custom-lookups-work-after-upgrading-to-4-1/m-p/11068#M658</guid>
      <dc:creator>Lowell</dc:creator>
      <dc:date>2010-04-14T08:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: Why don't my custom lookups work after upgrading to 4.1?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-don-t-my-custom-lookups-work-after-upgrading-to-4-1/m-p/11069#M659</link>
      <description>&lt;P&gt;I just wanted to add one more piece of detail to Lowell's option 2. If you simply do:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[lookups/my_lookup_file.csv]
export = system
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;within an app's local.meta file for automatic lookup, this will let you configure props.conf lookup within the app without issues. This assumes that you will only use this app and not use any other app.&lt;/P&gt;

&lt;P&gt;As soon as you move to another app (e.g., start using the search app and then use the Windows app), you will get the error below within the other app's dashboards.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;The lookup table 'MyFieldLookup' does not exist. It is referenced by configuration 'my_source_type'.&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;If you want to avoid that, you have to enable your corresponding transforms to be exported to global. In the context of this example, the original app's local.meta file should be:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[lookups/my_lookup_file.csv]
export = system

[tranforms/MyFieldLookup]
export = system
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;After doing this, you can use any other app within Splunk and not receive the error.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Apr 2010 01:12:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-don-t-my-custom-lookups-work-after-upgrading-to-4-1/m-p/11069#M659</guid>
      <dc:creator>ndoshi</dc:creator>
      <dc:date>2010-04-16T01:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: Why don't my custom lookups work after upgrading to 4.1?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-don-t-my-custom-lookups-work-after-upgrading-to-4-1/m-p/11070#M660</link>
      <description>&lt;P&gt;With 6.1.1, for a dynamic lookup you have to export both &lt;CODE&gt;[transforms]&lt;/CODE&gt; and &lt;CODE&gt;[searchscripts]&lt;/CODE&gt; to system in order to make your dynamic lookup usable across apps&lt;/P&gt;</description>
      <pubDate>Sat, 28 Jun 2014 22:54:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-don-t-my-custom-lookups-work-after-upgrading-to-4-1/m-p/11070#M660</guid>
      <dc:creator>dwaddle</dc:creator>
      <dc:date>2014-06-28T22:54:23Z</dc:date>
    </item>
  </channel>
</rss>

