I am using metricbeat to monitor storage for a specific mount_point on Linux machine. In order to get to data for that mount_point I am using the drop_event.when.regexp.mount_point filter in the metricbeat.yaml.
Here is the filter config. I want all the mount_points other than '/' to be filtered out from the beats output.
- module: system
enabled: true
period: 10s
metricsets:
- cpu
- memory
- filesystem
filters:
- drop_event.when.regexp.mount_point: '/[a-zA-Z0-9//]+'
This solution does not work on Ubuntu 14.0.04 machine. No matter what RegEx I use I get data for all mount_points on the system which are
The version of metricbeat we are using is 6.0.0. I see that the example you pointed configures the filter differently. I tried that and failed. Will try that again and respond shortly.
Also I did not see the log message with the mount_point regex in the logs.
Looks like this is the only filter configuration that is actually processed by the system. As I can see the log messages reading the same. Hoever it does not really excludes the mount_points.
#------------------------------- System Module -------------------------------
module: system
enabled: true
period: 10s
metricsets:
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.