Splunk Search

showing null values in a lookup table

rdevine
Path Finder

I have lines in multiple lookup tables that look like

lista,listb,listc,listd
a1,,c1,d1
,,b2,c2,d2
a3,b3,c3,d3

when i do a lookup on these and try to show all of the results it just eats up the lines in the table so i see

a1,b2,c1,d1
a3,b3,c2,d2
empty,empty,c3,d3

is there a way to configure lookup tables to populate a value even if there is nothing there?

Tags (1)

gvhees
Explorer

Hi,

Yes, you can use the "fillnull"command like:

|| fillnull value="empty"

the output should now show:
a1,empty,c1,d1
empty,b2,c2,d2
a3,b3,c3,d3

Hope it helps.

Get Updates on the Splunk Community!

Index This | I’m short for "configuration file.” What am I?

May 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with a Special ...

New Articles from Academic Learning Partners, Help Expand Lantern’s Use Case Library, ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Your Guide to SPL2 at .conf24!

So, you’re headed to .conf24? You’re in for a good time. Las Vegas weather is just *chef’s kiss* beautiful in ...