# APM Configuration Help Needed

**URL:** <https://discuss.elastic.co/t/apm-configuration-help-needed/187650>\
**Category:** APM\
**Tags:** java\
**Created:** [June 26, 2019, 6:27pm UTC](https://discuss.elastic.co/t/apm-configuration-help-needed/187650 "2019-06-26T18:27:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nagr](https://avatars.discourse-cdn.com/v4/letter/n/aeb1de/32.png) [@nagr](https://discuss.elastic.co/u/nagr)\
**Post date:** [June 26, 2019, 6:27pm UTC](https://discuss.elastic.co/t/apm-configuration-help-needed/187650/1 "2019-06-26T18:27:27Z")

</div>

Hi All,

I have followed the step below for APM configuration,

1. Download the APM Server Windows zip file from the [Download page](https://www.elastic.co/downloads/apm/apm-server).
2. Extract the contents of the zip file into `C:\Program Files` .
3. Rename the `apm-server-7.1.0-windows` directory to `APM-Server`
4. Run the ".\install-service-apm-server.ps1"
5. Configured the credentials in the `apm-server.yml` config file
6. Download the agent jar from [Maven Central](http://search.maven.org/#search%7Cga%7C1%7Ca%3Aelastic-apm-agent). Do **not** add the agent as a dependency to your application.
7. then need to configured the below step:

java -javaagent:/path/to/elastic-apm-agent-.jar   
-Delastic.apm.service\_name=my-application   
-Delastic.apm.server\_url=http://localhost:8200   
-Delastic.apm.secret\_token=   
-Delastic.apm.application\_packages=org.example   
-jar my-application.jar

So where do I add/configure this line for getting the APM feature in kibana console,

Thanks,  
Nagaraj,

---

<div class="post-metadata">

**Author:** ![Eyal\_Koren](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eyal_koren/32/36830_2.png) [@Eyal\_Koren](https://discuss.elastic.co/u/Eyal_Koren)\
**Post date:** [June 27, 2019, 4:55am UTC](https://discuss.elastic.co/t/apm-configuration-help-needed/187650/2 "2019-06-27T04:55:26Z")

</div>

This line is an example to how to install an agent **on a standalone Java app** , assuming that it is packaged in a jar called `my-application.jar` and has a package called `org.example`.  
If your Java app is running on a servlet container, look for the other setup required for that.  
Once you get the `-javaagent` and other command line options get properly applied to the JVM startup script/command, the agent will automatically trace the stuff listed in [the documentation](https://www.elastic.co/guide/en/apm/agent/java/current/supported-technologies-details.html).  
Anything not listed there and needed to be traced, can be traced manually by using [our APIs](https://www.elastic.co/guide/en/apm/agent/java/current/public-api.html).  
Good luck.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 18, 2019, 12:55am UTC](https://discuss.elastic.co/t/apm-configuration-help-needed/187650/3 "2019-07-18T00:55:26Z")

</div>

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