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

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

0 Karma
Get Updates on the Splunk Community!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...