I should be more specific about what happens here. The old Metricbeat template causes new data to have the wrong mapping. If preserving data is required, then these steps should work:
- place a write block on the "bad"
metricbeat-<version>.*
index withindex.blocks.write: true
- delete the old template
- reindex the bad index it to an index with a different name
- delete the bad index
The new Metricbeat will then be free to index to metricbeat-<version>
without a mapping conflict.