Dashboards & Visualizations

How to add extra label to the current label present in the bar chart?

anooshac
Communicator

Hi All,

i have created a bar chart  using stats Count by ID. I have a field "status" in my data. Is it possible to add this status along with ID in the axis of the bar chart. I want my label field to be ID(status). ID and status both are varying data. Is it possible to do in Splunk anyhow?

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

ITWhisperer
SplunkTrust
SplunkTrust
| eval combined=ID."(".status.")"
| stats count by combined

View solution in original post

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust
| eval combined=ID."(".status.")"
| stats count by combined
0 Karma

anooshac
Communicator

This is such nice way! The results won't be affected by this calculation right?

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Assuming each ID has only one status value, then the results should be the same. It depends on your data.

Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...