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!

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

Join Us at the Builder Bar at .conf24 – Empowering Innovation and Collaboration

What is the Builder Bar? The Builder Bar is more than just a place; it's a hub of creativity, collaboration, ...

Combine Multiline Logs into a Single Event with SOCK - a Guide for Advanced Users

This article is the continuation of the “Combine multiline logs into a single event with SOCK - a step-by-step ...