I asked a question on Stackoverflow but nobody seems to have a solution for my request.
I would like to use the moving average bucket as input source for a another aggregation.
ex: Max by day on the moving average (4 hours)
Document (timestamp, value)
How can I do it ?