Splunk Search

Displaying 'Unknown' when Lookup fail to find a match

DotTest37
Path Finder

I have an Automatic Lookup working just fine.
Some of the values Im matching doesn't exist yet on the CSV table (they are populated once a day).
Is there any way to display UNKNOWN as a value for the field when the lookup doesnt exist on the table?
For example, if my csv lookup table looks like:
Name -- SSN

And Sometimes I dont have the Name for a SSN until the next day, so I need to mark the field as 'Unknown' when the search returns a SSN that I dont have match for the name yet.

Thanks!

Tags (2)
1 Solution

carmackd
Communicator

Manager >> Lookups >> Lookup Definition >>

check the advanced options checkbox

In the Minimum matches text box add:
1

In the Default matches text box add:
UNKNOWN

then save

View solution in original post

carmackd
Communicator

Manager >> Lookups >> Lookup Definition >>

check the advanced options checkbox

In the Minimum matches text box add:
1

In the Default matches text box add:
UNKNOWN

then save

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