Splunk Search

Lookup CSV location

tanyongjin
Explorer

Hi,

I would like to ask if the CSV file that is being referenced to in the search command can be from any directory in the machine or must it be within the Splunk folder?

Tags (1)
1 Solution

adonio
Ultra Champion

hello tanyongjin,

lookup up files have to be under splunk structure
when you upload via gui, you pick the app that the lookup file will be under
when you create one with | outpulookup command it goes to system
Windows location
$SPLUNK_HOME\Splunk\etc\system\lookups
$SPLUNK_HOME\etc\YourAPP\search\lookups
Nix location
$SPLUNK_HOME/Splunk/etc/system/lookups
$SPLUNK_HOME/etc/YourApp/apps/search\lookups

hope it helps

View solution in original post

adonio
Ultra Champion

hello tanyongjin,

lookup up files have to be under splunk structure
when you upload via gui, you pick the app that the lookup file will be under
when you create one with | outpulookup command it goes to system
Windows location
$SPLUNK_HOME\Splunk\etc\system\lookups
$SPLUNK_HOME\etc\YourAPP\search\lookups
Nix location
$SPLUNK_HOME/Splunk/etc/system/lookups
$SPLUNK_HOME/etc/YourApp/apps/search\lookups

hope it helps

tanyongjin
Explorer

hi adonio,

Thank you for your reply. CSV files can be uploaded via gui to be referenced? [inputcsv function]

I was thinking of doing copy-paste but due to administrator permissions, I am have problems accessing the directory.

Could inputlookup work as an alternative?

Cheers.

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 GA in US-AWS!

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