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
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...

Splunk Community Badges!

  Hey everyone! Ready to earn some serious bragging rights in the community? Along with our existing badges ...

[Puzzles] Solve, Learn, Repeat: Matching cron expressions

This puzzle (first published here) is based on matching timestamps to cron expressions.All the timestamps ...