mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
Add a time filter to get_rows so indices that were deleted in the last 10 minutes don't show
This commit is contained in:
parent
4bad71cb27
commit
d0d4b26b35
1 changed files with 7 additions and 1 deletions
|
@ -223,7 +223,13 @@ define([
|
|||
facet;
|
||||
|
||||
filter = filterSrv.getBoolFilter(filterSrv.ids);
|
||||
filter.must($scope.get_mode_filter());
|
||||
|
||||
var to = filterSrv.timeRange(false).to;
|
||||
if (to !== "now") {
|
||||
to = kbn.parseDate(to).valueOf() + "||";
|
||||
}
|
||||
|
||||
filter.must($scope.get_mode_filter()).must($scope.ejs.RangeFilter('@timestamp').from(to + "-10m/m").to(to + "/m"));
|
||||
|
||||
request = $scope.ejs.Request().indices(dashboard.indices).size(0).searchType("count");
|
||||
facet = $scope.ejs.TermsFacet('terms')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue