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!

Splunk Observability Synthetic Monitoring - Resolved Incident on Detector Alerts

We’ve discovered a bug that affected the auto-clear of Synthetic Detectors in the Splunk Synthetic Monitoring ...

Video | Tom’s Smartness Journey Continues

Remember Splunk Community member Tom Kopchak? If you caught the first episode of our Smartness interview ...

3-2-1 Go! How Fast Can You Debug Microservices with Observability Cloud?

3-2-1 Go! How Fast Can You Debug Microservices with Observability Cloud? Learn how unique features like ...