Usage Stored Scripts in the Timelion query

Hi all,

I have a lot of docs and I would like to create visualization with Timelion. But basic tools doesn't give ability to calculate all conditions. Therefore I wrote a painless script which calculate necessary Dates List. In the past version (5.2) I used next query

.es( index='index', 
     kibana='true', 
     timeFilter='( _exists_:failed_when_timestamps OR _exists_:blocked_when_timestamps )', 
     script='BackloggedDates', 
     scriptType='file', 
     scriptParams='{"fields":[...]}')

Now this construction doesn't work.

I would like to take info about script and scriptType attributes. Internet search returned no results.

Can you please provide some sample documents from Elasticsearch that you use with this query?

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