Knowledge Management

Getting errors when using outputlookup

bigchungusfan55
Engager

I am having issues trying to outputlookup to a new empty KV Store lookup table I made. When I try to run the following search, I get this error: 

Error in 'outputlookup' command: Lookup failed because collection '<collection>' in app 'SplunkEnterpriseSecuritySuite' does not exist, or user '<username>' does not have read access.

| makeresults
| eval <field_1>="test"
| eval <field_2>="test"
| eval <field_3>="test"
| eval <field_4>="test"
| fields - _time
| outputlookup <collection>

I redacted the actual data I am using, but it is formatted the same way as above. My KV Store file has global sharing and everyone can read/write, for testing purposes.

What is wrong here and what can I do to fix this?

Labels (1)
Tags (1)
0 Karma
1 Solution

bigchungusfan55
Engager

It seems that the collections.conf was not properly configured when I made the collection. I was under the assumption that the Splunk app for lookup file editing created a completed collections.conf when creating a lookup table using the tool (this was my first time trying it for this purpose). I have fixed the configuration file and successfully resolved the issue.

View solution in original post

bigchungusfan55
Engager

It seems that the collections.conf was not properly configured when I made the collection. I was under the assumption that the Splunk app for lookup file editing created a completed collections.conf when creating a lookup table using the tool (this was my first time trying it for this purpose). I have fixed the configuration file and successfully resolved the issue.

PickleRick
SplunkTrust
SplunkTrust

Adding to what's already been said - are you sure you're in the same app context as you created your collection in?

0 Karma

thahir
Communicator

Hi @bigchungusfan55 ,

Please do the following check to find and fix the issue

1. check and confirm that the KV store collection exists

2. Check where the KV Store Lookup is defined

3. Check the permission for the lookup

4. check lookup defintion and collection configuration.

0 Karma

livehybrid
SplunkTrust
SplunkTrust

Hi @bigchungusfan55 

Have you created the actual collections.conf collection stanza as well as creating the lookup definition?

It sounds like either the name in the definition of the lookup (which is where you match then name you use after outputlookup/inputlookup/lookup) is incorrect, or the collection itself does not exist.

Please can you review this and let us know?

🌟 Did this answer help you? If so, please consider:

  • Adding karma to show it was useful
  • Marking it as the solution if it resolved your issue
  • Commenting if you need any clarification

Your feedback encourages the volunteers in this community to continue contributing

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Did you put <collection> in a collections.conf file, distribute it to all SHs, and restart Splunk?  Make sure the collections.conf file defines each field you want to use.

---
If this reply helps you, Karma would be appreciated.
0 Karma

HiramMann
Loves-to-Learn

I’m thinking that this might be the same issue.

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...

Data Persistence in the OpenTelemetry Collector

This blog post is part of an ongoing series on OpenTelemetry. What happens if the OpenTelemetry collector ...

Thanks for the Memories! Splunk University, .conf25, and our Community

Thank you to everyone in the Splunk Community who joined us for .conf25, which kicked off with our iconic ...