Is is possible to run Elasticsearch 6 in a backward compatible mode



We recently upgraded the UAT setup (which is also used by the devs) to 6.1.
An immediate consequence was that the Serilog sink for Elasticsearch stopped working. From the details it seems like it is the string getting replaced by text and _all support getting dropped proved to be breaking changes for Serilog.

So while we wait for the authors to release a patch I have to roll back the cluster to 5.x again. I am pushing my luck but is there a hidden compatibility mode somewhere in Elasticsearch which can allow it to run backward compatible? I am trying to avoid roll back to older version because of new features in Kibana.

(David Pilato) #2

If you create all your indices in a 5.6 cluster, they can be read/write by a 6.x cluster. So may be create a month of indices before upgrading to 6?

(Shane Connelly) #3

Unfortunately not. Serilog will need to make any appropriate changes.

Just in case you're interested in what these two changes are about:

  1. string was replaced by text back in 5.0 and we did add a "backwards compatibility layer" in at that time and kept it for all of 5.x. There are details about the change here.
  2. The _all change is only for new indices in 6.x. So if you have an index that was created in 5.x, you can upgrade to 6.x and it will continue to work as-is.

The second of these may be a workaround for that one if you absolutely need to, but it sounds like Serilog is going to need to make updates regardless of whether the workaround works for one user.

Since I'm also not very familiar with the Serilog project and what it provides/suggests, I'll also mention a few other things that could help with your upgrade experience if they're options. One is that if you install X-Pack in 5.x, it comes with a cluster/index checker which checks if you're using any features that won't work in 6.x. I realize you may have already run into a few stumbling blocks with your upgrade, but I'd recommend using the utility to check anyway since there may be other things you haven't run into.

You should also check the deprecation log for any queries which may need to be upgraded. You can also turn that on with the upgrade assistant if you haven't already.

(system) #4

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