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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...