I'm trying to build funnel using scripted_metric aggregation.
I got the error "painless script loop maximum number of statements limit".
I have to iterate through large number of events to count and calculate "time_spent" between two steps.
I read https://github.com/elastic/elasticsearch/issues/22508. The maxLoopCounter is 1M.
Is there any chance that I can set maxLoopCounter ?