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
Get Updates on the Splunk Community!

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...