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!

Say goodbye to manually analyzing phishing and malware threats with Splunk Attack ...

In today’s evolving threat landscape, we understand you’re constantly bombarded with phishing and malware ...

AppDynamics is now part of Splunk Ideas

Hello Splunkers, We have exciting news for you! AppDynamics has been added to the Splunk Ideas Portal. Which ...

Advanced Splunk Data Management Strategies

Join us on Wednesday, May 14, 2025, at 11 AM PDT / 2 PM EDT for an exclusive Tech Talk that delves into ...