# Reindex metricbeat indices

**URL:** <https://discuss.elastic.co/t/reindex-metricbeat-indices/165806>\
**Category:** Elasticsearch\
**Created:** [January 25, 2019, 4:06pm UTC](https://discuss.elastic.co/t/reindex-metricbeat-indices/165806 "2019-01-25T16:06:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![IVO\_FERNANDES](https://avatars.discourse-cdn.com/v4/letter/i/45deac/32.png) [@IVO\_FERNANDES](https://discuss.elastic.co/u/IVO_FERNANDES)\
**Post date:** [January 25, 2019, 4:06pm UTC](https://discuss.elastic.co/t/reindex-metricbeat-indices/165806/1 "2019-01-25T16:06:24Z")

</div>

Hello everyone,

I am having some trouble using the **reindex API** to change the settings of metricbeat indexes. My idea is to reindex the original indexes to a new index with just a single shard and 0 replicas.

The new index is created without trouble and the reindex is started but after a while I get the error:

> {"type":"search\_context\_missing\_exception","reason":"No search context found for id [592099]"}

I looked at similar issues like this one: [Problem when reindexing large index - #3 by Juris\_Rats](https://discuss.elastic.co/t/problem-when-reindexing-large-index/117421/3) and tried the solution proposed. I reduced the batch size to 100 and then to 10. Both still led to the error.

Some stats:

- ES version: 6.5.4
- Metricbeat index version: 6.1.1
- Size of metricbeat index: 3.5Gb

I would appreciate any suggestions that might lead to understanding this issue.  
Thanks,  
Ivo

---

<div class="post-metadata">

**Author:** ![IVO\_FERNANDES](https://avatars.discourse-cdn.com/v4/letter/i/45deac/32.png) [@IVO\_FERNANDES](https://discuss.elastic.co/u/IVO_FERNANDES)\
**Post date:** [January 29, 2019, 4:27pm UTC](https://discuss.elastic.co/t/reindex-metricbeat-indices/165806/2 "2019-01-29T16:27:38Z")

</div>

**UPDATE** After moving the data directory used by elasticsearch from a nfs volume to local storage this issue disappeared. [Do not use remote-mounted storage, such as NFS or SMB/CIFS. The latency introduced here is antithetical to performance.](https://www.elastic.co/guide/en/elasticsearch/guide/current/indexing-performance.html#_storage)

---

<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:** [February 26, 2019, 4:27pm UTC](https://discuss.elastic.co/t/reindex-metricbeat-indices/165806/3 "2019-02-26T16:27:40Z")

</div>

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