# Is there any way to exclude Windows Drive on the metricbeat configuration?

**URL:** <https://discuss.elastic.co/t/is-there-any-way-to-exclude-windows-drive-on-the-metricbeat-configuration/296547>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [February 8, 2022, 4:28am UTC](https://discuss.elastic.co/t/is-there-any-way-to-exclude-windows-drive-on-the-metricbeat-configuration/296547 "2022-02-08T04:28:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gustavo\_Garcia](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gustavo_garcia/32/101512_2.png) [@Gustavo\_Garcia](https://discuss.elastic.co/u/Gustavo_Garcia)\
**Post date:** [February 8, 2022, 4:28am UTC](https://discuss.elastic.co/t/is-there-any-way-to-exclude-windows-drive-on-the-metricbeat-configuration/296547/1 "2022-02-08T04:28:09Z")

</div>

Hello everyone,

I have some Windows Servers that have SWAP (pagefile.sys) configured and located in a small disk. As this is a "Standard Configuration" there are lot of events related to this as the disk is almost full all the time. Is there any way to exclude the Drive D: from the metricbeat?

On Linux there is an option to drop any event when a regular expression match for the filesystem mountpoints:

```auto
  - drop_event.when.regexp:
      system.filesystem.mount_point: '^/(sys|cgroup|proc|dev|etc|host|lib)($|/)'

```

Is there any similar configuration for Windows to exclude the Drive D:?

Thank you!  
Gus

---

<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 8, 2022, 6:29am UTC](https://discuss.elastic.co/t/is-there-any-way-to-exclude-windows-drive-on-the-metricbeat-configuration/296547/2 "2022-03-08T06:29:08Z")

</div>

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