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
|
@ -223,7 +223,13 @@ define([
|
||||||
facet;
|
facet;
|
||||||
|
|
||||||
filter = filterSrv.getBoolFilter(filterSrv.ids);
|
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");
|
request = $scope.ejs.Request().indices(dashboard.indices).size(0).searchType("count");
|
||||||
facet = $scope.ejs.TermsFacet('terms')
|
facet = $scope.ejs.TermsFacet('terms')
|
||||||
|
|
Loading…
Reference in a new issue