Splunk Search

How to use an index for a lookup

subhuman
New Member

Noob question.

I had about a dozen CSVs that had the same information on them but the columns were out of order. I imported them all into a new index and splunk sorted it out no problem. The information on the tables is for the most part static and I would like to use the lookup command and automatic lookups to enrich other indexes with the information in the new index. Is this possible or do I need to export the index as a csv and re-upload it as a lookup table?

Tags (1)
0 Karma

tiagofbmm
Influencer

Well one of the option is definitely outputlookup your current "index made of lookups" and the use the lookup command to enrich other data with it.

If you really want to stick with the index format, I'd suggest you to take a look at the join command:

https://docs.splunk.com/Documentation/Splunk/7.0.2/SearchReference/Join

0 Karma

tiagofbmm
Influencer

Please let me know if the answer was useful for you. If it was, accept it and upvote. If not, give us more input so we can help you with that

0 Karma

paulbannister
Communicator

Hi There,

You could quite possibly be looking for the inputlookup and outputlookup commands, if you were to write a search using the index that has your csv data in then you could use the above commands to essentially create a new lookup file to be used elsewhere as an automatic lookup

https://docs.splunk.com/Documentation/Splunk/7.0.2/SearchReference/Outputlookup

0 Karma
Get Updates on the Splunk Community!

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  🚀 Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Feel the Splunk Love: Real Stories from Real Customers

Hello Splunk Community,    What’s the best part of hearing how our customers use Splunk? Easy: the positive ...

Data Management Digest – November 2025

  Welcome to the inaugural edition of Data Management Digest! As your trusted partner in data innovation, the ...