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)).)*$'