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!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...