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!

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

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

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

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

Combine Multiline Logs into a Single Event with SOCK: a Step-by-Step Guide for ...

Combine multiline logs into a single event with SOCK - a step-by-step guide for newbies Olga Malita The ...