Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support multiple index patterns #905

Merged
merged 2 commits into from Feb 3, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/app/partials/dasheditor.html
Expand Up @@ -39,7 +39,8 @@ <h5>Index Settings</h5>
default logstash index pattern you might use
<code>[logstash-]YYYY.MM.DD</code>. 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 <code>[web-]YYYY.MM.DD,[mail-]YYYY.MM.DD</code>
Please also note that indices should rollover at midnight <strong>UTC</strong>.
</p>
<p class="small">
Expand Down
4 changes: 3 additions & 1 deletion src/app/services/kbnIndex.js
Expand Up @@ -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;
});
Expand Down