# Monotoring Apache tomcat server with ELK APM

**URL:** https://discuss.elastic.co/t/monotoring-apache-tomcat-server-with-elk-apm/134425
**Category:** APM
**Created:** [June 4, 2018, 12:44pm UTC](https://discuss.elastic.co/t/monotoring-apache-tomcat-server-with-elk-apm/134425 "2018-06-04T12:44:02Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![ashok9177](https://avatars.discourse-cdn.com/v4/letter/a/edb3f5/32.png) [@ashok9177](https://discuss.elastic.co/u/ashok9177)
#### Post date: [June 4, 2018, 12:44pm UTC](https://discuss.elastic.co/t/monotoring-apache-tomcat-server-with-elk-apm/134425/1 "2018-06-04T12:44:03Z")

</div>

Hello team,

I have elk setup with x-pack features and I am using filebeat as data shipper.

is it possible to enable monitoring in Apache- Tomcat (which is running my java app) with elk APM? if yes which agent should i install?

---

<div class="post-metadata">

### Author: ![aravindputrevu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aravindputrevu/32/24816_2.png) [@aravindputrevu](https://discuss.elastic.co/u/aravindputrevu)
#### Post date: [June 5, 2018, 6:38am UTC](https://discuss.elastic.co/t/monotoring-apache-tomcat-server-with-elk-apm/134425/2 "2018-06-05T06:38:46Z")

</div>

Hi Ashok,

Application Performance monitoring as the name says is for the Application running on your Server. For Server monitoring, we have Beats framework, which would help you extract all the details of the Apache Tomcat. For example you can try Metricbeat for getting metrics of tomcat server.

APM effectively monitors your application and reports if there are any errors. For Java application you can use our Java Agent and APM Server to send the data to elasticsearch.

Please note that our Java Agent is in Alpha and not GA'ed yet.

References:

1. [https://www.elastic.co/guide/en/beats/metricbeat/current/metricbeat-getting-started.html](https://www.elastic.co/guide/en/beats/metricbeat/current/metricbeat-getting-started.html)
2. [https://www.elastic.co/guide/en/beats/metricbeat/current/metricbeat-module-apache.html](https://www.elastic.co/guide/en/beats/metricbeat/current/metricbeat-module-apache.html)
3. [https://www.elastic.co/guide/en/apm/get-started/current/index.html](https://www.elastic.co/guide/en/apm/get-started/current/index.html)
4. [https://www.elastic.co/guide/en/apm/agent/java/current/index.html](https://www.elastic.co/guide/en/apm/agent/java/current/index.html)

Happy to help!

---

<div class="post-metadata">

### Author: ![ashok9177](https://avatars.discourse-cdn.com/v4/letter/a/edb3f5/32.png) [@ashok9177](https://discuss.elastic.co/u/ashok9177)
#### Post date: [June 5, 2018, 8:28am UTC](https://discuss.elastic.co/t/monotoring-apache-tomcat-server-with-elk-apm/134425/3 "2018-06-05T08:28:11Z")

</div>

Hello Aravind, Thanks for your response i have installed node.js agent in tomcat folder. it's not collecting any metrics, can you please suggest me in which file should i configure below code to start agent

`/ Add this to the VERY top of the first file loaded in your app  
var apm = require('elastic-apm-node').start({  
// Set required service name (allowed characters: a-z, A-Z, 0-9, -, \_, and space)  
serviceName: '',

// Use if APM Server requires a token  
secretToken: '',

// Set custom APM Server URL (default: [http://localhost:8200](http://localhost:8200))  
serverUrl: '',  
})`

---

<div class="post-metadata">

### Author: ![aravindputrevu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aravindputrevu/32/24816_2.png) [@aravindputrevu](https://discuss.elastic.co/u/aravindputrevu)
#### Post date: [June 6, 2018, 6:55am UTC](https://discuss.elastic.co/t/monotoring-apache-tomcat-server-with-elk-apm/134425/4 "2018-06-06T06:55:41Z")

</div>

Hi Ashok,

Again, APM is a solution to monitor your applications. It requires you to add the lines of code in your application's entry point.

For example, if you want to monitor a Java app, you should import that JAR in the application and add relevant lines of code in the application's entry point file like `main.java`

We have agents for Nodejs, Python, Ruby, Java. I'd advise you to read the [relevant](https://www.elastic.co/guide/en/apm/get-started/current/index.html)` documentation

---

<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: [June 27, 2018, 2:55am UTC](https://discuss.elastic.co/t/monotoring-apache-tomcat-server-with-elk-apm/134425/5 "2018-06-27T02:55:46Z")

</div>

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