question

Aurélien G. avatar image
Aurélien G. asked ·

create a clean URL Rule

servicesphp
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Ugochukwu N. avatar image
Ugochukwu N. answered ·

Hi AURELIEN,

Can you please elaborate? Are you trying to create a server-side service request cleanup rule? In the particular service the request belongs to, edit the Settings -> web Request Naming and you should see option to Create URL cleanup rule

https://www.dynatrace.com/news/blog/track-business...

Thanks

NJ

1 comment Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Sorry, the content didn't appears the first time so I added a new answer below.

0 Likes 0 · ·
Neil D. avatar image
Neil D. answered ·

This doesn't work for me. doing a regexp along the lines of prefix(deletematch)suffix still deletes the ENTIRE matched string, rather than the "deletematch" only. This is rather a big functional hole; the "modern" REST method has this as a standard practice.

Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Ugochukwu N. avatar image
Ugochukwu N. answered ·

Hi Aurelien,

The following regex should work in the URL cleanup rule. I will test it though in a lower environment just to be sure it works correctly

fr\/checkout\/([0-9]+).*

Please let me know if this works for you

Thanks

NJ

4 comments Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Hey NJ,

How does this work now? I don't see this in the service options anymore

Rick B

0 Likes 0 · ·

Nothing has changed that I'm aware of, are you looking at this view under the specific service's settings?

0 Likes 0 · ·
answers.png (46.2 KiB)

is it somehow not detecting my service as a "web" based service, despite having URL:Path e.g. as a valid placeholder?

0 Likes 0 · ·
daemf.png (191.5 KiB)

I think it is detecting it as a web service instead of as a web request service.

I see for those you only have the options to define names not generate URL cleanup rules. That is based on the frameworks that are being used - a bit more here.

0 Likes 0 · ·
Aurélien G. avatar image
Aurélien G. answered ·

Hello,

I'm trying to create a clean rule on a PHP service in order to group the checkout operations on the sames transactions (despite the ID).

Examples of checkout URI:

fr/checkout/57341

fr/checkout/57341/rest/payment-validate

fr/checkout/57341/billing

fr/checkout/57341/complete

When I configure the rule with this regex :

\/checkout(\/\d+)

all the segment /checkout/57341 is masked and not only the 57341.


How to mask only the value 57341 ?

FYI, the /checkout expression is to match only the URI related to the checkout transactions.

Thank you.

Regards Aurélien

1 comment Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Hi @Aurélien G. were you able to solve your issue? I have a similar problem and can't seem to find a solution.

0 Likes 0 · ·

Space Topics

mobile monitoring dotnet synthetic monitoring reports iis chat kubernetes servicenow amazon web services mysql mainframe rest api errors cassandra dashboard oneagent sdk cmc application monitoring openkit smartscape request attributes monitoring developer community user tagging log monitoring services ufo syntheticadvisory activegate ip addresses auto-detection high five award oracle hyperion webserver uem usql iib test automation license web performance monitoring ios news migration management zones index ibm mq web services custom event alerts notifications sso host monitoring knowledge sharing reports browser monitors java hybris sap vmware maintenance window user action naming javascript appmon ai synthetic classic availability tipstricks automation extensions diagnostic tools session replay permissions davis assistant faq documentation problem detection http monitors server easytravel apdex aws-quickstart network docker tags and metadata cloud foundry google cloud platform synthetic monitoring process groups account usability dynatrace saas gui paas openshift key user actions administration user actions postgresql synthetic locations oneagent security Dynatrace Managed user management custom python technologies mongodb openstack user session monitoring continuous delivery citrix configuration alerting NGINX action naming linux nam installation masking error reporting database mission control jmeter recorder apache mobileapp RUM php threshold azure purepath davis scripting agent aix nodejs android