Splunk Search

while using chart i see null value and that particular col is not visible in dashboard

vikashperiwal
Path Finder

HI,

While use chart command i am getting null values for status in search and the same in dashboard i do not see in the panel. I am trying to get distinct count of run_id for each values(col1,col2,col,3...) 

This i am seng in the search head.

Name col1 col2 col3 col4
abc123 21 40    
xyz789 35 50    

 

In Dashboard, panel shows below table missing with col3 ans col4

ID col1 col2
abc123 21 40
xyz789 35 50

 

 

Search Query:

index=xyz sourcetype=abc event_name=test earliest=@d
| fields - _raw
| eval TIME=strftime(strptime(timestamp,"%Y.%m.%d"),"%F")
| fields app_name event_name TIME  values Id
| search name=* values="col1" OR values="col2" OR values="col3" OR values="col4"
| chart dc(run_Id) OVER name  by values 
| fields "APP NAME" col1 col2 col3 col4 

 

And also i want to add one new column:

some thing count(Id) as ID_Count by time

 

I tried usenull, useother, fillnull, none worked.

Labels (1)
Tags (3)
0 Karma
1 Solution

vikashperiwal
Path Finder

could get ths done by adding fillnull value = 0 field1 field 2. at the end of query 

View solution in original post

0 Karma

richgalloway
SplunkTrust
SplunkTrust
If the values field has only 2 distinct values then only two will have data.
Your dashboard must be using a different query because the output is different ("ID" instead of "APP NAME").
---
If this reply helps you, Karma would be appreciated.
0 Karma

vikashperiwal
Path Finder

could get ths done by adding fillnull value = 0 field1 field 2. at the end of query 

0 Karma
Get Updates on the Splunk Community!

Earn a $35 Gift Card for Answering our Splunk Admins & App Developer Survey

Survey for Splunk Admins and App Developers is open now! | Earn a $35 gift card!      Hello there,  Splunk ...

Continuing Innovation & New Integrations Unlock Full Stack Observability For Your ...

You’ve probably heard the latest about AppDynamics joining the Splunk Observability portfolio, deepening our ...

Monitoring Amazon Elastic Kubernetes Service (EKS)

As we’ve seen, integrating Kubernetes environments with Splunk Observability Cloud is a quick and easy way to ...