# Pipeline Aggregations: Parse Failure Could not find aggregator type avg\_bucket

**URL:** <https://discuss.elastic.co/t/pipeline-aggregations-parse-failure-could-not-find-aggregator-type-avg-bucket/44847>\
**Category:** Elasticsearch\
**Created:** [March 18, 2016, 3:14pm UTC](https://discuss.elastic.co/t/pipeline-aggregations-parse-failure-could-not-find-aggregator-type-avg-bucket/44847 "2016-03-18T15:14:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![benBA](https://avatars.discourse-cdn.com/v4/letter/b/b5a626/32.png) [@benBA](https://discuss.elastic.co/u/benBA)\
**Post date:** [March 18, 2016, 3:14pm UTC](https://discuss.elastic.co/t/pipeline-aggregations-parse-failure-could-not-find-aggregator-type-avg-bucket/44847/1 "2016-03-18T15:14:40Z")

</div>

Hi,

I am trying to query Elasticsearch to show for each week, the average count of documents per day. I understand I must use the pipeline aggregation to achieve this, however I am having an issue with it...

This is my request (that I am firing from UNIX command line):

```
curl -XGET '<host>:<port>/<indices>/_search' -d '
{
   "size" : 0,
   "aggs" : { 
      "weekly_agg" : {
         "date_histogram" : {
            "field" : "@timestamp",
            "interval" : "week"
         },
         "aggs" : {
            "daily_agg" : {
               "date_histogram" : {
                  "field" : "@timestamp",
                  "interval" : "day"
               }
            }
         }
      },
      "avg_monthly_daily_count" : {
         "avg_bucket" : {
            "buckets_path" : "weekly_agg>daily_agg"
         }
      }
   }
}'

```

Host, port, and index names are masked as above for security reasons. From this request the response boils down to:

`Parse Failure [Could not find aggregator type [avg_bucket] in [avg_monthly_daily_count]]]; }]","status":400}`

Unfortunately I cannot show the entire response as it reveals too much about our set up. Please let me know if you need more information.

Cheers,  
Ben

---

<div class="post-metadata">

**Author:** ![benBA](https://avatars.discourse-cdn.com/v4/letter/b/b5a626/32.png) [@benBA](https://discuss.elastic.co/u/benBA)\
**Post date:** [March 18, 2016, 4:08pm UTC](https://discuss.elastic.co/t/pipeline-aggregations-parse-failure-could-not-find-aggregator-type-avg-bucket/44847/2 "2016-03-18T16:08:37Z")

</div>

I have just found that the reason of this is because pipeline aggregations requires a higher version than the one installed at the company.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 5, 2017, 11:07pm UTC](https://discuss.elastic.co/t/pipeline-aggregations-parse-failure-could-not-find-aggregator-type-avg-bucket/44847/3 "2017-07-05T23:07:06Z")

</div>


