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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...