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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...