# Setup Elastic APM for the first time

**URL:** https://discuss.elastic.co/t/setup-elastic-apm-for-the-first-time/356581
**Category:** APM
**Tags:** java
**Created:** [April 2, 2024, 4:54am UTC](https://discuss.elastic.co/t/setup-elastic-apm-for-the-first-time/356581 "2024-04-02T04:54:52Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Dylan\_Juan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dylan_juan/32/124263_2.png) [@Dylan\_Juan](https://discuss.elastic.co/u/Dylan_Juan)
#### Post date: [April 2, 2024, 4:54am UTC](https://discuss.elastic.co/t/setup-elastic-apm-for-the-first-time/356581/1 "2024-04-02T04:54:52Z")

</div>

Hi everyone,

We're facing an issue when trying to monitor application using elasticsearch APM.

We're already deploying elastic-agent on fleet server and deploy APM server. Now we're facing an issue when we want to add APM Agents. Can you guys suggest on what application we should test? because we already try to use dummy .jar application and it seems not working

Thanks!

---

<div class="post-metadata">

### Author: ![Mani\_Manikanta](https://avatars.discourse-cdn.com/v4/letter/m/8e7dd6/32.png) [@Mani\_Manikanta](https://discuss.elastic.co/u/Mani_Manikanta)
#### Post date: [April 2, 2024, 5:03am UTC](https://discuss.elastic.co/t/setup-elastic-apm-for-the-first-time/356581/2 "2024-04-02T05:03:24Z")

</div>

Hi @Dylan_Juan,

Please share the error you were facing

---

<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: [April 2, 2024, 5:05am UTC](https://discuss.elastic.co/t/setup-elastic-apm-for-the-first-time/356581/3 "2024-04-02T05:05:22Z")

</div>

Hi @Dylan_Juan Welcome to the community...

You could try this.. it is my test app

Just update the `run-with-apm.sh` to your values and latest agent.

> **[GitHub - bvader/cardatabase: Backend application for cars](https://github.com/bvader/cardatabase)**
>
> Backend application for cars. Contribute to bvader/cardatabase development by creating an account on GitHub.

You can activate the API with

```auto
http://localhost:8080/api/cars
http://localhost:8080/api/owners

```

---

<div class="post-metadata">

### Author: ![Dylan\_Juan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dylan_juan/32/124263_2.png) [@Dylan\_Juan](https://discuss.elastic.co/u/Dylan_Juan)
#### Post date: [April 2, 2024, 10:03am UTC](https://discuss.elastic.co/t/setup-elastic-apm-for-the-first-time/356581/4 "2024-04-02T10:03:59Z")

</div>

Hi @stephenb, i'm excited to join the community...

I've already done troubleshooting regarding APM. Here's what i've done  
I deployed springboot test app with petclinic from github

> **[GitHub - spring-projects/spring-petclinic: A sample Spring-based application](https://github.com/spring-projects/spring-petclinic)**
>
> A sample Spring-based application. Contribute to spring-projects/spring-petclinic development by creating an account on GitHub.

and getting the responses from Kibana -\> APM-\> Services interface

 ![my_application](https://us1.discourse-cdn.com/elastic/original/3X/a/c/acf1e3605092caea93a0c491c364d8cc373e0bbd.jpeg)

```auto
java -javaagent:/home/weblogic/source/elastic-apm-agent.jar -Delastic.apm.service_name=PetClinic -Delastic.apm.application_packages=org.springframework.samples.petclinic -Delastic.apm.server_url=http://172.70.12.30:8200 -jar target/*.jar

```

I'll try to deploy your test app soon, Thanks!

---

<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: [April 30, 2024, 10:04am UTC](https://discuss.elastic.co/t/setup-elastic-apm-for-the-first-time/356581/5 "2024-04-30T10:04:54Z")

</div>

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