mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-24 06:05:01 +02:00
ElasticsearchWriter: switch to v7+ URL schema to support v8
and OpenSearch 2. This breaks the EOL v5 and v6.
This commit is contained in:
parent
70d6b6e424
commit
4c2e59a690
@ -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");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user