source
editsource
editThe source from which to derive the index or snapshot age. Can be one of
name
, creation_date
, or field_stats
.
When using the age filtertype, source requires
direction, unit, unit_count,
and additionally, the optional setting, epoch.
name
editSetting source to name
tells Curator to derive an epoch timestamp from an
index or snapshot name based on a timestring. This was the
only available behavior in previous versions of Curator.
This source requires timestring to be set, in addition to direction, unit, and unit_count.
creation_date
editSetting source to creation_date
tells Curator to reference the index or
snapshot creation time, as stored in the cluster metadata.
This source requires direction, unit, and unit_count.
field_stats
editSetting source to field_stats
tells Curator to use a newer Elasticsearch API
call which returns the minimum and maximum value of a field in an index. Curator
will only use timestamp fields, which should be mapped in Elasticsearch as type
date
.
The field and stats_result settings are
required to use the field_stats
source.
Source field_stats
only works with indices.