# APM Server URL - Page not found for Java Agent

**URL:** <https://discuss.elastic.co/t/apm-server-url-page-not-found-for-java-agent/146321>\
**Category:** APM\
**Created:** [August 28, 2018, 10:30am UTC](https://discuss.elastic.co/t/apm-server-url-page-not-found-for-java-agent/146321 "2018-08-28T10:30:17Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Senz79](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/senz79/32/42874_2.png) [@Senz79](https://discuss.elastic.co/u/Senz79)\
**Post date:** [August 28, 2018, 10:30am UTC](https://discuss.elastic.co/t/apm-server-url-page-not-found-for-java-agent/146321/1 "2018-08-28T10:30:18Z")

</div>

Hello  
I have configured the Elastic Agent with JAVA Agent. I have configured the below components

1. ElasticSearch 6.4
2. Kibana 6.4
3. APM 6.4
4. APM JAVA Agent - elastic-apm-agent-0.6.2

I start all the components in the same order. Also validate in Kibana APM which says Server and Agent configured successfully.

But when I try to see the APM Data it says - **Looks like you don't have any services with APM installed. Let's add some!**

Also when I try to browse **elastic.apm.server\_url=http://localhost:8200** it says 404 page not found.

Command to run java agent  
**java -javaagent:D:\Tools\ELK\_6.4v\elastic-apm-agent-0.6.2.jar -Delastic.apm.service\_name=jmeter -Delastic.apm.server\_url=http://localhost:8200 -Delastic.apm.application\_packages=org.example -jar D:\Tools\ELK\_6.4v\SampleApplication\JAppsProject\JApps.jar**

Please help to debug.

---

<div class="post-metadata">

**Author:** ![simitt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/simitt/32/106406_2.png) [@simitt](https://discuss.elastic.co/u/simitt)\
**Post date:** [August 28, 2018, 10:47am UTC](https://discuss.elastic.co/t/apm-server-url-page-not-found-for-java-agent/146321/2 "2018-08-28T10:47:42Z")

</div>

Sorry to hear about the troubles. Could you please check if the proposed solution from [Kibana APM application doesn't show any data](https://discuss.elastic.co/t/kibana-apm-application-doesnt-show-any-data/145949) solves the issues?

---

<div class="post-metadata">

**Author:** ![felixbarny](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/felixbarny/32/27341_2.png) [@felixbarny](https://discuss.elastic.co/u/felixbarny)\
**Post date:** [August 28, 2018, 11:09am UTC](https://discuss.elastic.co/t/apm-server-url-page-not-found-for-java-agent/146321/3 "2018-08-28T11:09:47Z")

</div>

Which frameworks are you using in your application? Please make sure you are using one of the [supported technologies](https://www.elastic.co/guide/en/apm/agent/java/current/intro.html#supported-technologies).

---

<div class="post-metadata">

**Author:** ![Senz79](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/senz79/32/42874_2.png) [@Senz79](https://discuss.elastic.co/u/Senz79)\
**Post date:** [August 28, 2018, 11:11am UTC](https://discuss.elastic.co/t/apm-server-url-page-not-found-for-java-agent/146321/4 "2018-08-28T11:11:12Z")

</div>

I have followed the link initially. In apm-server.yml the below indices are configured

**indices:**  
\*\* - index: "apm-%{[beat.version]}-sourcemap"\*\*  
\*\* when.contains:\*\*  
\*\* processor.event: "sourcemap"\*\*

\*\* - index: "apm-%{[beat.version]}-error-%{+yyyy.MM.dd}"\*\*  
\*\* when.contains:\*\*  
\*\* processor.event: "error"\*\*

\*\* - index: "apm-%{[beat.version]}-transaction-%{+yyyy.MM.dd}"\*\*  
\*\* when.contains:\*\*  
\*\* processor.event: "transaction"\*\*

\*\* - index: "apm-%{[beat.version]}-span-%{+yyyy.MM.dd}"\*\*  
\*\* when.contains:\*\*  
\*\* processor.event: "span"\*\*

\*\* - index: "apm-%{[beat.version]}-metric-%{+yyyy.MM.dd}"\*\*  
\*\* when.contains:\*\*  
\*\* processor.event: "metric"\*\*

\*\* - index: "apm-%{[beat.version]}-onboarding-%{+yyyy.MM.dd}"\*\*  
\*\* when.contains:\*\*  
\*\* processor.event: "onboarding"\*\*

Also I have added the below settings in kibana.yml

**apm\_oss.errorIndices: apm-** \*  
**apm\_oss.spanIndices: apm-** \*  
**apm\_oss.transactionIndices: apm-** \*  
**apm\_oss.onboardingIndices: apm-** \*

This time I got a new message in Kibana

**No services were found**  
**Try another time range or reset the search filter.**

Also as part of the apm server startup I am getting the below logs

2018-08-28T16:41:43.898+0530 INFO pipeline/module.go:98 Beat name: WKWIN2404784  
2018-08-28T16:41:43.898+0530 INFO instance/beat.go:367 apm-server start running.  
2018-08-28T16:41:43.898+0530 INFO [monitoring] log/log.go:114 Starting metrics logging every 30s  
2018-08-28T16:41:43.898+0530 INFO [beater] beater/beater.go:172 self instrumentation is disabled  
2018-08-28T16:41:43.903+0530 INFO [beater] beater/beater.go:113 host resolved from localhost:8200 to 127.0.0.1:8200  
2018-08-28T16:41:43.903+0530 INFO [handler] beater/handlers.go:161 Path /v1/rum/transactions added to request handler  
2018-08-28T16:41:43.904+0530 INFO [handler] beater/handlers.go:161 Path /v1/errors added to request handler  
2018-08-28T16:41:43.904+0530 INFO [handler] beater/handlers.go:161 Path /v1/metrics added to request handler  
2018-08-28T16:41:43.904+0530 INFO [handler] beater/handlers.go:161 Path /v1/client-side/transactions added to request handler  
2018-08-28T16:41:43.904+0530 INFO [handler] beater/handlers.go:161 Path /v1/client-side/errors added to request handler  
2018-08-28T16:41:43.904+0530 INFO [handler] beater/handlers.go:161 Path /v1/rum/errors added to request handler  
2018-08-28T16:41:43.904+0530 INFO [handler] beater/handlers.go:161 Path /v1/client-side/sourcemaps added to request handler  
2018-08-28T16:41:43.904+0530 INFO [handler] beater/handlers.go:161 Path /v1/rum/sourcemaps added to request handler  
2018-08-28T16:41:43.905+0530 INFO [handler] beater/handlers.go:161 Path /v1/transactions added to request handler  
2018-08-28T16:41:43.905+0530 INFO [server] beater/server.go:69 Starting apm-server [59fbf0b6146ca5c50a94d1c435d0cf704e5b2a3f built 2018-08-17 22:12:40  
2018-08-28T16:41:43.905+0530 INFO [server] beater/server.go:70 Listening on: 127.0.0.1:8200  
2018-08-28T16:41:43.905+0530 INFO [server] beater/server.go:75 RUM endpoints disabled  
2018-08-28T16:41:43.905+0530 INFO [request] beater/handlers.go:282 handled request {"request\_id": "d5f79e45-f50a-482c-943b-641bf7c693f2", "method": "GET",

2018-08-28T16:41:43.906+0530 INFO [http\_client] beater/client.go:49 HTTP Server ready  
2018-08-28T16:41:43.906+0530 INFO [onboarding] beater/onboarding.go:36 Publishing onboarding document  
2018-08-28T16:41:44.916+0530 INFO elasticsearch/client.go:708 Connected to Elasticsearch version 6.4.0  
2018-08-28T16:41:44.921+0530 INFO template/load.go:129 Template already exists and will not be overwritten.  
2018-08-28T16:41:51.867+0530 INFO [request] beater/handlers.go:282 handled request {"request\_id": "b874e41c-cd73-43e5-b3e4-4c2ac1911697", "method": "GET",  
onse\_code": 200}  
2018-08-28T16:42:01.872+0530 INFO [request] beater/handlers.go:282 handled request {"request\_id": "cc4f5174-7478-49b9-92e5-7efc48e2be49", "method": "GET",  
onse\_code": 200}  
2018-08-28T16:42:11.874+0530 INFO [request] beater/handlers.go:282 handled request {"request\_id": "d5a5c346-0758-48f2-b472-a5032f92d5c2", "method": "GET",  
onse\_code": 200}  
2018-08-28T16:42:14.064+0530 INFO [monitoring] log/log.go:141 Non-zero metrics in the last 30s {"monitoring": {"metrics": {"apm-server":{"server":{"req  
":{"ticks":436,"time":{"ms":436},"value":436},"user":{"ticks":156,"time":{"ms":156}}},"info":{"ephemeral\_id":"b3f56b0f-bc2c-409a-9e67-bd27751b9881","uptime":{"ms":30368  
ing":0}},"output":{"events":{"acked":1,"batches":1,"total":1},"read":{"bytes":835},"type":"elasticsearch","write":{"bytes":735}},"pipeline":{"clients":1,"events":{"acti  
2018-08-28T16:42:21.880+0530 INFO [request] beater/handlers.go:282 handled request {"request\_id": "49dadcf6-6869-4235-9e65-aa2d08ab5718", "method": "GET",  
onse\_code": 200}

---

<div class="post-metadata">

**Author:** ![Senz79](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/senz79/32/42874_2.png) [@Senz79](https://discuss.elastic.co/u/Senz79)\
**Post date:** [August 30, 2018, 4:00am UTC](https://discuss.elastic.co/t/apm-server-url-page-not-found-for-java-agent/146321/5 "2018-08-30T04:00:11Z")

</div>

Thanks. I was able to configure APM for Spring boot framework application.

---

<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:** [September 20, 2018, 12:00am UTC](https://discuss.elastic.co/t/apm-server-url-page-not-found-for-java-agent/146321/6 "2018-09-20T00:00:17Z")

</div>

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