Splunk AppDynamics

How to map values from number to string in data collectors

Mohamed_Adel
Explorer

Hello,

I have configured MIDC(Method Invocation Data Collectors) on an application, to collect the status of orders, but the value is in numbers, how can I map numbers to string to create a meaningful dashboard.

for example:
1 ==> "Pending"
2==> "Approved"
3==> "Rejected"

Labels (1)
Tags (1)
0 Karma
1 Solution

Morelz
Builder

Hi Mohamed

you can use the replaceAll Function

.toString().replaceAll(1,Pending).replaceAll(2,Approved).replaceAll(3,Rejected)

Ciao

View solution in original post

Morelz
Builder

Hi Mohamed

you can use the replaceAll Function

.toString().replaceAll(1,Pending).replaceAll(2,Approved).replaceAll(3,Rejected)

Ciao

Get Updates on the Splunk Community!

Announcing the Expansion of the Splunk Academic Alliance Program

The Splunk Community is more than just an online forum — it’s a network of passionate users, administrators, ...

Learn Splunk Insider Insights, Do More With Gen AI, & Find 20+ New Use Cases You Can ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Buttercup Games: Further Dashboarding Techniques (Part 7)

This series of blogs assumes you have already completed the Splunk Enterprise Search Tutorial as it uses the ...