I believe the derivative aggregation would work within the same aggregation ? I want to perform the difference between values of two separate aggregations:
As per my original code I tried to do this using a script and getting the below error
{
"type": "aggregation_execution_exception",
"reason": "Invalid pipeline aggregation named [cmtsDerivative] of type [bucket_script]. Only sibling pipeline aggregations are allowed at the top level"
},
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.