Skip to content

Commit

Permalink
Merge pull request #9812 from Icinga/support-elasticsearch-8-0-9251
Browse files Browse the repository at this point in the history
ElasticsearchWriter: switch to v7+ URL schema to support v8
  • Loading branch information
julianbrost authored Jul 5, 2023
2 parents fe13b96 + 4c2e59a commit 26a75f8
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions lib/perfdata/elasticsearchwriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down

0 comments on commit 26a75f8

Please sign in to comment.