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 AI Assistant for SPL | Key Use Cases to Unlock the Power of SPL

Splunk AI Assistant for SPL | Key Use Cases to Unlock the Power of SPL  The Splunk AI Assistant for SPL ...

Buttercup Games: Further Dashboarding Techniques (Part 5)

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

Customers Increasingly Choose Splunk for Observability

For the second year in a row, Splunk was recognized as a Leader in the 2024 Gartner® Magic Quadrant™ for ...