Closed gquintana closed 7 years ago
Can I offer an alternate solution?
Logstash 5.x exposes pipeline metrics for each plugin (especially filter and outputs, right now). This lets you observe time spent in each plugin in your pipeline. Check out this document for more details: https://www.elastic.co/guide/en/logstash/current/node-stats-api.html#pipeline-stats
Can you check into this and see if that works for you?
Wow amazing! Except I have to upgrade from Logstash/ES 2.x :'(
@gquintana If it helps, Logstash 5.x works with Elasticsearch 2.x (we test and support this usage)
The 5.0+ logstash metrics api shows per-plugin counts and other stats. I think we can resolve this.
It would be amazing if we could write something like
I tried adding in the filter something like
Sadly it doesn't work as expected because the Java event doesn't allow to store a Ruby object (Metriks::Time) in it: