Unfortunately there isn't any way to filter based off of the result of an aggregation. You could filter where the value for each document in duration_ms is 3000, but not the result of the average.
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.