count
editcount
edit- filtertype: count count: 10 reverse: True use_age: False source: creation_date timestring: field: stats_result: exclude: False
Empty values and commented lines will result in the default value, if any, being selected. If a setting is set, but not used by a given filtertype, it may generate an error.
This filtertype will iterate over the actionable list of indices or snapshots. They are ordered by age, or by alphabet, so as to guarantee that the correct items will remain in, or be removed from the actionable list based on the values of count, exclude, and reverse.
For use cases, where "like" items are being counted, and their name pattern
guarantees date sorting is equal to alphabetical sorting, it is unnecessary to
set use_age to True
, as item names will be sorted in
reverse order by default. This means that the item count will
start beginning with the newest indices or snapshots, and proceed through to
the oldest.
Read more about the different settings for this filtertype:
Required settings
edit- count (required)
Optional settings
edit- reverse (optional)
- use_age (optional)
-
source (required if
use_age
isTrue
) -
timestring (required if
source
isname
) -
exclude (default is
False
)
Index-only settings
edit-
field (required if
source
isfield_stats
) -
stats_result (only used if
source
isfield_stats
)