# The request for this panel failed. The aggregations key is missing

**URL:** https://discuss.elastic.co/t/the-request-for-this-panel-failed-the-aggregations-key-is-missing/159575
**Category:** Beats
**Tags:** metricbeat
**Created:** [December 5, 2018, 5:06pm UTC](https://discuss.elastic.co/t/the-request-for-this-panel-failed-the-aggregations-key-is-missing/159575 "2018-12-05T17:06:54Z")
**Posts on this page:** 1
**Showing post:** 9

<div class="post-metadata">

### Author: ![ggoodenough](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ggoodenough/32/39061_2.png) [@ggoodenough](https://discuss.elastic.co/u/ggoodenough)
#### Post date: [December 14, 2018, 4:10pm UTC](https://discuss.elastic.co/t/the-request-for-this-panel-failed-the-aggregations-key-is-missing/159575/9 "2018-12-14T16:10:41Z")

</div>

Sorry. The code i posted was not what I ran against my data. Here's what I ran:

```
PUT metricbeat-*/_mapping/doc
{
  "properties": {
    "DATAFIELDTOBEALTERED": { 
      "type": "text",
      "fielddata": true
    }
  }
}

```

I ran this against the various fields the visualizations complained about.

I didn't reload the template from 6.5.1, so maybe that is an issue. I ran "GET \_template/metricbeat" which returns a huge ~10K line template. That's what you want me to post? Finally, you're looking for the /var/log/metricbeat logs?

---

_[View the full topic](https://discuss.elastic.co/t/the-request-for-this-panel-failed-the-aggregations-key-is-missing/159575)._
