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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...