I am sending metricbeat data via logstash input into elasticsearch and would like to set up a notification on low disk space.
I tried something like:
output {
if [type] == "beats" and [metricset][name] == "filesystem" and
[system][filesystem][used][pct] >= 0.5000 and "throttled" not in [tags] {
#
# Send notification.
#
}
}
But I am getting an error:
ClassCastException: class org.jruby.RubyFloat cannot be cast to class java.lang.Long
(org.jruby.RubyFloat is in unnamed module of loader 'app'; java.lang.Long
is in module java.base of loader 'bootstrap'),
Is there an elegant way to trigger based on beat disk usage [system][filesystem][used][pct]
?