# Configure muted request to Service

**URL:** <https://community.dynatrace.com/t/configure-muted-request-to-service/45820>\
**Category:** Open Q&A\
**Tags:** request-naming, services-classic\
**Created:** [May 29, 2024, 9:06pm UTC](https://community.dynatrace.com/t/configure-muted-request-to-service/45820 "2024-05-29T21:06:37Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![AK](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/ak/32/164_2.png) [@AK](https://community.dynatrace.com/u/AK)\
**Post date:** [May 29, 2024, 9:06pm UTC](https://community.dynatrace.com/t/configure-muted-request-to-service/45820/1 "2024-05-29T21:06:37Z")

</div>

Hi Folks,

How can we add muted request to the service via UI or API?

Do we need to first add a web request to **web request naming** rule and then add request name to **muted requests**?

I wanted to understand a flow over the UI and then would give a try to configure it via API.

Question because, when I see the configuration of muted requests it doesn’t have any specific option to put a rule such as “_Relative URL begins with and Relative URL ends with_”

 ![AK_0-1717045614601.png](https://global.discourse-cdn.com/dynatrace/original/3X/a/4/a4774795fda01112be03d3536c895a46b4376eb6.png)

However, such setting is present under web request naming rule.

 ![AK_2-1717046150440.png](https://global.discourse-cdn.com/dynatrace/original/3X/d/6/d6c5c2e1df0582633cbc648ef993987b73961ebf.png)

Even in [documentation](https://docs.dynatrace.com/docs/platform-modules/applications-and-microservices/services/service-monitoring-settings/service-monitoring-mute#:~:text=entities%20list%20request.-,Example%20JSON,-Use%20the%20POST)&nbsp;under JSON example, it is just mentioned as ‘mutedRequestNames’. We can’t see any option to add ‘Relative URL begins with and ends with’ for web request.

 ![AK_1-1717045698025.png](https://global.discourse-cdn.com/dynatrace/original/3X/f/7/f77511b6ed00292e0ad6fad591ddd91720bddd39.png)

Would need some help on this.

Regards,

AK

---

<div class="post-metadata">

**Author:** ![AK](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/ak/32/164_2.png) [@AK](https://community.dynatrace.com/u/AK)\
**Post date:** [May 30, 2024, 8:32am UTC](https://community.dynatrace.com/t/configure-muted-request-to-service/45820/2 "2024-05-30T08:32:23Z")

</div>

Can someone share a thoughts on this?

---

<div class="post-metadata">

**Author:** ![paulo\_calaxa](https://avatars.discourse-cdn.com/v4/letter/p/9e8a1a/32.png) [@paulo\_calaxa](https://community.dynatrace.com/u/paulo_calaxa)\
**Post date:** [May 30, 2024, 8:47am UTC](https://community.dynatrace.com/t/configure-muted-request-to-service/45820/3 "2024-05-30T08:47:46Z")

</div>

Hi.  
It has been a while since I had to do one, and have no means to try it.  
Afaik, you will refer to either the detected request name, or the result of a renaming rule if it has one.  
No arm trying and check if it accepts a list of requests or a regexp expression, but I suppose that the plural name(s) under button Add item is&nbsp; still misleading. You will have to add one by one.  
Would it make sense to have the same options? I suppose that in this case, the danger of inadvertently muting one not desired is too great… and that in the first place there should not be needed to have that many and does not justify it.

Kind regards,  
Paulo.

---

<div class="post-metadata">

**Author:** ![AK](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/ak/32/164_2.png) [@AK](https://community.dynatrace.com/u/AK)\
**Post date:** [May 30, 2024, 12:05pm UTC](https://community.dynatrace.com/t/configure-muted-request-to-service/45820/4 "2024-05-30T12:05:50Z")

</div>

[@paulo\_calaxa](https://community.dynatrace.com/user/7432)&nbsp;thank you for the response.

But I think, I have not articulated my question well.

Lets skip the **web request naming** rule.

How can we add web request to muted requests?&nbsp;For example, URL begins with&nbsp; **/user** and ends with **/profile**

Regards,

AK

---

<div class="post-metadata">

**Author:** ![ChadTurner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/chadturner/32/161_2.png) [@ChadTurner](https://community.dynatrace.com/u/ChadTurner)\
**Post date:** [May 30, 2024, 12:22pm UTC](https://community.dynatrace.com/t/configure-muted-request-to-service/45820/5 "2024-05-30T12:22:10Z")

</div>

[@AK](https://community.dynatrace.com/user/2080)&nbsp;we have only done thisby doing a one by one mute via the API. Meaning each request that is classified as should be muted, is its own line item. So Bookings and Rebookings, they both are unique in their own right and your rename can formulate it to “Muteme Bookings” and “Muteme Rebookings” or even just “Muteme” and the system will target the mute off the detected name and not the renamed value. Thats been our experience. We tried wild cards to cut down on rules and try a starts with etc… but it all failed, which is why we went 1 by 1.

---

<div class="post-metadata">

**Author:** ![Malaik](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/malaik/32/32673_2.png) [@Malaik](https://community.dynatrace.com/u/Malaik)\
**Post date:** [May 30, 2024, 12:46pm UTC](https://community.dynatrace.com/t/configure-muted-request-to-service/45820/6 "2024-05-30T12:46:35Z")

</div>

[@AK](https://community.dynatrace.com/user/2080)

Could you please elaborate more?

Mute requests is not feasible with condition like: begin with, ends with, contain …, you should put the exact name of the request.

From the UI its also possible by selecting the request in question, and enable the MUTE..

Its also possible using APIs…

---

<div class="post-metadata">

**Author:** ![AK](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/ak/32/164_2.png) [@AK](https://community.dynatrace.com/u/AK)\
**Post date:** [May 30, 2024, 1:46pm UTC](https://community.dynatrace.com/t/configure-muted-request-to-service/45820/7 "2024-05-30T13:46:42Z")

</div>

[@Malaik](https://community.dynatrace.com/user/23195), thanks for the response.

So I have web requests something like below,

```markup
/user1/summary/area1/profile
/user2/summary/area2/profile
/user3/summary/area3/profile
/user4/summary/area3/profile

```

In muted requests setting, we don’t have an option to add&nbsp;URL begins with&nbsp; **/user** &nbsp;and ends with&nbsp; **/profile.**

So I believe, we have to create bucketing with the help of **web requests naming** rule with criteria,&nbsp;URL begins with&nbsp; **/user** &nbsp;and ends with\*\*/profile\*\* and put that rule name under muted requests.

Hope my understanding is correct till here.

Why I’m putting a question w.r.t muted request because, I have to mute such requests for bunch of services.

I have following options with their own limitations.

1. Apply&nbsp;URL Based Sampling --\> This will get applied to the whole environment
2. Apply web request naming rule via API and then add it to muted request (for individual service via API) --\> Web request naming rule will get applied to whole environment

Regards,

AK

---

<div class="post-metadata">

**Author:** ![AK](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/ak/32/164_2.png) [@AK](https://community.dynatrace.com/u/AK)\
**Post date:** [May 30, 2024, 5:48pm UTC](https://community.dynatrace.com/t/configure-muted-request-to-service/45820/8 "2024-05-30T17:48:43Z")

</div>

[@Malaik](https://community.dynatrace.com/user/23195), hope I explained it correctly now. Please share your thoughts if have any.

---

<div class="post-metadata">

**Author:** ![paulo\_calaxa](https://avatars.discourse-cdn.com/v4/letter/p/9e8a1a/32.png) [@paulo\_calaxa](https://community.dynatrace.com/u/paulo_calaxa)\
**Post date:** [May 31, 2024, 7:27am UTC](https://community.dynatrace.com/t/configure-muted-request-to-service/45820/9 "2024-05-31T07:27:11Z")

</div>

Hi.  
As I said, as far as I knew, wasn’t totally sure, could have been improved, but others confirmed, it still doesn’t let you set a list, begins, or regex… And as I said, you would have to add requests to mute, one by one.  
Indeed, when I first read,&nbsp;“Do we need to first add a web request to&nbsp; **web request naming** &nbsp;rule and then add request name to&nbsp; **muted requests**?”, I only replied in general. Sorry about that.  
So what I meant was… not mandatory  
you could add  
/user1/summary/area1/profile  
and then&nbsp;  
/user2/summary/area2/profile  
But of course, if there are a lot, then yes, you first set a web request naming to generate a new request that has all the combinations needed.  
That was what Chad meant with his examples and by the unique name:  
he mentioned an example with Bookings and Rebookings, that could match yours of users and areas.  
/user1/summary/area1/profile  
/user2/summary/area2/profile  
/user3/summary/area3/profile  
/user4/summary/area3/profile  
If for whatever reason you need both groups separated, even for muting, perhaps you couldn’t achieve an easy way to find rules to cover all the combinations… You could set a renaming to generate a group of requests for users, let’s say “summaryProfilesOfUsers”, that would be… unique… and other for the areas, that would be unique, and you only have to add those two, one by one, to be muted.  
But by all means, if it is clear that you want both, and given your set of request it should be totally feasible to set rules to cover them all, you’ll generate a renaming that puts them all under a new request name, let’s say “summary profile by user and area” or whatever.  
So, you only&nbsp;add that new, unique, request name, once.

Kind regards

---

<div class="post-metadata">

**Author:** ![AK](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/ak/32/164_2.png) [@AK](https://community.dynatrace.com/u/AK)\
**Post date:** [May 31, 2024, 4:54pm UTC](https://community.dynatrace.com/t/configure-muted-request-to-service/45820/10 "2024-05-31T16:54:32Z")

</div>

[@paulo\_calaxa](https://community.dynatrace.com/user/7432), thank you for the comprehensive explanation.

In that case, the only challenge is to apply&nbsp; **web request naming** &nbsp;rule to the desired services.

And as far I know if we wanted to apply it on bunch of services then it would be a global rule.

We don’t have any API available to set it individually. Please correct if my understanding is wrong.

Regards,

AK

---

<div class="post-metadata">

**Author:** ![Malaik](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/malaik/32/32673_2.png) [@Malaik](https://community.dynatrace.com/u/Malaik)\
**Post date:** [June 2, 2024, 8:36am UTC](https://community.dynatrace.com/t/configure-muted-request-to-service/45820/11 "2024-06-02T08:36:45Z")

</div>

In this specific case, I can suggest to group your requests with a requests naming like:

```markup
/user[ID]/summary/area[ID]/profile

```

and mute 1 single request.

---

<div class="post-metadata">

**Author:** ![paulo\_calaxa](https://avatars.discourse-cdn.com/v4/letter/p/9e8a1a/32.png) [@paulo\_calaxa](https://community.dynatrace.com/u/paulo_calaxa)\
**Post date:** [June 3, 2024, 11:26am UTC](https://community.dynatrace.com/t/configure-muted-request-to-service/45820/12 "2024-06-03T11:26:04Z")

</div>

Hi.  
At the time being I don’t have an environment, with the necessary permissions, to confirm it, but from memory and checking it in the demo, there should be a general Renaming option, under server-side settings

 ![paulo_calaxa_0-1717413677906.png](https://global.discourse-cdn.com/dynatrace/original/3X/a/5/a511de3f670128130633c0e7d7d29f9cc8e0f8c5.png)

Kind regards.

---

<div class="post-metadata">

**Author:** ![AK](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/ak/32/164_2.png) [@AK](https://community.dynatrace.com/u/AK)\
**Post date:** [June 3, 2024, 2:15pm UTC](https://community.dynatrace.com/t/configure-muted-request-to-service/45820/13 "2024-06-03T14:15:53Z")

</div>

Hi&nbsp;[@paulo\_calaxa](https://community.dynatrace.com/user/7432)&nbsp;[@Malaik](https://community.dynatrace.com/user/23195)&nbsp;[@ChadTurner](https://community.dynatrace.com/user/14877)

Thank a lot for your help and useful suggestions.

I was able to configure web request naming rule via API and following is the request body I used.

Note: Tag name and request naming rule name (used in namingPattern) can be different.

```markup
{
    "conditions": [
        {
            "attribute": "WEBREQUEST_URL_PATH",
            "comparisonInfo": {
                "caseSensitive": false,
                "comparison": "BEGINS_WITH",
                "negate": false,
                "type": "STRING",
                "value": "/user"
            }
        },
        {
            "attribute": "WEBREQUEST_URL_PATH",
            "comparisonInfo": {
                "caseSensitive": false,
                "comparison": "ENDS_WITH",
                "negate": false,
                "type": "STRING",
                "value": "/profile"
            }
        },
        {
            "attribute": "SERVICE_TAG",
            "comparisonInfo": {
                "comparison": "TAG_KEY_EQUALS",
                "negate": false,
                "type": "TAG",
                "value": {
                    "context": "CONTEXTLESS",
                    "key": "UserProfile"
                },
                "values": null
            }
        }
    ],
    "enabled": true,
    "namingPattern": "UserProfile"
}

```

Then I applied muted request to each service via API and following is the request body.

Note:- Postman is used to pass the service ID’s in the scope field.

```markup
[
    {
        "schemaId": "builtin:settings.mutedrequests",
        "schemaVersion": "0.0.5",
        "scope": "{{id}}",
        "value": {
            "mutedRequestNames": [
                "UserProfile"
            ]
        }
    }
]

```

Following thread also helped me to build request body to create _ **web request naming** _ rule,

[https://community.dynatrace.com/t5/Dynatrace-tips/PRO-TIP-Global-request-naming-for-REST-services/m-p/237047](https://community.dynatrace.com/post/237047)

I really appreciate the help you provided guys.

Regards

AK
