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!

Troubleshooting the OpenTelemetry Collector

  In this tech talk, you’ll learn how to troubleshoot the OpenTelemetry collector - from checking the ...

Adoption of Infrastructure Monitoring at Splunk

  Splunk's Growth Engineering team showcases one of their first Splunk product adoption-Splunk Infrastructure ...

Modern way of developing distributed application using OTel

Recently, I had the opportunity to work on a complex microservice using Spring boot and Quarkus to develop a ...