Splunk Search

Lookup fails unless using a table

klhogan
New Member

The query below produces the results expected, but if I remove the "table PSID" section (bolded) it fails, saying 22 errors were generated while executing. PSID is a parsed field, bolded in the event record shown.

"RA_GENERATED" | table PSID | lookup LocationLookup.csv PeopleSoftId AS PSID OUTPUT Brand

Event record:
1/16/20 11:23:09.989 AM strong text16 Jan 2020 11:23:09:989 | WARN | K320LE100005 | 1019178 | XXXR01 | MOSLoggingAspect | - RA_Generated 111 111 111| LangCode en| CountryCode USA

0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

It sounds like the lookup file is not getting distributed to the indexers. One of the 22 error messages should confirm that.

The table command forces the query to be completed by the search head from that point and the SH is where the lookup file resides.

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

View solution in original post

richgalloway
SplunkTrust
SplunkTrust

It sounds like the lookup file is not getting distributed to the indexers. One of the 22 error messages should confirm that.

The table command forces the query to be completed by the search head from that point and the SH is where the lookup file resides.

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

klhogan
New Member

I think you're right. Adding a local=true to the lookup seems to work. Thanks!

0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

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