cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Help Regex user actions

service_apms
Organizer

Hello,

I need to configure a naming rule bt i can't seem to do so with regex.

First of all Dynatrace managed Naming rules do not seem to accept Regex.

What i want to do is take any url with a certain value and remove what comes after a certain value.

Example :

Urlpath : /Example1/Example2/XXXXX => /Example1/Example2/

So take every url that contains Example2 and rmove what come after it

Does anyone have an idea on how i can do that ?

Thanks

 

8 REPLIES 8

AlexanderSommer
Dynatrace Pro
Dynatrace Pro

We have currently two user action naming versions out. If you are using already the new user action naming, you need to create a placeholder with /Example2/ as leading delimiter and without trailing delimiter:

You than can use this placeholder in a user action rule.

If your environment does not have the new user action naming, please reach out to your Dynatrace contact.


I did as shown but it adds the value (<Removed>) to the path

What rule can i use to fix this ?



Just make it like that:

Then you will have replaced last part of URL with /, than this whole string replace with / and you will have what you need.


Thank you sebastian i have a small additional question.
sometimes there is an action name before that like :

Loading of page Example1/Example2/XXXX and the result is Example1/Example2/

So what come after Example2 is deleted but the "Loading of page" is also deleted"
Is this normal ?


Yes, it's normal. When you will use your placeholder in user aciton name just past it like this for load actions:

Loading of page {placeholder_name}


Thanks a lot Sebastian


Wow! Now we got those trailing numbers removed, can we mark it as Key user action in one go? Instead of marking all of them individually?

service_apms
Organizer

Thank you sebastian i have a small additional question.
sometimes there is an action name before that like :

Loading of page Example1/Example2/XXXX and the result is Example1/Example2/

So what come after Example2 is deleted but the "Loading of page" is also deleted"
Is this normal ?