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!

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