diff --git a/src/app/partials/dasheditor.html b/src/app/partials/dasheditor.html index a4d3771c2c6d8..75b5bc98ee43d 100644 --- a/src/app/partials/dasheditor.html +++ b/src/app/partials/dasheditor.html @@ -39,7 +39,8 @@
Index Settings
default logstash index pattern you might use [logstash-]YYYY.MM.DD. The [] in "[logstash-]" are important as they instruct Kibana not to treat those letters as a - pattern. + pattern. You may also specify multiple indices by seperating them with a comma(,). + For example [web-]YYYY.MM.DD,[mail-]YYYY.MM.DD Please also note that indices should rollover at midnight UTC.

diff --git a/src/app/services/kbnIndex.js b/src/app/services/kbnIndex.js index 76fba98ba9a96..6197712f9945d 100644 --- a/src/app/services/kbnIndex.js +++ b/src/app/services/kbnIndex.js @@ -20,7 +20,9 @@ function (angular, _, config, moment) { return resolve_indices(possible).then(function(p) { // an extra intersection - var indices = _.intersection(possible,p); + var indices = _.uniq(_.flatten(_.map(possible,function(possibleIndex) { + return _.intersection(possibleIndex.split(','),p); + }))); indices.reverse(); return indices; });