# What Kind of logs will push to ES via APM

**URL:** <https://discuss.elastic.co/t/what-kind-of-logs-will-push-to-es-via-apm/176830>\
**Category:** APM\
**Created:** [April 15, 2019, 4:53am UTC](https://discuss.elastic.co/t/what-kind-of-logs-will-push-to-es-via-apm/176830 "2019-04-15T04:53:08Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sajid\_Md](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sajid_md/32/43824_2.png) [@Sajid\_Md](https://discuss.elastic.co/u/Sajid_Md)\
**Post date:** [April 15, 2019, 4:53am UTC](https://discuss.elastic.co/t/what-kind-of-logs-will-push-to-es-via-apm/176830/1 "2019-04-15T04:53:09Z")

</div>

Dear All,

I have some queries related to APM server to ES via APM agent.

**Kibana version** : 6.2

**Elasticsearch version** : 6.2

**APM Server version** : 6.5

**APM Agent language and version** : ES APM agent 1.5

But In Kibana dashboard APM tab was not added, it's showing in dashboard list like below. How to add APM as a separate tab in Kibana dashboard.

 ![image.png](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1a3f63e21792ce003d381f1a638207e45a2e7639.png)

Also, I have a few questions:

- Which type of data will be pushing into APM server from agent applications.
- For example, I added an agent for one application that will take the input from one application and insert into DB servers. here which type of logs I can expect into APM server?
- In the APM dashboard, I can see a total of 5 tabs for APM in that Span details is not showing for my applications.
- Error details and Error dashboard tabs will show when we are having errors from applications?
- How to add the main APM tab in my Kibana dashboard like below.  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/6/e/6e00844f0c8347f789be0a00e1b95ebaa78f63d1.png)

Could you please help me resolve my concerns.

Thanks in advance...

---

<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:** [April 15, 2019, 5:45am UTC](https://discuss.elastic.co/t/what-kind-of-logs-will-push-to-es-via-apm/176830/2 "2019-04-15T05:45:30Z")

</div>

> [@Sajid\_Md](#):
>
> But In Kibana dashboard APM tab was not added, it's showing in dashboard list like below. How to add APM as a separate tab in Kibana dashboard.

For Kibana 6.2, the APM UI is part of X-Pack, which you must install as a separate step: [Installing X-Pack in Kibana | Kibana User Guide [6.2] | Elastic](https://www.elastic.co/guide/en/kibana/6.2/installing-xpack-kb.html). In more recent versions (6.3+) of the stack, the APM UI is part of the default distribution.

> [@Sajid\_Md](#):
>
> Also, I have a few questions:
> 
> - Which type of data will be pushing into APM server from agent applications.
> - For example, I added an agent for one application that will take the input from one application and insert into DB servers. here which type of logs I can expect into APM server?

You can find a list of the Java agent's supported technologies here: [Supported technologies | APM Java Agent Reference [1.x] | Elastic](https://www.elastic.co/guide/en/apm/agent/java/current/supported-technologies-details.html).

If your application receives input over HTTP, and uses one of the supported frameworks, JVMs, and application servers: then each incoming HTTP request will be reported as a transaction to Elastic APM. If you're using JDBC 4.1+ with a driver compiled for Java 1.5+, then each database operation will be reported as a span.

> [@Sajid\_Md](#):
>
> - In the APM dashboard, I can see a total of 5 tabs for APM in that Span details is not showing for my applications.

I suggest you read through [Troubleshooting | APM Java Agent Reference [1.x] | Elastic](https://www.elastic.co/guide/en/apm/agent/java/current/trouble-shooting.html).

> [@Sajid\_Md](#):
>
> - Error details and Error dashboard tabs will show when we are having errors from applications?

Yes, for example if an exception is raised from within a ServletHandler, then the agent will capture that and report it to Elastic APM.

---

<div class="post-metadata">

**Author:** ![Sajid\_Md](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sajid_md/32/43824_2.png) [@Sajid\_Md](https://discuss.elastic.co/u/Sajid_Md)\
**Post date:** [April 15, 2019, 6:36am UTC](https://discuss.elastic.co/t/what-kind-of-logs-will-push-to-es-via-apm/176830/3 "2019-04-15T06:36:06Z")

</div>

Thanks, @axw for your valuable response.

> [@axw](#):
>
> ![](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sajid_md/40/43824_2.png) Sajid\_Md:

I have added agent jar for one application which will receive the traffic from one application and insert into MYSQL server. but here I can able to span details. also in apm server log, I can see only info logs pushing to the server. Below are the logs (correct me if am wrong as per apm server log)

========  
2019-04-15T10:19:32.603+0500 INFO [request] beater/common\_handlers.go:272 handled request {"request\_id": "1d21543d-3fa1-41af-8d98-c7d34a69452c", "method": "POST", "URL": "/intake/v2/events", "content\_length": -1, "remote\_address": "10.176.11.39", "user-agent": "java-agent/1.5.0", "response\_code": 202}  
2019-04-15T10:19:42.886+0500 INFO [request] beater/common\_handlers.go:272 handled request {"request\_id": "10656613-7c21-4175-a5f3-26b98a2bd991", "method": "POST", "URL": "/intake/v2/events", "content\_length": -1, "remote\_address": "10.176.11.39", "user-agent": "java-agent/1.5.0", "response\_code": 202}

===

Also do we need to modify any applicaiton code to push data from application to APM serrver. ?

---

<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:** [April 15, 2019, 6:58am UTC](https://discuss.elastic.co/t/what-kind-of-logs-will-push-to-es-via-apm/176830/4 "2019-04-15T06:58:55Z")

</div>

> [@Sajid\_Md](#):
>
> I have added agent jar for one application which will receive the traffic from one application and insert into MYSQL server. but here I can able to span details. also in apm server log, I can see only info logs pushing to the server. Below are the logs (correct me if am wrong as per apm server log)

If you can't see the spans, then my suggestion remains: read through [Troubleshooting | APM Java Agent Reference [1.x] | Elastic](https://www.elastic.co/guide/en/apm/agent/java/current/trouble-shooting.html). You may be able to save some time by checking that you're using the supported technologies first.

> [@Sajid\_Md](#):
>
> Also do we need to modify any applicaiton code to push data from application to APM serrver. ?

Assuming you're using supported technologies, no.

---

<div class="post-metadata">

**Author:** ![Sajid\_Md](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sajid_md/32/43824_2.png) [@Sajid\_Md](https://discuss.elastic.co/u/Sajid_Md)\
**Post date:** [April 16, 2019, 7:42am UTC](https://discuss.elastic.co/t/what-kind-of-logs-will-push-to-es-via-apm/176830/5 "2019-04-16T07:42:18Z")

</div>

Hi @axw,

Thanks for your support @axw.

> [@axw](#):
>
> If you can't see the spans, then my suggestion remains: read through [https://www.elastic.co/guide/en/apm/agent/java/current/trouble-shooting.html](https://www.elastic.co/guide/en/apm/agent/java/current/trouble-shooting.html). You may be able to save some time by checking that you're using the supported technologies first.

I have gone through the provided link. while starting my application i can see only INFO logs are loading to APM server (as per logs). but where i can set all the logs to upload into APM server. here am uploading only elastic-apm-agent-1.5.0.jar using javaagent. below is my executable file configuration.

**export JAVA\_OPTS="$JAVA\_OPTS -Delastic.apm.service\_name=MLogServerJ -Delastic.apm.server\_urls=[http://10.176.11.39:9210](http://10.176.11.39:9210) -Delastic.apm.application\_packages=org.example"  
exec /usr/java/jdk1.8.0\_91/bin/java $JAVA\_OPTS -javaagent:./lib/elastic-apm-agent-1.5.0.jar -Dcomponent=mLogserverJ -Xmx3g -classpath ${CLASSPATH} com.imi.mlogserverj.MLogServerJ "/apps/imidigital/mlogserverj/mlogserverj.properties"**  
2019-04-16 12:34:51.346 [apm-server-healthcheck] INFO co.elastic.apm.agent.report.ApmServerHealthChecker - Elastic APM server is available: {"ok":{"build\_date":"2018-11-09T17:48:30Z","build\_sha":"2c46a2919dbe06767caeacbffd0055aab1493991","version":"6.5.0"}}  
2019-04-16 12:34:51.381 [main] INFO co.elastic.apm.agent.configuration.StartupInfo - Starting Elastic APM 1.5.0 as MLogServerJ on Java 1.8.0\_91 (Oracle Corporation) Linux 3.10.0-514.el7.x86\_64

please help me here to push all logs related to that application into APM server.

---

<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:** [April 16, 2019, 8:23am UTC](https://discuss.elastic.co/t/what-kind-of-logs-will-push-to-es-via-apm/176830/6 "2019-04-16T08:23:23Z")

</div>

> [@Sajid\_Md](#):
>
> please help me here to push all logs related to that application into APM server.

Hi Sajid,

our agent don't support sending their logs to the APM Server. They only send traces and metrics to the APM Server.

Is your question about how to ingest your application logs to Elasticsearch? If so, take a look at [Filebeat](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-getting-started.html).

Or are you asking why you don't see traces in the APM UI? If so, please tell me which application server and frameworks you are using. Have you checked that they are listed under the supported technologies? If that matches, please set the `log_level` to `DEBUG`, execute a request against your application and paste the debug logs here.

---

<div class="post-metadata">

**Author:** ![Sajid\_Md](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sajid_md/32/43824_2.png) [@Sajid\_Md](https://discuss.elastic.co/u/Sajid_Md)\
**Post date:** [April 16, 2019, 11:19am UTC](https://discuss.elastic.co/t/what-kind-of-logs-will-push-to-es-via-apm/176830/7 "2019-04-16T11:19:43Z")

</div>

HI @felixbarny,

Thank you for comments.

below is the snapshot of my application logs, which is having info, debug and error logs enable in my application level.

Java APM agent - -javaagent --\> elastic-apm-agent-1.5.0.jar  
Using Java Version - "1.8.0\_91"'

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/d/e/def0112e618cbe62758b9c7b53af5a6bd1319b2a.png)

Also here do we have option to enable all types of logs in **logging.level:** prop in apm-server.yml config file.  
i tried to enable all with comma separate and multiple ways but not worked. could you please help here.

---

<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:** [April 16, 2019, 1:28pm UTC](https://discuss.elastic.co/t/what-kind-of-logs-will-push-to-es-via-apm/176830/8 "2019-04-16T13:28:10Z")

</div>

I can't spot any agent logs here. It's also usually better to upload the full text of the logs, for example via [gist.github.com](http://gist.github.com).

Asking again: which application server and web frameworks are you using?

---

<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:** [May 7, 2019, 9:28am UTC](https://discuss.elastic.co/t/what-kind-of-logs-will-push-to-es-via-apm/176830/9 "2019-05-07T09:28:11Z")

</div>

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