Splunk Search

comparing data from index and input table

60150134
New Member

Hi Everyone,

Thanks for your support too.

I have indexed data of staff events from a source. One field in that data is "Surname".

I have an input table of all staff, field 1 is "Surname".

Please can you help me to report on all staff names from the input CSV that do not have events in the indexed data?

Thank you so much!

0 Karma

jpolvino
Builder

Something like this might help.

(your indexed search that returns Surname)
| stats count AS SurnameCount by Surname
| inputlookup staff_lookup.csv append=true
| chart sum(surnameCount) as abc by Surname
| eval abc=if(isnotnull(abc),abc,0)
| where abc=0

This uses a sentinel value concept, better explained here: https://conf.splunk.com/session/2015/conf2015-LookupTalk.pdf on slide 25

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