From 7ccc8ae2984c66e1b425bb512ebf6c342f043761 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Fri, 17 Nov 2017 12:23:40 +0100 Subject: [PATCH] elasticsearch: default version to 5.x --- public/app/plugins/datasource/elasticsearch/config_ctrl.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/public/app/plugins/datasource/elasticsearch/config_ctrl.ts b/public/app/plugins/datasource/elasticsearch/config_ctrl.ts index fdf941e81f7..2a3803db998 100644 --- a/public/app/plugins/datasource/elasticsearch/config_ctrl.ts +++ b/public/app/plugins/datasource/elasticsearch/config_ctrl.ts @@ -1,5 +1,3 @@ -/// - import _ from 'lodash'; export class ElasticConfigCtrl { @@ -9,6 +7,7 @@ export class ElasticConfigCtrl { /** @ngInject */ constructor($scope) { this.current.jsonData.timeField = this.current.jsonData.timeField || '@timestamp'; + this.current.jsonData.esVersion = this.current.jsonData.esVersion || 5; } indexPatternTypes = [