Merge pull request #9812 from Icinga/support-elasticsearch-8-0-9251

ElasticsearchWriter: switch to v7+ URL schema to support v8
This commit is contained in:
Julian Brost 2023-07-05 10:15:10 +02:00 committed by GitHub
commit 26a75f8a6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 5 deletions

View File

@ -465,11 +465,6 @@ void ElasticsearchWriter::SendRequest(const String& body)
*/ */
path.emplace_back(GetIndex() + "-" + Utility::FormatDateTime("%Y.%m.%d", Utility::GetTime())); 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. */ /* Use the bulk message format. */
path.emplace_back("_bulk"); path.emplace_back("_bulk");