We are trying to create a transform using painless scripts for aggregations, such as explained here.
In Kibana's dev tools, we use Transforms Preview and it works wonderfully.
However, whenever we want to post the transform via API or through Kibana' transform creation interface, it seems that ES won't accept the triple quotes.
Triple quotes are a formatting nicety of Kibana. When it posts to the elasticsearch API however it converts it into legal JSON without the triple quotes. You can see this if you open the "network" part of Chrome's developer tools to see what content is actually sent to elasticsearch.
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.