Splunk Search

How to display details in table

rashi83
Path Finder

I need to display a table with 4 columns and date is like this:

Colum A       Col B      Col C        Col D
x             y          z            a
b                                                    
c                        c                       

Problem is when it only displays the Row1 results since data is present for all columns.
I need to write a search where it should pick all rows even though data is present even in 1 of the column.

How can we do that?

0 Karma

jacobpevans
Motivator

Greetings @rashi83,

@nplamondon is right. In the meantime, try throwing this after your | table "Column A" "Col B" "Col C" "Col D"

| fillnull value="N/A" (or whatever you want the null values to be).

You're most likely doing a stats at some point which will get rid of all null values in the by clause. You need to set those to something before the stats.

Cheers,
Jacob

Cheers,
Jacob

If you feel this response answered your question, please do not forget to mark it as such. If it did not, but you do have the answer, feel free to answer your own post and accept that as the answer.

nplamondon
Communicator

Can you give a better example of your data/search?

0 Karma
Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...