Dashboards & Visualizations

how todisplay more than one field on bar chart

navd
New Member

I want to set up a Bar graph that displays more than one field when I hover over it. For example I use:

search | chart count over host by IP_address

so this is displaying just the host on the actual graph BUT also shows me the IP_address if I hover over my mouse to that specific bar.

Now, I also want to add one more field to display when I hover on a specific bar .

Tags (1)
0 Karma
1 Solution

somesoni2
Revered Legend

The chart command support aggregation by just two fields, so you'd have to try the workaround of concatenating two fields into one and use concatenated field in by clause.

search | eval "IP_address/OtherField"=IP_address.":".OtherField | chart count over host by "IP_address/OtherField"

View solution in original post

0 Karma

somesoni2
Revered Legend

The chart command support aggregation by just two fields, so you'd have to try the workaround of concatenating two fields into one and use concatenated field in by clause.

search | eval "IP_address/OtherField"=IP_address.":".OtherField | chart count over host by "IP_address/OtherField"
0 Karma
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...