# Extract request count that contains a specific message

**URL:** <https://community.dynatrace.com/t/extract-request-count-that-contains-a-specific-message/43212>\
**Category:** Open Q&A\
**Tags:** distributed-traces-classic, dynatrace-managed, dashboards-classic\
**Created:** [December 14, 2023, 12:54pm UTC](https://community.dynatrace.com/t/extract-request-count-that-contains-a-specific-message/43212 "2023-12-14T12:54:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![erh\_inetum](https://avatars.discourse-cdn.com/v4/letter/e/48db29/32.png) [@erh\_inetum](https://community.dynatrace.com/u/erh_inetum)\
**Post date:** [December 14, 2023, 12:54pm UTC](https://community.dynatrace.com/t/extract-request-count-that-contains-a-specific-message/43212/1 "2023-12-14T12:54:10Z")

</div>

Hi,

We have seen it’s possible to get the number of requests that contain a specific message as it can be seen on the screenshot attach.

We would like to get this count to pin the number to a dashboard. We have seen that the column “Server Side failure rate reason” is the field “purePathsData.errorData.serverSide.exceptionMessage”.

Is anyway to get or create this metric with the porpose of pin to dashboard that information?

Thanks in advance.

Regards,

Elena.

 ![purePathsData.errorData.serverSide.exceptionMessage.GIF](https://global.discourse-cdn.com/dynatrace/original/3X/c/2/c249e91dae1eb70f561a0e3e7a6bf4f19749a2f8.gif)

---

<div class="post-metadata">

**Author:** ![Islam\_Zedan](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/islam_zedan/32/31999_2.png) [@Islam\_Zedan](https://community.dynatrace.com/u/Islam_Zedan)\
**Post date:** [December 14, 2023, 1:16pm UTC](https://community.dynatrace.com/t/extract-request-count-that-contains-a-specific-message/43212/2 "2023-12-14T13:16:04Z")

</div>

Hi Elena,

You can create a custom metric (calculated metric) for that, you can choose request count, then put the condition you want, then you can put this metric in a dashboard using the data explorer. please check the below document for further details.

> **[Calculated metrics for Services](https://docs.dynatrace.com/docs/observe/application-observability/services/calculated-service-metric)**
>
> Learn how to create a calculated metric based on web requests.

Thanks,

Islam

---

<div class="post-metadata">

**Author:** ![erh\_inetum](https://avatars.discourse-cdn.com/v4/letter/e/48db29/32.png) [@erh\_inetum](https://community.dynatrace.com/u/erh_inetum)\
**Post date:** [December 14, 2023, 1:39pm UTC](https://community.dynatrace.com/t/extract-request-count-that-contains-a-specific-message/43212/3 "2023-12-14T13:39:42Z")

</div>

Hi&nbsp;[@Islam\_Zedan](https://community.dynatrace.com/user/16821)

Thanks a lot! I was trying to create it using MDA and I didn´t know the condition “Exception message” exists.

Thanks again,

Regards,

Elena.
