Painless maxLoopCounter

Hi guys,

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 ?

You can modify this number and re-compile the source code :smiley:

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