# Elasticsearch non loop back address data migration

**URL:** <https://discuss.elastic.co/t/elasticsearch-non-loop-back-address-data-migration/232536>\
**Category:** Elasticsearch\
**Created:** [May 14, 2020, 3:09am UTC](https://discuss.elastic.co/t/elasticsearch-non-loop-back-address-data-migration/232536 "2020-05-14T03:09:44Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![RAM\_NATHAN](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ram_nathan/32/50393_2.png) [@RAM\_NATHAN](https://discuss.elastic.co/u/RAM_NATHAN)\
**Post date:** [May 14, 2020, 3:09am UTC](https://discuss.elastic.co/t/elasticsearch-non-loop-back-address-data-migration/232536/1 "2020-05-14T03:09:44Z")

</div>

Hi

I'm using localhost so far and if I'm planning to create a cluster later and if I enable network.host and cluster settings, will I lose my data as ES points to localhost:9200 so far??

Regards  
Ram

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [May 14, 2020, 3:11am UTC](https://discuss.elastic.co/t/elasticsearch-non-loop-back-address-data-migration/232536/2 "2020-05-14T03:11:15Z")

</div>

No you wont.

---

<div class="post-metadata">

**Author:** ![RAM\_NATHAN](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ram_nathan/32/50393_2.png) [@RAM\_NATHAN](https://discuss.elastic.co/u/RAM_NATHAN)\
**Post date:** [May 14, 2020, 3:14am UTC](https://discuss.elastic.co/t/elasticsearch-non-loop-back-address-data-migration/232536/3 "2020-05-14T03:14:03Z")

</div>

i created an index using localhost:9200, but when I change network.host and add it to cluster, im not finding that index in kibana

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [May 14, 2020, 3:14am UTC](https://discuss.elastic.co/t/elasticsearch-non-loop-back-address-data-migration/232536/4 "2020-05-14T03:14:46Z")

</div>

Are you changing anything else?

---

<div class="post-metadata">

**Author:** ![RAM\_NATHAN](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ram_nathan/32/50393_2.png) [@RAM\_NATHAN](https://discuss.elastic.co/u/RAM_NATHAN)\
**Post date:** [May 14, 2020, 3:16am UTC](https://discuss.elastic.co/t/elasticsearch-non-loop-back-address-data-migration/232536/5 "2020-05-14T03:16:18Z")

</div>

I added below

node.name: "es-node-1"

#define node 1 as master-eligible:  
node.master: true

#define nodes 2 and 3 as data nodes:  
node.data: true

#enter the private IP and port of your node:  
network.host: 172.11.61.27  
http.port: 9200

discovery.zen.ping.unicast.hosts:

cluster.initial\_master\_nodes:

in all the nodes

Also I changed Kibana to point to [http://ip:9200](http://ip:9200)

Initially all three cluster nodes with same index called "dashboard-0001". After that I created cluster with these three nodes. After that I dont find dashboard-0001 in kibana

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [May 14, 2020, 4:08am UTC](https://discuss.elastic.co/t/elasticsearch-non-loop-back-address-data-migration/232536/6 "2020-05-14T04:08:52Z")

</div>

Right, so you're doing a bit more than just changing loopback 😉

> [@RAM\_NATHAN](#):
>
> Initially all three cluster nodes with same index called "dashboard-0001". After that I created cluster with these three nodes. After that I dont find dashboard-0001 in kibana

Yes that won't work, because when you join the nodes together they won't know which index they should be using.

Why are you creating it on each of the 3 nodes? You should create the cluster with all your nodes, then the indices.

---

<div class="post-metadata">

**Author:** ![RAM\_NATHAN](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ram_nathan/32/50393_2.png) [@RAM\_NATHAN](https://discuss.elastic.co/u/RAM_NATHAN)\
**Post date:** [May 14, 2020, 6:05am UTC](https://discuss.elastic.co/t/elasticsearch-non-loop-back-address-data-migration/232536/7 "2020-05-14T06:05:12Z")

</div>

> [@RAM\_NATHAN](#):
>
> cluster.initial\_master\_nodes:

Thanks for the reply. Please confirm below will work

Initially I have single node points to loop back address. I create an index dashboard-0001 there and later I create two nodes and create a cluster all together. Last two nodes doesnt have index. Now I will not lose my dashboard-0001 data. Correct?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [May 14, 2020, 6:08am UTC](https://discuss.elastic.co/t/elasticsearch-non-loop-back-address-data-migration/232536/8 "2020-05-14T06:08:17Z")

</div>

You should not, not.

---

<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:** [June 11, 2020, 6:08am UTC](https://discuss.elastic.co/t/elasticsearch-non-loop-back-address-data-migration/232536/9 "2020-06-11T06:08:33Z")

</div>

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