File: fe_direction.md

package info (click to toggle)
elasticsearch-curator 8.0.21-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 2,716 kB
  • sloc: python: 17,838; makefile: 159; sh: 156
file content (24 lines) | stat: -rw-r--r-- 1,045 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
---
mapped_pages:
  - https://www.elastic.co/guide/en/elasticsearch/client/curator/current/fe_direction.html
---

# direction [fe_direction]

::::{note}
This setting is only used with the [age](/reference/filtertype_age.md) filtertype.
::::


```yaml
 - filtertype: age
   source: creation_date
   direction: older
   unit: days
   unit_count: 3
```

This setting must be either `older` or `younger`.  This setting is used to determine whether indices or snapshots are `older` or `younger` than the reference point in time determined by [unit](/reference/fe_unit.md), [unit_count](/reference/fe_unit_count.md), and optionally, [epoch](/reference/fe_epoch.md).  If `direction` is `older`, then indices (or snapshots) which are *older* than the reference point in time will be matched.  Likewise, if `direction` is `younger`, then indices (or snapshots) which are *younger* than the reference point in time will be matched.

There is no default value. This setting must be set by the user or an exception will be raised, and execution will halt.