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!

Monitoring Postgres with OpenTelemetry

Behind every business-critical application, you’ll find databases. These behind-the-scenes stores power ...

Mastering Synthetic Browser Testing: Pro Tips to Keep Your Web App Running Smoothly

To start, if you're new to synthetic monitoring, I recommend exploring this synthetic monitoring overview. In ...

Splunk Edge Processor | Popular Use Cases to Get Started with Edge Processor

Splunk Edge Processor offers more efficient, flexible data transformation – helping you reduce noise, control ...