calculate average count 3. average count / minimum interval: second(3h = 10800)
Second, Not Working case
aggregation: average bucket
bucket: date histogram, field: @timestamp, minimum interval: second metric: unique count, field: primary key field
The problem seems exactly the one you highlighted: the 1 aggregation value (67.162162 or 16.405) is the average of the returned buckets. The interval is internally reconfigured to a safer value (from a bucket every second to a 3h bucket). When the interval is reconfigured, we should divide the average but that number. This happens for the standard count but not for the unique unfortunately
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.