Splunk AppDynamics

Grab a specefic property from a session object

Mohamed_Adel
Explorer

Hello,

Our application session is not a plain key-value pair, it contains an object called "UserInfo" and within this object, there are many properties.

Can I grab a specific property from this object from the HTTP request data collector?

Example:
UserInfo = { "userId": 123, userName: "BlaBla", ...}

Labels (1)
0 Karma

Morelz
Builder

Hi Mohamed

You can try a data collector like below and assign it to the business transaction to be extracted, which should return the userId value, you can adjust it to extract any of the values if you require it.

ToString().Split(string/"userId": ).[1].Split(string/,).[0]

Ciao

0 Karma

Mohamed_Adel
Explorer

Hi Mario,

Unfortunately, this didn't work, let me explain that more, I added "SSO:CurrentUserInfo" as a session key in the HTTP request data collector, the value was "BARQ.SSOClientIntegeration.UserInfoDto" as a string, and I need to grab "userId" property from the returned UserInfoDto.

0 Karma
Get Updates on the Splunk Community!

Best Strategies to Optimize Observability Costs

 Join us on Tuesday, May 6, 2025, at 11 AM PDT / 2 PM EDT for an insightful session on optimizing ...

Fueling your curiosity with new Splunk ILT and eLearning courses

At Splunk Education, we’re driven by curiosity—both ours and yours! That’s why we’re committed to delivering ...

Splunk AI Assistant for SPL 1.1.0 | Now Personalized to Your Environment for Greater ...

Splunk AI Assistant for SPL has transformed how users interact with Splunk, making it easier than ever to ...