# Difficulté à migrer un index elasticsearch avec elasticdump

**URL:** <https://community.ovhcloud.com/t/difficulte-a-migrer-un-index-elasticsearch-avec-elasticdump/28640>\
**Category:** Domaines et Hébergements\
**Created:** [Août 11, 2020, 8:21 UTC](https://community.ovhcloud.com/t/difficulte-a-migrer-un-index-elasticsearch-avec-elasticdump/28640 "2020-08-11T08:21:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://community.ovhcloud.com/user_avatar/community.ovhcloud.com/system/32/5_2.png) [@system](https://community.ovhcloud.com/u/system)\
**Post date:** [Août 11, 2020, 8:21 UTC](https://community.ovhcloud.com/t/difficulte-a-migrer-un-index-elasticsearch-avec-elasticdump/28640/1 "2020-08-11T08:21:03Z")

</div>

Bonjour,   
  
J'essaye de migrer un index existant vers "Logs & Metrics" en utilisant elasticdump  
  
[https://www.npmjs.com/package/elasticdump](https://www.npmjs.com/package/elasticdump)  
  
```  
elasticdump --input=[http://localhost:9200/indexname/](http://localhost:9200/indexname/) --output=[https://user](https://user):passsword@gra3.logs.ovh.com:9200/indexname/ --type=data  
Tue, 11 Aug 2020 07:59:07 GMT | starting dump  
Tue, 11 Aug 2020 07:59:08 GMT | got 100 objects from source elasticsearch (offset: 0)  
Tue, 11 Aug 2020 07:59:09 GMT | Error Emitted =\> {"error":{"root\_cause":[{"type":"forbidden\_exception","reason":"Action 'indices:data/write/bulk' is forbidden due to [DEFAULT]"}],"type":"forbidden\_exception","reason":"Action 'indices:data/write/bulk' is forbidden due to [DEFAULT]"},"status":403}  
Tue, 11 Aug 2020 07:59:09 GMT | Error Emitted =\> {"error":{"root\_cause":[{"type":"forbidden\_exception","reason":"Action 'indices:data/write/bulk' is forbidden due to [DEFAULT]"}],"type":"forbidden\_exception","reason":"Action 'indices:data/write/bulk' is forbidden due to [DEFAULT]"},"status":403}  
Tue, 11 Aug 2020 07:59:09 GMT | Total Writes: 0  
Tue, 11 Aug 2020 07:59:09 GMT | dump ended with error (get phase) =\> FORBIDDEN: {"error":{"root\_cause":[{"type":"forbidden\_exception","reason":"Action 'indices:data/write/bulk' is forbidden due to [DEFAULT]"}],"type":"forbidden\_exception","reason":"Action 'indices:data/write/bulk' is forbidden due to [DEFAULT]"},"status":403}  
```  
  
Est-ce que il y a un réglage à faire ? Si oui quel réglage ?  
  
Arthur Lutz (Logilab)

---

<div class="post-metadata">

**Author:** ![system](https://community.ovhcloud.com/user_avatar/community.ovhcloud.com/system/32/5_2.png) [@system](https://community.ovhcloud.com/u/system)\
**Post date:** [Août 11, 2020, 10:34 UTC](https://community.ovhcloud.com/t/difficulte-a-migrer-un-index-elasticsearch-avec-elasticdump/28640/2 "2020-08-11T10:34:00Z")

</div>

Ça y est, j'ai trouvé le problème, le nom de l'index n'est pas `indexname`, mais il faut mettre le nom d'index généré qui contient le nom d'utilisateur du service logs `logs-xx-xxxx-x-indexname`. Désolé pour le bruit.   
  
En tout cas, je recommande elasticdump qui a l'air de bien marcher et est assez intuitif à prendre en main.
