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 Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...