Elasticsearch Transform API - Trying to Script a Moving Average

My use case requieres keeping the moving average over hours withing a windows of the last 12 hours, every time the transofrm is executed.
It's possible to use the "pivot" "group by" to program a transform that keeps track of the moving average?

My other option is think in logstash using http input, elasticsearcher as input, or filter and making the agregation every hour.

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