diff --git a/src/app/dashboards/blank.json b/src/app/dashboards/blank.json index f73ee1fc5a97c..e21f69458e08c 100644 --- a/src/app/dashboards/blank.json +++ b/src/app/dashboards/blank.json @@ -26,6 +26,7 @@ "index": { "interval": "none", "pattern": "[logstash-]YYYY.MM.DD", - "default": "_all" + "default": "_all", + "warm_fields": false } } \ No newline at end of file diff --git a/src/app/dashboards/default.json b/src/app/dashboards/default.json index 5a5bc905735fd..ea0ed6ef5169c 100644 --- a/src/app/dashboards/default.json +++ b/src/app/dashboards/default.json @@ -64,61 +64,14 @@ "index": { "interval": "none", "pattern": "[logstash-]YYYY.MM.DD", - "default": "_all" + "default": "_all", + "warm_fields": false }, "style": "dark", "failover": false, "panel_hints": true, - "pulldowns": [ - { - "type": "query", - "collapse": true, - "notice": false, - "query": "*", - "pinned": true, - "history": [], - "remember": 10 - }, - { - "type": "filtering", - "collapse": true, - "notice": false - } - ], - "nav": [ - { - "type": "timepicker", - "collapse": false, - "notice": false, - "status": "Stable", - "time_options": [ - "5m", - "15m", - "1h", - "6h", - "12h", - "24h", - "2d", - "7d", - "30d" - ], - "refresh_intervals": [ - "5s", - "10s", - "30s", - "1m", - "5m", - "15m", - "30m", - "1h", - "2h", - "1d" - ], - "timefield": "@timestamp", - "now": true, - "filter_id": 0 - } - ], + "pulldowns": [], + "nav": [], "loader": { "save_gist": false, "save_elasticsearch": true, diff --git a/src/app/dashboards/guided.json b/src/app/dashboards/guided.json index eabb77f9db987..81b69f837b21a 100644 --- a/src/app/dashboards/guided.json +++ b/src/app/dashboards/guided.json @@ -200,7 +200,8 @@ "index": { "interval": "none", "pattern": "[logstash-]YYYY.MM.DD", - "default": "_all" + "default": "_all", + "warm_fields": false }, "style": "dark", "failover": false, diff --git a/src/app/dashboards/noted.json b/src/app/dashboards/noted.json index 8f2db5024b649..a45e0690baa78 100644 --- a/src/app/dashboards/noted.json +++ b/src/app/dashboards/noted.json @@ -89,7 +89,8 @@ "index": { "interval": "none", "pattern": "[logstash-]YYYY.MM.DD", - "default": "_all" + "default": "_all", + "warm_fields": false }, "style": "dark", "failover": false, diff --git a/src/app/panels/table/module.html b/src/app/panels/table/module.html index d8f8e9091e6e3..bff0bf091ecdf 100644 --- a/src/app/panels/table/module.html +++ b/src/app/panels/table/module.html @@ -10,11 +10,11 @@
+
+
Preload Fields
+ +
diff --git a/src/app/services/dashboard.js b/src/app/services/dashboard.js index 35abb269f07b4..f73e5e22255c3 100644 --- a/src/app/services/dashboard.js +++ b/src/app/services/dashboard.js @@ -57,7 +57,8 @@ function (angular, $, kbn, _, config, moment, Modernizr) { index: { interval: 'none', pattern: '_all', - default: 'INDEX_MISSING' + default: 'INDEX_MISSING', + warm_fields: true }, refresh: false }; diff --git a/src/app/services/fields.js b/src/app/services/fields.js index 258c60c13714b..fab62d28aa426 100644 --- a/src/app/services/fields.js +++ b/src/app/services/fields.js @@ -17,7 +17,7 @@ function (angular, _, config) { this.fullMapping = {}; $rootScope.$watch(function(){return dashboard.indices;},function(n) { - if(!_.isUndefined(n) && n.length) { + if(!_.isUndefined(n) && n.length && dashboard.current.index.warm_fields) { // Only get the mapping for indices we don't know it for var indices = _.difference(n,_.keys(self.fullMapping)); // Only get the mapping if there are new indices