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!

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, ...