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
SplunkTrust
SplunkTrust

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

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...