# Topbeat monitor specific java process

**URL:** <https://discuss.elastic.co/t/topbeat-monitor-specific-java-process/65594>\
**Category:** Beats\
**Created:** [November 10, 2016, 7:34am UTC](https://discuss.elastic.co/t/topbeat-monitor-specific-java-process/65594 "2016-11-10T07:34:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrunalgosar](https://avatars.discourse-cdn.com/v4/letter/m/eada6e/32.png) [@mrunalgosar](https://discuss.elastic.co/u/mrunalgosar)\
**Post date:** [November 10, 2016, 7:34am UTC](https://discuss.elastic.co/t/topbeat-monitor-specific-java-process/65594/1 "2016-11-10T07:34:11Z")

</div>

Hi I would like to use topbeat to monitor certain specific java processes. For example: If i set

> procs: ["java"]

Then it is showing me all the processes running as java. But in my use case on that server there are multiple applications and java processes running which is not relevant to me and i do not wish to capture their metrics at all. I only wish to capture java processes running for my application. My specific java processes have certain special strings in the command line which can be used to filter amongst the list. Let me know how this can be achieved.

---

<div class="post-metadata">

**Author:** ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)\
**Post date:** [November 10, 2016, 11:52am UTC](https://discuss.elastic.co/t/topbeat-monitor-specific-java-process/65594/2 "2016-11-10T11:52:59Z")

</div>

First I recommend to "upgrade" to metricbeat. If you then use the process metricset you see there is the cmdline in the data: [https://www.elastic.co/guide/en/beats/metricbeat/5.0/metricbeat-metricset-system-process.html](https://www.elastic.co/guide/en/beats/metricbeat/5.0/metricbeat-metricset-system-process.html) This should help in your case I think? Let me know if that works.

---

<div class="post-metadata">

**Author:** ![mrunalgosar](https://avatars.discourse-cdn.com/v4/letter/m/eada6e/32.png) [@mrunalgosar](https://discuss.elastic.co/u/mrunalgosar)\
**Post date:** [November 11, 2016, 9:54am UTC](https://discuss.elastic.co/t/topbeat-monitor-specific-java-process/65594/3 "2016-11-11T09:54:51Z")

</div>

I upgraded this but there is no option to specify specific command line strings. I do see a way out like using the command property while filtering in kibana. But i would like to fix it in the source itself and not capture metrics for anything apart from my application

---

<div class="post-metadata">

**Author:** ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)\
**Post date:** [November 11, 2016, 12:03pm UTC](https://discuss.elastic.co/t/topbeat-monitor-specific-java-process/65594/4 "2016-11-11T12:03:35Z")

</div>

What I was refering to are the filters / processors we introduced in 5.0: [https://www.elastic.co/guide/en/beats/filebeat/5.0/filtering-and-enhancing-data.html#defining-processors](https://www.elastic.co/guide/en/beats/filebeat/5.0/filtering-and-enhancing-data.html#defining-processors) You can use them on any field.

---

<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:** [December 9, 2016, 12:03pm UTC](https://discuss.elastic.co/t/topbeat-monitor-specific-java-process/65594/5 "2016-12-09T12:03:42Z")

</div>

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