All Apps and Add-ons

How to read data from lookup file?

sbimizry
Engager

Hi, how to read data from the lookup file (.csv) using command lookup?
Lookup example:
FIELDS
field1
field2
field3
I try it: lookup file.csv FIELDS OUTPUT FIELDS AS newfield | table newfield but this not work, how I must write this search?
Thanks

0 Karma
1 Solution

woodcock
Esteemed Legend

The lookup command does not read data from a file, it correlates data. You have to have a field in your event whose values match the values of a field inside the lookup file. To truly read data from a lookup file, you use inputlookup like this:

| inputlookup <Your Lookup File Here>

View solution in original post

woodcock
Esteemed Legend

The lookup command does not read data from a file, it correlates data. You have to have a field in your event whose values match the values of a field inside the lookup file. To truly read data from a lookup file, you use inputlookup like this:

| inputlookup <Your Lookup File Here>
Get Updates on the Splunk Community!

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...