Splunk Search

How to download existing lookup file? and how to add new row and modify existing lookup file table?

pacifikn
Communicator

How to download existing lookup file? and how to add new row and modify existing lookup file table?

Tags (1)
1 Solution

alonsocaio
Contributor

If the new row you need to add will be composed by some search result you can use something like:

| inputlookup my_lookup.csv
| YOUR SEARCH HERE
| outputlookup my_lookup.csv append=true

There is also an app on Splunk Base that allows you to edit lookup files: https://splunkbase.splunk.com/app/1724/

Usually lookup files are stored on $SPLUNK_HOME/etc/system/lookups/ or $SPLUNK_HOME/etc/<app_name>/lookups/. From there you can also copy the files or edit them.

One other way you can use to download your lookup files is to use | inputlookup and then go to Export > CSV.

View solution in original post

alonsocaio
Contributor

If the new row you need to add will be composed by some search result you can use something like:

| inputlookup my_lookup.csv
| YOUR SEARCH HERE
| outputlookup my_lookup.csv append=true

There is also an app on Splunk Base that allows you to edit lookup files: https://splunkbase.splunk.com/app/1724/

Usually lookup files are stored on $SPLUNK_HOME/etc/system/lookups/ or $SPLUNK_HOME/etc/<app_name>/lookups/. From there you can also copy the files or edit them.

One other way you can use to download your lookup files is to use | inputlookup and then go to Export > CSV.

to4kawa
Ultra Champion
0 Karma
Get Updates on the Splunk Community!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...