Splunk Search

Where do I place my CSV file to use the lookup command for my search?

dperry
Communicator

I have an event as shown below that reports the replication status

cn=host2:1636,cn=host1:1389,ibm-replicaGroup=default,CN=Policy1
ibm-replicationPendingChangeCount=0

cn=host2:1636,cn=host1:1389,ibm-replicaGroup=default,O=org1
ibm-replicationPendingChangeCount=0

I have a CSV file that lists the status codes:
Decvalue Value Hexvalue Brief Description
0 LDAP_SUCCESS 0 The request was successful
1 LDAP_OPERATIONS_ERROR 1 An operations error occurred.
2 LDAP_PROTOCOL_ERROR 2 A protocol violation was detected.
3 LDAP_TIMELIMIT_EXCEEDED 3 An LDAP time limit was exceeded.
4 LDAP_SIZELIMIT_EXCEEDED 4 An LDAP size limit was exceeded.
5 LDAP_COMPARE_FALSE 5 A compare operation returned false.

I want to use the Lookup command to refer to the CSV file to list the status description.

My search so far is this:

host=my host index=web_logging source="mypath/report.txt"

Question: Where do I put the CSV file? I have One Search Head and three Indexers.

Tags (2)
0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

If you have your own app, put the CSV in SPLUNK_HOME/etc/apps/myapp/lookups. Otherwise, put it in SPLUNK_HOME/etc/system/lookups.

---
If this reply helps you, Karma would be appreciated.

View solution in original post

0 Karma

richgalloway
SplunkTrust
SplunkTrust

If you have your own app, put the CSV in SPLUNK_HOME/etc/apps/myapp/lookups. Otherwise, put it in SPLUNK_HOME/etc/system/lookups.

---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

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