Splunk Search

CSV lookups failing

strive
Influencer

Hi,

We have a CSV file containing names and ids. Same name can be present for multiple ids.

Name  Id
A     1
B     2
B     20
B     200
C     3
D     78
E     4
E     34
E     57
F     100

In logs we get Id. We lookup CSV file and get Name and summarize this data. right now our logs contain only id 2 and 4.
Assume that there are 100 events in a time span which we are summarizing. The lookup fails for some events even though it is the same id for which the lookup was successful. Sometimes it works and sometimes it fails. We see null values for Name field in our summary index.

Under what circumstances the lookup fails? The search is scheduled and it runs at scheduled time.

Thanks

Strive

Tags (1)
0 Karma

lguinn2
Legend

Is the field extraction correct in all the events? If the field extraction is working properly for only some of the events, the lookup would work only for those events.

yoursearchhere
| lookupcmdhere

Run this in verbose mode. Choose "select and show in results" for the Name and Id fields, so that the fields show up beneath the events. This may show you what is going wrong...

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