# Metricbeat process, what regex filter to exclude processes

**URL:** <https://discuss.elastic.co/t/metricbeat-process-what-regex-filter-to-exclude-processes/218709>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [February 11, 2020, 5:35am UTC](https://discuss.elastic.co/t/metricbeat-process-what-regex-filter-to-exclude-processes/218709 "2020-02-11T05:35:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MagicNotElastic](https://avatars.discourse-cdn.com/v4/letter/m/8c91f0/32.png) [@MagicNotElastic](https://discuss.elastic.co/u/MagicNotElastic)\
**Post date:** [February 11, 2020, 5:35am UTC](https://discuss.elastic.co/t/metricbeat-process-what-regex-filter-to-exclude-processes/218709/1 "2020-02-11T05:35:17Z")

</div>

Hi,

Simple question here.  
I'd wish to exclude some processes, what regex flavour should be used, I get errors when using this:

- module: system  
period: 10s  
metricsets:
  - process  
processes: ['^((?!taskhostw|dllhost|svchost).)\*$']

---

<div class="post-metadata">

**Author:** ![Michael\_Madden](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/michael_madden/32/46640_2.png) [@Michael\_Madden](https://discuss.elastic.co/u/Michael_Madden)\
**Post date:** [February 16, 2020, 2:44am UTC](https://discuss.elastic.co/t/metricbeat-process-what-regex-filter-to-exclude-processes/218709/2 "2020-02-16T02:44:51Z")

</div>

Hello,

Thanks for reaching out. I'd recommend reviewing the following doc on regular expression support in metricbeat.

[https://www.elastic.co/guide/en/beats/metricbeat/current/regexp-support.html](https://www.elastic.co/guide/en/beats/metricbeat/current/regexp-support.html)

Please let us know if you have further questions.

---

<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:** [March 15, 2020, 2:44am UTC](https://discuss.elastic.co/t/metricbeat-process-what-regex-filter-to-exclude-processes/218709/3 "2020-03-15T02:44:57Z")

</div>

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