Showing results for 
Show  only  | Search instead for 
Did you mean: 

Get environment id on monitored host



We have a JBoss application server running on a host where OneAgent is deployed. We have mobile applications (Android and iOS) calling the JBoss server and I would like to implement an endpoint on the JBoss server which provides the Dynatrace environment id to the mobile application such that the agent running on the client can report to that environment. The question is, how can I obtain the Dynatrace environment from within our deployment (ear) on the JBoss server?


DynaMight Guru
DynaMight Guru

If you have SaaS installation, you are using your tenant url. If you have managed, first you need to setup cluster activegate (or set dynatrace server to be public). Than you will be able to configure public url to your tenant to send data.

Ebout enviornment ID, for managed when you go to your enviornment your url will looks like:


Part between /e/ and / is your enviornment ID


Regards, Sebastian

Hello, I noticed your reply, and I see that many people are happy with it. However, my question is: where do I find this "your-environment-id" ?

I intend to send data from the Fluentd agent to Dynatrace. Upon investigation, I found that the URL should resemble this: "endpoint: "https://<dynatrace-domain>/e/<environment-id>/api/v2/logs/ingest"

NOTE : I already have an ActiveGate that is well configured and connected

DynaMight Legend
DynaMight Legend

Directly from within an J2EE application, you cannot, since the application itself is unaware of the Oneagent instrumentation.
However, you can find your tenant ID in the ruxitagentproc.conf on the server. But if you need this for the configuration of the mobile app (Beacon), I think it does not use the tenant ID, but a different one.

Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

Thank you for the answer. I think I'll just put the environment id in a configuration on the JBoss server manually.

Featured Posts