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!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...