# How to Configure Trust/Entitlements for Datadog APM Java Agent on Elasticsearch 9.X

**URL:** <https://discuss.elastic.co/t/how-to-configure-trust-entitlements-for-datadog-apm-java-agent-on-elasticsearch-9-x/383119>\
**Category:** Elasticsearch\
**Created:** [October 31, 2025, 6:24am UTC](https://discuss.elastic.co/t/how-to-configure-trust-entitlements-for-datadog-apm-java-agent-on-elasticsearch-9-x/383119 "2025-10-31T06:24:59Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [November 3, 2025, 1:40am UTC](https://discuss.elastic.co/t/how-to-configure-trust-entitlements-for-datadog-apm-java-agent-on-elasticsearch-9-x/383119/3 "2025-11-03T01:40:59Z")

</div>

Hi @flyxp11 Welcome to the community.

Perhaps read this as @DavidTurner recently answered

> [@Elasticsearch WARN message after upgrade 8.19.2 to 8.19.3](https://discuss.elastic.co/t/elasticsearch-warn-message-after-upgrade-8-19-2-to-8-19-3/381460/2):
>
> The Dynatrace agent isn’t supported and we recommend not using it. See the warning in [these docs](https://www.elastic.co/docs/deploy-manage/deploy/self-managed/installing-elasticsearch#jvm-version) for more information: WARNING: Don’t use third-party Java agents that attach to the JVM. Such agents can be harmful to Elasticsearch stability and performance. In some cases they may cause nodes to freeze, crash, or fail to start up, or to lose or corrupt your data.

I would assume the same would go for the DD Agent

Specifically from the Docs Referenced

> Warning
> 
> Don’t use third-party Java agents that attach to the JVM. Such agents can be harmful to Elasticsearch stability and performance. In some cases they may cause nodes to freeze, crash, or fail to start up, or to lose or corrupt your data.

---

_[View the full topic](https://discuss.elastic.co/t/how-to-configure-trust-entitlements-for-datadog-apm-java-agent-on-elasticsearch-9-x/383119)._
