question

Elías M. avatar image
Elías M. asked ·

¿How can you group URLs where the only thing that changes is an identifier?

I have a lot of this URLs where the only thing that changes is the marked number (that is an identifier)

https://tiendasnet.net/stkcon-z01-c01-1/2-0/stock/prod...00264169400/stock

And I want to group all those URLs into one that gives me all their data together.

I tried going into the URL Monitoring of my app and creating an Miscellaneous Parameter (in Dimensions, Metrics and Attributes) with a regex ((http[s]?\://tiendasnet[^*]+/[^/]+/)([^/]+)(/stock)) and with search scope Request URL.

I then went to my report and added the dimension Miscellaneous Parameter, but it didnt filter/work as I intended. (Instead it showed me "-")

Is there something that I'm missing?

Thanks

Elías Montes Pombar

nam servernamnam probenam console
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.

1 Answer

John L. avatar image
John L. answered ·

This is a common question when trying to remove unique strings from a URL path. You don't have the full URL above and I'm not quite sure of the full path of what you are trying to remove. Assuming the full URL is something like:

https://tiendasnet.net/stkcon-z01-c01-1/2-0/stock/prod/00264169400/stock

Setting up a URL Monitoring entry as a regex to wildcard the number could be done like this

(https://tiendasnet.net/stkcon-z01-c01-1/2-0/stock/prod)/[^/](/stock)

We're doing a couple of things here. the "[^/]" skips all characters that are not a "/". This effectively matches the string no matter what is in that section of the URL. Next the "(" and ")" are placed around what is needed to be reported. The URL is matching the string but only reporting what is in parens.

If this is not exactly what you are looking for hopefully it helps in creating your own.

2 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.

Yes that's something useful, I don't need Miscellaneous Parameter right now (It was a problem solved in they URL Monitoring window).

If someone has to group (data from) urls with just an id as difference into 1 generic

In the URL monitoring window, you create another rule with the regex that you need (leaving the id out of the group as John did above)

Then you also have to give this rule priority over the generic one so it triggers first.

Im sorry if this is not understandable or I leave something behind.

Thank you

Elías Montes Pombar

0 Likes 0 · ·

You can use miscellaneous parameters to pull some piece of information from the URL, HTTP header etc - and assign it to a task, module or service. This way you have the individual URLs reported in operations but then can easily group them based on task, module or service.

Miscellaneous parameters can be assigned at the software service or in URL Monitoring entries.

0 Likes 0 · ·