From 496585c1f8d1c0d3ed3d47eb16784080f8a70a5f Mon Sep 17 00:00:00 2001
From: Rashid Khan 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..83fda5cd66fff 100644
--- a/src/app/services/kbnIndex.js
+++ b/src/app/services/kbnIndex.js
@@ -20,8 +20,13 @@ 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();
+ console.log(indices);
+
return indices;
});
};
From 0ade329ce031c414187375a8a6d30afb9ba0e6d7 Mon Sep 17 00:00:00 2001
From: Rashid Khan