A newer version is available. For the latest information, see the
current release documentation.
--time-unit
edit
IMPORTANT: This documentation is no longer updated. Refer to Elastic's version policy and the latest documentation.
--time-unit
editSummary
editThis flag only functions within the scope of index selection or snapshot selection.
As a part of index selection or snapshot selection you can filter
indices or snapshots --older-than or --newer-than a given point in time. The
--time-unit flag is required when using --older-than or
--newer-than to help determine how many days, hours,
weeks, and months. The value you provide to --older-than or --newer-than
will be multiplied by the --time-unit: 5 days, 3 hours, etc. A
--timestring is also required in order for Curator to recognize the date
pattern in your index or snapshot names.
Flags
edit-
--time-unitThe time interval between indices, e.g.hours,days,weeks, ormonths(default:days)
Example
editShow indices older than 5 days:
curator show indices --older-than 5 --time-unit days --timestring '%Y.%m.%d'