Skip to content

Commit

Permalink
ElasticsearchWriter: switch to v7+ URL schema to support v8
Browse files Browse the repository at this point in the history
and OpenSearch 2. This breaks the EOL v5 and v6.
  • Loading branch information
Al2Klimov committed Jul 3, 2023
1 parent 70d6b6e commit 4c2e59a
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 4c2e59a

Please sign in to comment.