File: fe_intersect.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 (32 lines) | stat: -rw-r--r-- 1,191 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
25
26
27
28
29
30
31
32
---
mapped_pages:
  - https://www.elastic.co/guide/en/elasticsearch/client/curator/current/fe_intersect.html
---

# intersect [fe_intersect]

::::{note}
This setting is only available in the [period](/reference/filtertype_age.md) filtertype. This setting is strictly optional.
::::


```yaml
 - filtertype: period
   source: field_stats
   direction: older
   intersect: true
   unit: weeks
   range_from: -1
   range_to: -1
   field: '@timestamp'
   stats_result: min_value
```

The value of this setting must be `True` or `False`.

`field_stats` uses an aggregation query to calculate either the `min_value` and the `max_value` of the [`field`](/reference/fe_field.md) as the [`stats_result`](/reference/fe_stats_result.md).  If `intersect` is `True`, then only indices where the `min_value` *and* the `max_value` are within the `range_from` and `range_to` (relative to `unit`) will match.  This means that either `min_value` or `max_value` can be used for [`stats_result`](/reference/fe_stats_result.md) when `intersect` is `True` with identical results.

This setting is only used when [source](/reference/fe_source.md) is `field_stats`.

The default value for this setting is `False`.