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:
Rashid Khan 2014-01-06 13:33:24 -07:00
parent 4bad71cb27
commit d0d4b26b35

View file

@ -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')