# Traces are not shown in Kibana

**URL:** <https://discuss.elastic.co/t/traces-are-not-shown-in-kibana/295757>\
**Category:** APM\
**Tags:** docker, java, server\
**Created:** [January 29, 2022, 3:48pm UTC](https://discuss.elastic.co/t/traces-are-not-shown-in-kibana/295757 "2022-01-29T15:48:37Z")\
**Posts on this page:** 12\
**Page:** 2

<div class="post-metadata">

**Author:** ![stuart.nelson](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stuart.nelson/32/99866_2.png) [@stuart.nelson](https://discuss.elastic.co/u/stuart.nelson)\
**Post date:** [February 9, 2022, 10:22am UTC](https://discuss.elastic.co/t/traces-are-not-shown-in-kibana/295757/22 "2022-02-09T10:22:37Z")

</div>

This looks like you're having issues with your docker networking. I recommend docker exec'ing into the container to make sure you're able to reach the apm-server container with cURL or something similar.

---

<div class="post-metadata">

**Author:** ![rishisalunkhe](https://avatars.discourse-cdn.com/v4/letter/r/dbc845/32.png) [@rishisalunkhe](https://discuss.elastic.co/u/rishisalunkhe)\
**Post date:** [February 9, 2022, 10:28am UTC](https://discuss.elastic.co/t/traces-are-not-shown-in-kibana/295757/23 "2022-02-09T10:28:15Z")

</div>

Hi @stuart.nelson, APM server is accessible from my application container when I execute curl -I host.docker.internal:8200 from my docker container, following response is returned:

```auto
HTTP/1.1 200 OK
Content-Type: application/json
X-Content-Type-Options: nosniff
Date: Wed, 09 Feb 2022 10:26:35 GMT
Content-Length: 150

{
  "build_date": "2022-01-06T23:13:12Z",
  "build_sha": "fde0af4fa2b9f39e518b333c5be56cf8be215ca0",
  "publish_ready": true,
  "version": "7.16.3"
}

```

---

<div class="post-metadata">

**Author:** ![rishisalunkhe](https://avatars.discourse-cdn.com/v4/letter/r/dbc845/32.png) [@rishisalunkhe](https://discuss.elastic.co/u/rishisalunkhe)\
**Post date:** [February 11, 2022, 4:37am UTC](https://discuss.elastic.co/t/traces-are-not-shown-in-kibana/295757/24 "2022-02-11T04:37:24Z")

</div>

Hi @stuart.nelson Any update?

---

<div class="post-metadata">

**Author:** ![axw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/axw/32/28197_2.png) [@axw](https://discuss.elastic.co/u/axw)\
**Post date:** [February 11, 2022, 5:15am UTC](https://discuss.elastic.co/t/traces-are-not-shown-in-kibana/295757/25 "2022-02-11T05:15:22Z")

</div>

@rishisalunkhe let's back up a bit. I can see in your agent log file that the Java Agent is sending requests to APM Server every 30 seconds:

```auto
$ grep Starting agentlogs.txt 
2022-02-03 09:22:18,763 [elastic-apm-server-reporter] DEBUG co.elastic.apm.agent.report.IntakeV2ReportingEventHandler - Starting new request to http://host.docker.internal:8200/intake/v2/events
2022-02-03 09:22:48,728 [elastic-apm-server-reporter] DEBUG co.elastic.apm.agent.report.IntakeV2ReportingEventHandler - Starting new request to http://host.docker.internal:8200/intake/v2/events
2022-02-03 09:23:18,695 [elastic-apm-server-reporter] DEBUG co.elastic.apm.agent.report.IntakeV2ReportingEventHandler - Starting new request to http://host.docker.internal:8200/intake/v2/events
2022-02-03 09:23:48,657 [elastic-apm-server-reporter] DEBUG co.elastic.apm.agent.report.IntakeV2ReportingEventHandler - Starting new request to http://host.docker.internal:8200/intake/v2/events
2022-02-03 09:24:18,627 [elastic-apm-server-reporter] DEBUG co.elastic.apm.agent.report.IntakeV2ReportingEventHandler - Starting new request to http://host.docker.internal:8200/intake/v2/events
2022-02-03 09:24:48,593 [elastic-apm-server-reporter] DEBUG co.elastic.apm.agent.report.IntakeV2ReportingEventHandler - Starting new request to http://host.docker.internal:8200/intake/v2/events

```

This lines up with the default metrics interval: [Reporter configuration options | APM Java Agent Reference [1.x] | Elastic](https://www.elastic.co/guide/en/apm/agent/java/current/config-reporter.html#config-metrics-interval)

I suspect the issue is that the Java agent isn't sending any trace events. Please have a look at [Supported technologies | APM Java Agent Reference [1.x] | Elastic](https://www.elastic.co/guide/en/apm/agent/java/current/supported-technologies-details.html), and confirm that you are using supported technologies.

---

<div class="post-metadata">

**Author:** ![rishisalunkhe](https://avatars.discourse-cdn.com/v4/letter/r/dbc845/32.png) [@rishisalunkhe](https://discuss.elastic.co/u/rishisalunkhe)\
**Post date:** [February 11, 2022, 6:28am UTC](https://discuss.elastic.co/t/traces-are-not-shown-in-kibana/295757/26 "2022-02-11T06:28:29Z")

</div>

@axw Thanks for your reply, I checked and I am using supported technologies as below:  
**OpenJDK Runtime Environment Corretto-11.0.3.7.1**  
**Tomcat 8.5.33.0**  
**Servlet 3.0.1**

Application running inside docker, ES and Kibana is also in docker, APM server is running on Mac, APM-agent is placed inside /bin directory of tomcat

---

<div class="post-metadata">

**Author:** ![Jack\_Shirazi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jack_shirazi/32/91641_2.png) [@Jack\_Shirazi](https://discuss.elastic.co/u/Jack_Shirazi)\
**Post date:** [February 11, 2022, 11:38am UTC](https://discuss.elastic.co/t/traces-are-not-shown-in-kibana/295757/27 "2022-02-11T11:38:22Z")

</div>

The agent debug log is just saying that it is checking the server for new config. There doesn't seem to be any traceable activity happening in the Java application for it to send traces

---

<div class="post-metadata">

**Author:** ![rishisalunkhe](https://avatars.discourse-cdn.com/v4/letter/r/dbc845/32.png) [@rishisalunkhe](https://discuss.elastic.co/u/rishisalunkhe)\
**Post date:** [February 11, 2022, 12:16pm UTC](https://discuss.elastic.co/t/traces-are-not-shown-in-kibana/295757/28 "2022-02-11T12:16:04Z")

</div>

@Jack_Shirazi thanks, but I saw the methods are found for traces in agent log file

---

<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:** [February 13, 2022, 7:44am UTC](https://discuss.elastic.co/t/traces-are-not-shown-in-kibana/295757/29 "2022-02-13T07:44:26Z")

</div>

> but I saw the methods are found for traces in agent log file

Not sure what this means - do you mean there are method matches? That's not enough, there also needs to be an invocation of the instrumented method.  
Please share a full description of how you installed the agent on your Tomcat and the full agent configurations you use. In addition, a useful `debug` log would include the startup of the Servlet container and until after some Servlet invocations took place.

---

<div class="post-metadata">

**Author:** ![rishisalunkhe](https://avatars.discourse-cdn.com/v4/letter/r/dbc845/32.png) [@rishisalunkhe](https://discuss.elastic.co/u/rishisalunkhe)\
**Post date:** [February 14, 2022, 6:53am UTC](https://discuss.elastic.co/t/traces-are-not-shown-in-kibana/295757/30 "2022-02-14T06:53:18Z")

</div>

Hi @Eyal_Koren , Thanks for your reply, my application is running inside the docker on tomcat server and I placed APM-agent jar in /bin directory of tomcat. APM server is running on MAC. Below is the configuration: Also attached agent logs in gist:

> <https://gist.github.com/rishisalunkhe4141/1317f4e4b95b714b3faef556894d386c>

```auto
export CATALINA_OPTS='-server -Xms64M -Xmx512M -XX:+UseConcMarkSweepGC -XX:-OmitStackTraceInFastThrow -Dcom.sun.management.jmxremote.port=9014 -Dcom.sun.management.jmxremote.password.file=/usr/local/test-app/jmxremote.password -Dcom.sun.management.jmxremote.access.file=/usr/local/test-app/jmxremote.access -Dcom.sun.management.jmxremote.ssl=false -Dcatalina.base=/usr/local/test-app -agentlib:jdwp=transport=dt_socket,address=*:5005,server=y,suspend=n -javaagent:/usr/local/test-app/bin/elastic-apm-agent-1.28.4.jar -Delastic.apm.service_name=my-application -Delastic.apm.server_url=http://host.docker.internal:8200 -Delastic.apm.log_level=DEBUG'

```

---

<div class="post-metadata">

**Author:** ![rishisalunkhe](https://avatars.discourse-cdn.com/v4/letter/r/dbc845/32.png) [@rishisalunkhe](https://discuss.elastic.co/u/rishisalunkhe)\
**Post date:** [February 23, 2022, 4:37pm UTC](https://discuss.elastic.co/t/traces-are-not-shown-in-kibana/295757/31 "2022-02-23T16:37:08Z")

</div>

@Eyal_Koren any update on my query?

---

<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:** [February 27, 2022, 11:34am UTC](https://discuss.elastic.co/t/traces-are-not-shown-in-kibana/295757/32 "2022-02-27T11:34:19Z")

</div>

> [@Eyal\_Koren](#):
>
> a useful `debug` log would include the startup of the Servlet container and until after some Servlet invocations took place

The truncated `debug` log you shared is insufficient for further analysis

---

<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:** [March 20, 2022, 7:35am UTC](https://discuss.elastic.co/t/traces-are-not-shown-in-kibana/295757/33 "2022-03-20T07:35:08Z")

</div>

Closed on March 20, 2022, 7:35am UTC

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

[Previous page](https://discuss.elastic.co/t/traces-are-not-shown-in-kibana/295757.md?page=1)
