# Create request naming rule

**URL:** <https://community.dynatrace.com/t/create-request-naming-rule/35556>\
**Category:** Open Q&A\
**Tags:** request-naming\
**Created:** [June 21, 2022, 3:06pm UTC](https://community.dynatrace.com/t/create-request-naming-rule/35556 "2022-06-21T15:06:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![chakrit](https://avatars.discourse-cdn.com/v4/letter/c/96bed5/32.png) [@chakrit](https://community.dynatrace.com/u/chakrit)\
**Post date:** [June 21, 2022, 3:06pm UTC](https://community.dynatrace.com/t/create-request-naming-rule/35556/1 "2022-06-21T15:06:17Z")

</div>

I would like to create request naming rule

Now my Env have many request in one service such as

1. /api/products/store/0000/category/00000

2./api/products/store/0001/category/00001

3./api/products/store/0000/category/00055

4./api/products/store/01120/category/00011

So, i need to group these to " **API Products"**

Which i have been used this condition “/api/products/store/:storeId/category/:categoryId” but result is not ok

Please provide as i need

Thank you very much.

---

<div class="post-metadata">

**Author:** ![Fin\_Ubels](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/fin_ubels/32/18008_2.png) [@Fin\_Ubels](https://community.dynatrace.com/u/Fin_Ubels)\
**Post date:** [June 22, 2022, 12:34am UTC](https://community.dynatrace.com/t/create-request-naming-rule/35556/2 "2022-06-22T00:34:00Z")

</div>

Hey chakrit,

This should be able to be achieved through the settings for the service. As shown in the below picture if you navigate to the web request naming rules page for your service you should be able to add rules for naming them.

 ![Fin_Ubels_0-1655857692139.png](https://global.discourse-cdn.com/dynatrace/original/2X/8/89d86e0d3a1d95e2e172f5378783be01cba7be1a.png)

My example rule looks like this.

 ![Fin_Ubels_1-1655857726056.png](https://global.discourse-cdn.com/dynatrace/original/2X/e/ed7534d9bfbe2d0b18455e224fdd70f2d5ef3ef5.png)

And the outcome of the rule looks like this.

 ![Fin_Ubels_2-1655857766266.png](https://global.discourse-cdn.com/dynatrace/original/3X/0/6/064e7223ff7372c5c2e2b05b4ba7f72764fc271a.png)

For more information there is a documentation page for this as well.

> **[Set up request naming in Service Detection v1](https://docs.dynatrace.com/docs/observe/application-observability/services/service-detection/service-detection-v1/set-up-request-naming)**
>
> Adjust request naming and define the operations your services offer.

---

<div class="post-metadata">

**Author:** ![chakrit](https://avatars.discourse-cdn.com/v4/letter/c/96bed5/32.png) [@chakrit](https://community.dynatrace.com/u/chakrit)\
**Post date:** [June 22, 2022, 6:48am UTC](https://community.dynatrace.com/t/create-request-naming-rule/35556/3 "2022-06-22T06:48:04Z")

</div>

Hi&nbsp;[@Fin\_Ubels](https://community.dynatrace.com/user/47376)

Yesterday i have been used this solution as you provided.

Incase normally i can used this step, but if i need to use this parameter (“/api/products/store/:storeId/category/:categoryId”) in condition rule for create web request naming rule please provide solution.

Thank you.

---

<div class="post-metadata">

**Author:** ![Fin\_Ubels](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/fin_ubels/32/18008_2.png) [@Fin\_Ubels](https://community.dynatrace.com/u/Fin_Ubels)\
**Post date:** [June 23, 2022, 4:27am UTC](https://community.dynatrace.com/t/create-request-naming-rule/35556/4 "2022-06-23T04:27:07Z")

</div>

Ah I see, for something more specific I would then suggest using regex. My example below isn’t great but it should give you an idea of where to start. In place of :storeId and :categoryId you would use some expression to match just numbers of a certain length.

 ![Fin_Ubels_0-1655957921662.png](https://global.discourse-cdn.com/dynatrace/original/2X/1/1ba09947198f04d062653db67a05c578ebc3839a.png)

Here are a few sites if you need a hand creating and testing regex expressions.

> **[RegExr: Learn, Build, & Test RegEx](https://regexr.com/)**
>
> RegExr is an online tool to learn, build, & test Regular Expressions (RegEx / RegExp).

> **[Regex Generator - Creating regex is easy again!](https://regex-generator.olafneumann.org/)**
>
> A tool to generate simple regular expressions from sample text. Enable less experienced developers to create regex smoothly.

And then Dynatrace also has some docs on Dynatrace specific regex.

> **[Regular expressions in Dynatrace](https://docs.dynatrace.com/docs/manage/tags-and-metadata/reference/regular-expressions-in-dynatrace)**
>
> Learn how to use regular expressions in the context of Dynatrace.

---

<div class="post-metadata">

**Author:** ![chakrit](https://avatars.discourse-cdn.com/v4/letter/c/96bed5/32.png) [@chakrit](https://community.dynatrace.com/u/chakrit)\
**Post date:** [June 23, 2022, 6:51am UTC](https://community.dynatrace.com/t/create-request-naming-rule/35556/5 "2022-06-23T06:51:50Z")

</div>

[@Fin\_Ubels](https://community.dynatrace.com/user/47376)

Thank you for your solution.
