From 4c2e59a690e072137e1cb4d74da781cea87d501d Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Mon, 3 Jul 2023 14:43:45 +0200 Subject: [PATCH] ElasticsearchWriter: switch to v7+ URL schema to support v8 and OpenSearch 2. This breaks the EOL v5 and v6. --- lib/perfdata/elasticsearchwriter.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/perfdata/elasticsearchwriter.cpp b/lib/perfdata/elasticsearchwriter.cpp index 9c8f52e60a7..9fb2aa90fe8 100644 --- a/lib/perfdata/elasticsearchwriter.cpp +++ b/lib/perfdata/elasticsearchwriter.cpp @@ -465,11 +465,6 @@ void ElasticsearchWriter::SendRequest(const String& body) */ path.emplace_back(GetIndex() + "-" + Utility::FormatDateTime("%Y.%m.%d", Utility::GetTime())); - /* ES 6 removes multiple _type mappings: https://www.elastic.co/guide/en/elasticsearch/reference/6.x/removal-of-types.html - * Best practice is to statically define 'doc', as ES 5.X does not allow types starting with '_'. - */ - path.emplace_back("doc"); - /* Use the bulk message format. */ path.emplace_back("_bulk");