mirror of https://github.com/Icinga/icinga2.git
Fix ES 5 support
This commit is contained in:
parent
fd5d4c5974
commit
1e0f67d778
|
@ -419,9 +419,9 @@ 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'.
|
||||
* Best practice is to statically define 'doc', as ES 5.X does not allow types starting with '_'.
|
||||
*/
|
||||
path.emplace_back("_doc");
|
||||
path.emplace_back("doc");
|
||||
|
||||
/* Use the bulk message format. */
|
||||
path.emplace_back("_bulk");
|
||||
|
|
Loading…
Reference in New Issue