04 Apr 2024 09:23 AM
Hello,
I have a list of ip addresses and I want to exclude requests coming from these ip addresses from all services in the environment. Is there a method to define these ip addresses globally and exclude them from services?
Thanks for your supportTa
Solved! Go to Solution.
04 Apr 2024 10:40 AM
Hi @Akerimde ,
I have solution for You - but it's not truly and fully global.
As I understand You want to remove some of requests (coming from specific IPs) from service calculations. Without more details I can only suggest generalized solution.
You can create request Attribute (globally) to capture incoming (Client) IP.
Then You can create global RequestNaming Rule to rename requests as ex. "unimportant-requests" with condition on IP being X.X.X.X (or regexp or anything You like).
Then having that You can MUTE those requests on each service that is being called from those IP.
You can easily identify them using created request attribute.
2 of 3 steps are global - unfortunately Mute is only per Service - so some effort or automation via API is required.
Bests
Michal
05 Apr 2024 09:45 AM
Hi MichalOlszewski,
We already have a request attribute (globally) and we use it when defining a service-specific definition.
How can I do that globally : Then You can create global RequestNaming Rule to rename requests as ex. "unimportant-requests" with condition on IP being X.X.X.X (or regexp or anything You like).
Thank you
08 Apr 2024 01:56 PM
Hi @Akerimde ,
via API and You can review then via UI:
Below link with documentation how to do so:
https://docs.dynatrace.com/docs/dynatrace-api/configuration-api/service-api/request-naming-api
Bests
Michal