# Upgrade Logstash from 2.3 to 5.2, while still using Elasticsearch 2.x - template issues?

**URL:** <https://discuss.elastic.co/t/upgrade-logstash-from-2-3-to-5-2-while-still-using-elasticsearch-2-x-template-issues/75400>\
**Category:** Logstash\
**Created:** [February 16, 2017, 9:29pm UTC](https://discuss.elastic.co/t/upgrade-logstash-from-2-3-to-5-2-while-still-using-elasticsearch-2-x-template-issues/75400 "2017-02-16T21:29:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![FlorinAndrei](https://avatars.discourse-cdn.com/v4/letter/f/54ee81/32.png) [@FlorinAndrei](https://discuss.elastic.co/u/FlorinAndrei)\
**Post date:** [February 16, 2017, 9:29pm UTC](https://discuss.elastic.co/t/upgrade-logstash-from-2-3-to-5-2-while-still-using-elasticsearch-2-x-template-issues/75400/1 "2017-02-16T21:29:50Z")

</div>

I'm currently running a few Logstash clusters, version 2.3.x. One of the outputs for these clusters is Elasticsearch, hosted in Elastic Cloud, versions 2.3.x and 2.4.x

I may have to upgrade Logstash to 5.2 to get the new features in the S3 output plugin (string interpolation for the prefix setting).

The current Elasticsearch outputs are configured like this:

```
  elasticsearch {
    hosts => ["https://XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.found.io:9243"]
    user => "XXXXXXXXXX"
    password => "XXXXXXXXXX"
    codec => "json"
    index => "somelogs-%{+YYYY.MM.dd}"
    manage_template => false
    template_name => "somelogs"
    document_type => "%{doc_type}"
  }

```

Do I need to worry about anything when upgrading Logstash from 2.3 to 5.2? Do I need to make any changes to the template stored in ES? Elasticsearch will remain at 2.3.x and 2.4.x

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [February 18, 2017, 5:17pm UTC](https://discuss.elastic.co/t/upgrade-logstash-from-2-3-to-5-2-while-still-using-elasticsearch-2-x-template-issues/75400/2 "2017-02-18T17:17:06Z")

</div>

Since you're apparently managing the index templates outside of Logstash, upgrading Logstash won't matter for them. Logstash 5.2 is compatible with ES 2.x.

---

<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:** [March 18, 2017, 5:17pm UTC](https://discuss.elastic.co/t/upgrade-logstash-from-2-3-to-5-2-while-still-using-elasticsearch-2-x-template-issues/75400/3 "2017-03-18T17:17:55Z")

</div>

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