# Synthetic process all requests instead of failing and stopping on the first failed request

**URL:** <https://community.dynatrace.com/t/synthetic-process-all-requests-instead-of-failing-and-stopping-on-the-first-failed-request/44634>\
**Category:** Synthetic Monitoring\
**Tags:** http-monitor, synthetic-monitoring\
**Created:** [March 14, 2024, 1:05am UTC](https://community.dynatrace.com/t/synthetic-process-all-requests-instead-of-failing-and-stopping-on-the-first-failed-request/44634 "2024-03-14T01:05:17Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![sivart\_89](https://avatars.discourse-cdn.com/v4/letter/s/848f3c/32.png) [@sivart\_89](https://community.dynatrace.com/u/sivart_89)\
**Post date:** [March 14, 2024, 1:05am UTC](https://community.dynatrace.com/t/synthetic-process-all-requests-instead-of-failing-and-stopping-on-the-first-failed-request/44634/1 "2024-03-14T01:05:17Z")

</div>

I have a customer that is wanting to hit 60 endpoints with an HTTP synthetic monitor. With the current state the synthetic will stop upon the first failed request, resulting in subsequent requests not being tested. Is the only solution for this to create 60 different synthetics, 1 for each endpoint? I’m essentially wanting to do the below steps. Is it possible to use custom js in the synthetic during maybe the post execution step? If so anyone know what this will look like?

- Have 1 synthetic with all 60 endpoints  
- The synthetic will continue upon failure of any request and process all subsequent requests  
- Upon finishing it the synthetic will fail and create a problem only if there is 1 or more failed requests. The problem card ideally should list all failed requests so you know all that failed, not just mention only 1 request and not the remaining failures

---

<div class="post-metadata">

**Author:** ![AntonPineiro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonpineiro/32/49_2.png) [@AntonPineiro](https://community.dynatrace.com/u/AntonPineiro)\
**Post date:** [March 14, 2024, 7:43am UTC](https://community.dynatrace.com/t/synthetic-process-all-requests-instead-of-failing-and-stopping-on-the-first-failed-request/44634/2 "2024-03-14T07:43:55Z")

</div>

Hi,

It those HTTP request are not related each other, I would create 60 Synthetics monitors.

Best regards

---

<div class="post-metadata">

**Author:** ![sivart\_89](https://avatars.discourse-cdn.com/v4/letter/s/848f3c/32.png) [@sivart\_89](https://community.dynatrace.com/u/sivart_89)\
**Post date:** [March 14, 2024, 10:56am UTC](https://community.dynatrace.com/t/synthetic-process-all-requests-instead-of-failing-and-stopping-on-the-first-failed-request/44634/3 "2024-03-14T10:56:17Z")

</div>

They are all related to each other and the same team owns / uses the endpoints.

---

<div class="post-metadata">

**Author:** ![AntonPineiro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonpineiro/32/49_2.png) [@AntonPineiro](https://community.dynatrace.com/u/AntonPineiro)\
**Post date:** [March 14, 2024, 11:42am UTC](https://community.dynatrace.com/t/synthetic-process-all-requests-instead-of-failing-and-stopping-on-the-first-failed-request/44634/4 "2024-03-14T11:42:57Z")

</div>

Hi,

It means, if information to next request depends of information of previous one. If not, I would split them.

Best regards

---

<div class="post-metadata">

**Author:** ![sivart\_89](https://avatars.discourse-cdn.com/v4/letter/s/848f3c/32.png) [@sivart\_89](https://community.dynatrace.com/u/sivart_89)\
**Post date:** [March 14, 2024, 12:34pm UTC](https://community.dynatrace.com/t/synthetic-process-all-requests-instead-of-failing-and-stopping-on-the-first-failed-request/44634/5 "2024-03-14T12:34:14Z")

</div>

There is no reason why we would not want to process (test subsequent requests) if a request fails. Rather than have 60 synthetics and numerous tickets if multiple synthetics fail, having the 1 synthetic process all of them and having 1 single problem is preferrable and makes the most sense I believe for this app team. We can go the route of creating multiple synthetics if needed, I’m just trying to understand if it is even possible with custom js and what that would look like.

---

<div class="post-metadata">

**Author:** ![hannahmac](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/hannahmac/32/41823_2.png) [@hannahmac](https://community.dynatrace.com/u/hannahmac)\
**Post date:** [March 14, 2024, 1:50pm UTC](https://community.dynatrace.com/t/synthetic-process-all-requests-instead-of-failing-and-stopping-on-the-first-failed-request/44634/6 "2024-03-14T13:50:42Z")

</div>

I agree with Anton, if the requests are not related to each other, the best practice would be to have separate monitors for each requests. These can then be grouped together using tags etc but you would then see separate metrics and problems for each monitor rather than 1 monitor or problem that you then need to dig into to find which requests failed.

That said, if you would prefer to have all your requests in one monitor and then work out afterwards which requests are a problem, you can use the suggested method [here](https://community.dynatrace.com/post/202549)

---

<div class="post-metadata">

**Author:** ![sivart\_89](https://avatars.discourse-cdn.com/v4/letter/s/848f3c/32.png) [@sivart\_89](https://community.dynatrace.com/u/sivart_89)\
**Post date:** [March 19, 2024, 12:59pm UTC](https://community.dynatrace.com/t/synthetic-process-all-requests-instead-of-failing-and-stopping-on-the-first-failed-request/44634/7 "2024-03-19T12:59:14Z")

</div>

Thank you&nbsp;[@HannahM](https://community.dynatrace.com/user/1433). The suggested method noted is something we may pursue further. Either way, it is good to know of the possibilities.
