Timelion- aggreation on aggregation (max (avg) )

I am using kibana 5.6.3
I am getting x events every minute
I would like to take an interval (according to my bucket size ) and do :

max((event1.value+event2.value ...+eventN.value)/N) =x

one thing I ca do is

max (sum(event1.value,event2.value.,eventN.value)/N) = x

and in the end :

max(AVG(event1.value....eventN.value))=x

which means max (avg) , how can I do it using timelion ?

how can I do it

UPDATE
managed to do it by doing .max(term_which return_time_series)

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