# Unable to get metrics for single process in metricbeat 6.2.2

**URL:** <https://discuss.elastic.co/t/unable-to-get-metrics-for-single-process-in-metricbeat-6-2-2/125611>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [March 26, 2018, 1:16pm UTC](https://discuss.elastic.co/t/unable-to-get-metrics-for-single-process-in-metricbeat-6-2-2/125611 "2018-03-26T13:16:29Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![krishsai04](https://avatars.discourse-cdn.com/v4/letter/k/d6d6ee/32.png) [@krishsai04](https://discuss.elastic.co/u/krishsai04)\
**Post date:** [March 26, 2018, 1:16pm UTC](https://discuss.elastic.co/t/unable-to-get-metrics-for-single-process-in-metricbeat-6-2-2/125611/1 "2018-03-26T13:16:29Z")

</div>

Hi,

I am unable to get metrics for single process (custom c# console application) in metricbeat 6.2.2. I have configured metricbeat.yml properly,Can anyone tell me whats going wrong in below configuration.

metricbeat.config.modules:  
path: ${path.config}/modules.d/\*.yml  
reload.enabled: true  
metricbeat.modules:

- module: system  
metricsets:
  - cpu
  - filesystem
  - memory
  - network
  - process  
enabled: true  
period: 10s  
processes: ['consolesssms.exe']

Thanks in advance !!!

---

<div class="post-metadata">

**Author:** ![kvch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kvch/32/72058_2.png) [@kvch](https://discuss.elastic.co/u/kvch)\
**Post date:** [March 28, 2018, 1:24pm UTC](https://discuss.elastic.co/t/unable-to-get-metrics-for-single-process-in-metricbeat-6-2-2/125611/2 "2018-03-28T13:24:15Z")

</div>

Please attach your full configuration. Also, format it using `</>`.  
What is the failure? Do you see any error messages in your logs? Could you attach your full debug logs (`./metricbeat -e -d "*"`)?

---

<div class="post-metadata">

**Author:** ![krishsai04](https://avatars.discourse-cdn.com/v4/letter/k/d6d6ee/32.png) [@krishsai04](https://discuss.elastic.co/u/krishsai04)\
**Post date:** [March 29, 2018, 2:09pm UTC](https://discuss.elastic.co/t/unable-to-get-metrics-for-single-process-in-metricbeat-6-2-2/125611/3 "2018-03-29T14:09:43Z")

</div>

Below is the full configuration,Let me know whats going wrong.. It would be very helpful if you can provide me sample for system \>\> Process \>\> processes module

\<  
metricbeat.config.modules:  
? "-module"  
: system  
metricbeat.modules: ~  
metricsets:  
- process  
path: "${path.config}/modules.d/\*.yml"  
processes:  
- [^consolessms.exe$]  
reload.enabled: true  
output.elasticsearch:  
hosts:  
- ["12.25.55.98:9200"]  
setup.dashboards.enabled: true  
setup.dashboards.url: ~  
setup.kibana:  
host: "12.25.55.98:5601"  
setup.template.settings:  
index.codec: best\_compression  
index.number\_of\_shards: 1  
xpack.monitoring.elasticsearch: ~  
xpack.monitoring.enabled: false /\>

---

<div class="post-metadata">

**Author:** ![kvch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kvch/32/72058_2.png) [@kvch](https://discuss.elastic.co/u/kvch)\
**Post date:** [April 4, 2018, 8:05am UTC](https://discuss.elastic.co/t/unable-to-get-metrics-for-single-process-in-metricbeat-6-2-2/125611/4 "2018-04-04T08:05:28Z")

</div>

Could you provide debug logs also?

---

<div class="post-metadata">

**Author:** ![krishsai04](https://avatars.discourse-cdn.com/v4/letter/k/d6d6ee/32.png) [@krishsai04](https://discuss.elastic.co/u/krishsai04)\
**Post date:** [April 15, 2018, 6:45am UTC](https://discuss.elastic.co/t/unable-to-get-metrics-for-single-process-in-metricbeat-6-2-2/125611/5 "2018-04-15T06:45:08Z")

</div>

hello kvch,

```
 I am trying to know the format/syntax to get metrics of a single process.. Not sure why you are asking logs etc

```

I have followed steps during installation and added [^consolessms.exe$] to get metrics of only consolessms.exe process, but its not working fine and loading all the metrics into elasticsearch.

Let me know if [^consolessms.exe$] syntax is correct. If not Please provide me the format of process -\> processes tag to get metrics of single process in a machine.

Thanks,

---

<div class="post-metadata">

**Author:** ![kvch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kvch/32/72058_2.png) [@kvch](https://discuss.elastic.co/u/kvch)\
**Post date:** [April 16, 2018, 9:26am UTC](https://discuss.elastic.co/t/unable-to-get-metrics-for-single-process-in-metricbeat-6-2-2/125611/6 "2018-04-16T09:26:21Z")

</div>

Your regex seems fine. Could you please format your configuration properly using `</>` so I can validate that there isn't any whitespace error?  
I am asking for the debug logs, because it might tell us what is going wrong in Metricbeat.

---

<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 14, 2018, 9:26am UTC](https://discuss.elastic.co/t/unable-to-get-metrics-for-single-process-in-metricbeat-6-2-2/125611/7 "2018-05-14T09:26:31Z")

</div>

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