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

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

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.

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