# APM index not refreshing in Kibana - getting Mapper exception

**URL:** <https://discuss.elastic.co/t/apm-index-not-refreshing-in-kibana-getting-mapper-exception/243063>\
**Category:** APM\
**Tags:** server, ui\
**Created:** [July 29, 2020, 1:35pm UTC](https://discuss.elastic.co/t/apm-index-not-refreshing-in-kibana-getting-mapper-exception/243063 "2020-07-29T13:35:44Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![gil](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gil/32/41911_2.png) [@gil](https://discuss.elastic.co/u/gil)\
**Post date:** [July 31, 2020, 2:55pm UTC](https://discuss.elastic.co/t/apm-index-not-refreshing-in-kibana-getting-mapper-exception/243063/5 "2020-07-31T14:55:12Z")

</div>

It's possible to enable dynamic mappings for headers though I would only recommend this if the number of headers is reasonably bounded. Configure `apm-server.yml` with:

```auto
setup.template.append_fields:
- name: "http.response.headers"
  type: object
  enabled: true
  dynamic: true

```

I expect all fields will then be mapped as `keyword` type, including those like `Content-Length` and `Date`.

---

_[View the full topic](https://discuss.elastic.co/t/apm-index-not-refreshing-in-kibana-getting-mapper-exception/243063)._
