Splunk Search

In a pie chart, how to convert an numerical value of an enum to a string?

theactiveactor
New Member

The slices on my pie chart are currently displaying the numerical value of an enum, which isn't too useful. Instead of displaying "2", how could I make it display a user-friendly label, like "Purple" instead?

I tried lookup tables, but it doesn't work well with click drilldown filtering, for which I need the numerical value for token setting and filtering.

0 Karma

lguinn2
Legend

If you use the lookup, you could still use a custom drill-down that supplies the numerical value. Here is the docs page on dynamic drilldowns

http://docs.splunk.com/Documentation/Splunk/6.5.0/Viz/Dynamicdrilldownindashboardsandforms

0 Karma

cmerriman
Super Champion

Are there many values? An eval statement would probably work, but typing out a large one would be tedious.

0 Karma

somesoni2
Revered Legend

Could you provide more details, like your current search, current output?

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Take Action Automatically on Splunk Alerts with Red Hat Ansible Automation Platform

 Are you ready to revolutionize your IT operations? As digital transformation accelerates, the demand for ...

Calling All Security Pros: Ready to Race Through Boston?

Hey Splunkers, .conf25 is heading to Boston and we’re kicking things off with something bold, competitive, and ...

Beyond Detection: How Splunk and Cisco Integrated Security Platforms Transform ...

Financial services organizations face an impossible equation: maintain 99.9% uptime for mission-critical ...