mirror of https://github.com/Icinga/icinga2.git
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:
commit
26a75f8a6f
|
@ -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…
Reference in New Issue