I configured external lookup definition with a script I built. However, the lookup command fails with the following message.
Error in 'lookup' command: The lookup table 'mylookup' does not exist or is not available.
... | lookup mylookup myfield
[mylookup] external_cmd = get_lookup.py fields_list =Title,Genre,Country,imdbRating
I placed getlookup.py in $SPLUNKHOME/etc/apps/myapp/bin/.
What's wrong with the lookup definition?
(Splunk Ver: 6.5 / OS: Mac OS X)
Did you restart Splunk after you placed that file?
Does Splunk have access to get_lookup.py? The file perms might be overriding the dir perms.
Yes, I granted 755 to the py script. The owner is the same as the one who runs splunkd.
What is the permission of lookup definition (Private, App only, or Global) and which app did you execute lookup command in?
You're right. I created it in custom app with App permission but used the command at search app. Thank you.