Scripted filed is not working


I created scripted field on numeric field with following expression and painless script,


but its not working.
I am using ELK - 5.4.0 version

its not giving any error, but values always are 1's or 0's
Can somebody please help with this.

Also Is there any way to calculate count like doc['field'].count().

Thanks in advance



Where did you find a reference to those sum and count methods?

In Kibana, scripted fields transform one or more document values into a new value (on a per document basis).

To get started, see:

Hi thomas,

Please look into the following link,


That link seems to be for array-values for a document, not over all the documents in the index.

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