Click the Start a free trial link to start a 15-day SaaS trial of our product and join our community as a trial user. If you are an existing customer do not start a free trial.
AppDynamics customers and established members should click the sign in button to authenticate.
11-10-2021 12:12 AM - last edited on 11-10-2021 11:40 AM by Ryan.Paredez
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", ...}
11-10-2021 08:18 PM
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
11-24-2021 12:22 AM
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.
User | Count |
---|---|
2 | |
2 | |
1 | |
1 | |
1 | |
1 |
Thank you! Your submission has been received!
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form