So are you trying to get the value of the unique_count field multiplied by 5? If so, then just using doc['f_agenda'].value * 5 inside a Painless scripted field or script.
If you need anything else calculated using Painless, let us know and we'll try and help.
Then this can't be solved using scripted fields. A scripted field only works in the context of the document, it cannot access values from another document, so you cannot get the unique count over a time period.
What you can do is use Timelion and draw this using the expression: .es(metric=cardinality:f_agenda).multiply(5)
I can't use Timelion.
I show an example that visualization that I want to get. In this case I want to draw other bar with the unique count of f_agenda'].value * 5
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.