# Specific mount point monitoring using Metricbeat

**URL:** <https://discuss.elastic.co/t/specific-mount-point-monitoring-using-metricbeat/87548>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [May 30, 2017, 10:03am UTC](https://discuss.elastic.co/t/specific-mount-point-monitoring-using-metricbeat/87548 "2017-05-30T10:03:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![raazeev64](https://avatars.discourse-cdn.com/v4/letter/r/7feea3/32.png) [@raazeev64](https://discuss.elastic.co/u/raazeev64)\
**Post date:** [May 30, 2017, 10:03am UTC](https://discuss.elastic.co/t/specific-mount-point-monitoring-using-metricbeat/87548/1 "2017-05-30T10:03:18Z")

</div>

I want to monitor only limited number of mount points using metric beat. How do I filter out the rest?

I did come across a filter -

> filters:  
> - drop\_event.when.regexp.mount\_point: '^/(sys|cgroup|proc|dev|etc|host)($|/)'

Is this the only option around? This is for exclusion but not inclusion(which I require). This can be tweaked to somewhat serve my purpose but if only I do not get anything.

> filters:  
> - drop\_event.when.regexp.mount\_point: ^((?!(/opt/apache|/opt/avamar/6)).)\*$'

---

<div class="post-metadata">

**Author:** ![exekias](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/exekias/32/28718_2.png) [@exekias](https://discuss.elastic.co/u/exekias)\
**Post date:** [May 30, 2017, 4:12pm UTC](https://discuss.elastic.co/t/specific-mount-point-monitoring-using-metricbeat/87548/2 "2017-05-30T16:12:12Z")

</div>

Probably you can use `not` condition here, take a look to [https://www.elastic.co/guide/en/beats/filebeat/current/configuration-processors.html#condition-not](https://www.elastic.co/guide/en/beats/filebeat/current/configuration-processors.html#condition-not)

---

<div class="post-metadata">

**Author:** ![raazeev64](https://avatars.discourse-cdn.com/v4/letter/r/7feea3/32.png) [@raazeev64](https://discuss.elastic.co/u/raazeev64)\
**Post date:** [June 1, 2017, 7:01pm UTC](https://discuss.elastic.co/t/specific-mount-point-monitoring-using-metricbeat/87548/3 "2017-06-01T19:01:32Z")

</div>

Thank you so much @exekias.  
This worked for me.

Below is a working sample -

> filters:  
> - drop\_event:  
> when:  
> and:  
> - not:  
> equals:  
> mount\_point: "/"  
> - not:  
> equals:  
> mount\_point: "/boot"  
> - not:  
> equals:  
> mount\_point: "/home"  
> - not:  
> equals:  
> mount\_point: "/images"

---

<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:** [June 29, 2017, 7:02pm UTC](https://discuss.elastic.co/t/specific-mount-point-monitoring-using-metricbeat/87548/4 "2017-06-29T19:02:12Z")

</div>

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