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!

Index This | I’m short for "configuration file.” What am I?

May 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with a Special ...

New Articles from Academic Learning Partners, Help Expand Lantern’s Use Case Library, ...

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

Your Guide to SPL2 at .conf24!

So, you’re headed to .conf24? You’re in for a good time. Las Vegas weather is just *chef’s kiss* beautiful in ...