# Same template created every minute

**URL:** <https://discuss.elastic.co/t/same-template-created-every-minute/302623>\
**Category:** Elasticsearch\
**Created:** [April 18, 2022, 1:23pm UTC](https://discuss.elastic.co/t/same-template-created-every-minute/302623 "2022-04-18T13:23:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![stk1](https://avatars.discourse-cdn.com/v4/letter/s/ee59a6/32.png) [@stk1](https://discuss.elastic.co/u/stk1)\
**Post date:** [April 18, 2022, 1:23pm UTC](https://discuss.elastic.co/t/same-template-created-every-minute/302623/1 "2022-04-18T13:23:39Z")

</div>

Hi,

we are using Elasticsearch with Kibana and APM-Server for monitoring since two years. Since 3 weeks we are experiencing massive problems. First Kibana stopped due to a corrupted translog (TranslogCorruptedException) in index .kibana\_task\_manager\_7.17.1\_001. For this I used

`elasticsearch-shard remove-corrupted-data`

and a subsequent \_cluster/reroute. After that Kibana complained about the missing shard so I deleted and recreated the index. After this Kibana worked again. But the problem with the APM-Server remained: it cannot send data to Elasticsearch. The error message is not really helpful: `failed to publish events: temporary bulk send failure`. Kibana and Elasticsearch are version 7.17, the APM-Server is 7.15. Since it worked without a problem for a while the different versions might not be a problem. One thing that is strange is this line in the Elasticsearch log file:

`[o.e.c.m.MetadataIndexTemplateService] [node-1] adding template [apm-7.15.0] for index patterns [apm-7.15.0*]`

This is repeated EVERY minute. When doing `GET /_index_template/apm-7.15.0` than an error is returned that no such template exists.

The current cluster status is red, which may be due to several unassigned primary shards (also due to corrupted):

`"failed shard on node [_HRONvKmRNmrRUGdZUG1uQ]: shard failure, reason [failed to recover from translog], failure EngineException[failed to recover from translog]; nested: TranslogCorruptedException[translog from source [.../elasticsearch/nodes/0/indices/iX6Wk--TTji3HYCe0qBfrw/0/translog/translog-50.tlog] is corrupted, translog truncated]; nested: EOFException[read past EOF. pos [2293] length: [4] end: [2293]]; ", `

Hope someone can help. Thanks!  
Stephan Knopp

---

<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:** [May 16, 2022, 1:24pm UTC](https://discuss.elastic.co/t/same-template-created-every-minute/302623/2 "2022-05-16T13:24:17Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
