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!

Archived Metrics Now Available for APAC and EMEA realms

We’re excited to announce the launch of Archived Metrics in Splunk Infrastructure Monitoring for our customers ...

Detecting Remote Code Executions With the Splunk Threat Research Team

WATCH NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If exploited, ...

Enter the Dashboard Challenge and Watch the .conf24 Global Broadcast!

The Splunk Community Dashboard Challenge is still happening, and it's not too late to enter for the week of ...