# JMX plugin logstash. Configuration for retreive process.pid , process.nb\_thread?

**URL:** <https://discuss.elastic.co/t/jmx-plugin-logstash-configuration-for-retreive-process-pid-process-nb-thread/375457>\
**Category:** Logstash\
**Created:** [March 5, 2025, 12:40pm UTC](https://discuss.elastic.co/t/jmx-plugin-logstash-configuration-for-retreive-process-pid-process-nb-thread/375457 "2025-03-05T12:40:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![martel](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@martel](https://discuss.elastic.co/u/martel)\
**Post date:** [March 5, 2025, 12:40pm UTC](https://discuss.elastic.co/t/jmx-plugin-logstash-configuration-for-retreive-process-pid-process-nb-thread/375457/1 "2025-03-05T12:40:15Z")

</div>

i want add metrics to the JMX information from process.  
i want add pid, the number of thread for this pid, etc...

i cant try the good query:  
"queries" : [  
{  
"object\_name" : "java.lang:type=Memory",  
"object\_alias" : "Memory"  
},

anyone have the good object\_name ?

thanks
