Install Elastic APM Agent on Windows Server

Hello Experts,

I am a beginner in Elasticsearch.

I am looking for Installing Elastic APM Agent on windows servers.

Followed Documentation but confused.

Can anyone share any article / video where process is bit clear.

Reply with main / broad steps would work too.

Thank you :pray:

Hi @aji.shinde7 ,
please take a look at the involved components when setting up APM. Are you trying to install the Elastic Agent with the APM Server Integration on a windows server or are you stuck on how to add an APM agent (e.g. Java) to your service?

In case you are trying to install the Elastic Agent, please follow the fleet managed Elastic Agent guidelines and the guide on how to add an APM Server integration to the Elastic Agent.
For adding an APM agent to your service you can follow the documentation on the specific apm agent.

If you run into more concrete issues, feel free to share them.

Thank you for your reply.

I am stuck on how to add an APM agent (e.g. Java) to service on Windows.

I was able to add an APM agent (e.g. Java) to service on linux.

I followed below steps:

  1. Added APM Agent code in setenv.sh file . Followed below guideline

  2. Import Elastic Certificate into cacert file. Followed below guideline.

  1. Restart Service and Data started flowing in Elasticsearch cloud APM-* Index.

I was trying to locate setenv.bat. in Windows but could not find so thought of asking help in discussion forum.

I will get back with some more information. Please see if you can suggest me something with this information, Please

That's not yet working on Windows, there's a bug (related to the Java version that the Admin user has I think). You'll need to manually install the Java agent on Windows. Sorry

Hello Jack_Shirazi , Thank you for your reply.

By manually , do you mean adding code in bin/standalone.conf.bat ?
as below

I just realized the earlier linux one was for tomcat. Is this a tomcat installation?

Yes, on Linux I installed APM to monitor tomcat services and was trying to install APM Agent on Windows to monitor Java Application.

But later I came to know that there are no Java Applications running only Java Batch Sripts are there.

Still I was able to install APM agent by adding windows code (below snap) in batch file and importing Elastic certificate in cacert file.

there are no transactions happening as those are not applications so I can see data into JVMs section ONLY (in Kbana APM app)

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.