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

1. Is the Datadog APM Java Agent officially supported for use with Elasticsearch 9.x?

2. What are the specifuc Entitlements(security permissions) required for the dd-java-agent.jar to run as a Java Agent on an Elasticsearch 9.x node?

I have attached a stack trace/screenshot showing the exact error encountered during the Elasticsearch startup, which you may find helpful for your investigation.

The error explicitly states: ENTITLEMENT [outbound_network] not granted.

This confirms that the Agent is being blocked from making necessary network connections due to the new security model.

Regarding the problem above, has anyone experienced it?

I earnestly request everyone's assistance.

Thanks in advance for your help!

Hi @flyxp11 Welcome to the community.

Perhaps read this as @DavidTurner recently answered

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.

Hi @stephenb ,Thank you for your previous response.

Based on @DavidTurner's earlier answer, my understanding is that any third-party Java agent (including the Datadog agent) is not permitted to attach to the Elasticsearch JVM, as this could negatively impact the stability and performance of Elasticsearch. Is my understanding correct?

If I wanted to have the Datadog agent as one of the plugins trusted by Elasticsearch, could it then be attached to the Elasticsearch JVM to monitor Elasticsearch? If I can not attach it to the Elasticsearch JVM, what else can I do?

Thanks in advance for your help!