# Lifecycle policy

**URL:** <https://discuss.elastic.co/t/lifecycle-policy/186795>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [June 21, 2019, 4:43am UTC](https://discuss.elastic.co/t/lifecycle-policy/186795 "2019-06-21T04:43:21Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![thekm1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thekm1/32/35926_2.png) [@thekm1](https://discuss.elastic.co/u/thekm1)\
**Post date:** [June 21, 2019, 8:18am UTC](https://discuss.elastic.co/t/lifecycle-policy/186795/11 "2019-06-21T08:18:22Z")

</div>

Ok you got actually 2 errors.

Your visualisations are also pointing to the old index. did you try deleting all visualisations and dashboards from metricbeat and runnning the `metricbeat setup --dashboards` ? because the setting `setup.dashboards.index`should be enough to point to the correct index-pattern

Then check if the index is pointed correctly. You would have need to create a new index-pattern in kibana which is pointing to systembeat-\* with systembeat-\* as id. You can provide a custom id during the index-pattern creation.

The other error which you have seems to be a permission error. If you still have that error then try this [discuss matter](https://discuss.elastic.co/t/kibana-the-aggregations-key-is-missing-from-the-response-error/147717)

Hope this helps

---

_[View the full topic](https://discuss.elastic.co/t/lifecycle-policy/186795)._
