# Migrating to Elasticsearch 5

**URL:** <https://discuss.elastic.co/t/migrating-to-elasticsearch-5/234339>\
**Category:** Elasticsearch\
**Created:** [May 26, 2020, 12:51pm UTC](https://discuss.elastic.co/t/migrating-to-elasticsearch-5/234339 "2020-05-26T12:51:10Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raj\_Techie](https://avatars.discourse-cdn.com/v4/letter/r/ea666f/32.png) [@Raj\_Techie](https://discuss.elastic.co/u/Raj_Techie)\
**Post date:** [May 26, 2020, 12:51pm UTC](https://discuss.elastic.co/t/migrating-to-elasticsearch-5/234339/1 "2020-05-26T12:51:11Z")

</div>

I am using Elasticsearch version 5 and logstash 6.0. Changed logstash.conf file with hostname and id paswd. I could see I am able to log in but getting error like "Couldn't index Event to Elasticsearch" . Error Status-\>404"  
Can anyone help what should be changed .

---

<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 26, 2020, 10:03pm UTC](https://discuss.elastic.co/t/migrating-to-elasticsearch-5/234339/2 "2020-05-26T22:03:36Z")

</div>

Please be aware that there are no versions of 5.X that are currently supported, and 6.6 is the oldest 6.X that is still supported - [https://www.elastic.co/support/eol](https://www.elastic.co/support/eol)

The latest version is 7.7 (or 6.8), so please upgrade 🙂

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [May 27, 2020, 5:06am UTC](https://discuss.elastic.co/t/migrating-to-elasticsearch-5/234339/3 "2020-05-27T05:06:39Z")

</div>

I would also recommend upgrading. You can see which versions that are compatible in [the support matrix](https://www.elastic.co/support/matrix#matrix_compatibility). It would also help if you showed the full error together with anything related from the logs.

---

<div class="post-metadata">

**Author:** ![Raj\_Techie](https://avatars.discourse-cdn.com/v4/letter/r/ea666f/32.png) [@Raj\_Techie](https://discuss.elastic.co/u/Raj_Techie)\
**Post date:** [May 27, 2020, 7:54am UTC](https://discuss.elastic.co/t/migrating-to-elasticsearch-5/234339/4 "2020-05-27T07:54:27Z")

</div>

Hi @warkolm warkolm Thanks for your reply...I am new to this environment..  
Do we need to install elasticsearch in logstach running server from where we are sending data or ielastic search only needed at data receiving side ? Please guide me.

---

<div class="post-metadata">

**Author:** ![Raj\_Techie](https://avatars.discourse-cdn.com/v4/letter/r/ea666f/32.png) [@Raj\_Techie](https://discuss.elastic.co/u/Raj_Techie)\
**Post date:** [May 27, 2020, 11:38am UTC](https://discuss.elastic.co/t/migrating-to-elasticsearch-5/234339/5 "2020-05-27T11:38:04Z")

</div>

@Christian_Dahlqvist, Hi, we are upgrading to 5.1.2 and can't upgrade to version 7 directly as we are using currently 2.3. the requirement is to use 5.X version only. It is 2 different machines. From sending machine logstash we are using 6.0.x and Receiver side ES is 2.3 currently.  
We are going to authenticate with 2.4.X version and then can migrate to 5.X.  
I tried by chaning URL and hostname in logstash.conf file but got error like "couldn't index event to elastic search error status-404".

I am new to this environment.

Could you please help me .

---

<div class="post-metadata">

**Author:** ![Raj\_Techie](https://avatars.discourse-cdn.com/v4/letter/r/ea666f/32.png) [@Raj\_Techie](https://discuss.elastic.co/u/Raj_Techie)\
**Post date:** [May 27, 2020, 11:39am UTC](https://discuss.elastic.co/t/migrating-to-elasticsearch-5/234339/6 "2020-05-27T11:39:26Z")

</div>

@warkolm: Hi, we are upgrading to 5.1.2 and can't upgrade to version 7 directly as we are using currently 2.3. the requirement is to use 5.X version only. It is 2 different machines. From sending machine logstash we are using 6.0.x and Receiver side ES is 2.3 currently.  
We are going to authenticate with 2.4.X version and then can migrate to 5.X.  
I tried by chaning URL and hostname in logstash.conf file but got error like "couldn't index event to elastic search error status-404".

I am new to this environment.

Could you please help me .  
[/quote]

---

<div class="post-metadata">

**Author:** ![Frank16](https://avatars.discourse-cdn.com/v4/letter/f/b38774/32.png) [@Frank16](https://discuss.elastic.co/u/Frank16)\
**Post date:** [May 27, 2020, 12:36pm UTC](https://discuss.elastic.co/t/migrating-to-elasticsearch-5/234339/7 "2020-05-27T12:36:42Z")

</div>

Yeah. It is extremely difficult for the newbie. Will be great if someone helps[.](https://www.upsers.live/)

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 27, 2020, 1:31pm UTC](https://discuss.elastic.co/t/migrating-to-elasticsearch-5/234339/8 "2020-05-27T13:31:42Z")

</div>

Did you really say that?

> I am using Elasticsearch version 5 and logstash 6.0.

You should not mix major versions.  
LS6 should be used with ES6. It's not meant to be compatible with ES5.

So upgrade to Elasticsearch 6.8 at least.

I believe you are dealing with logs, right?  
If so, I'd recommend starting a brand new cluster with 7.7.0, with beats, elasticsearch and may be logstash depending on your use case.

Then after some days or weeks (depending on your retention period), remove the old cluster.

Would that work for you?

Another solution would be to start a 7.7 cluster and use reindex from remote if you really need to reimport the old data.

---

<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 24, 2020, 1:31pm UTC](https://discuss.elastic.co/t/migrating-to-elasticsearch-5/234339/9 "2020-06-24T13:31:49Z")

</div>

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