File: fe_week_starts_on.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 (28 lines) | stat: -rw-r--r-- 785 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
---
mapped_pages:
  - https://www.elastic.co/guide/en/elasticsearch/client/curator/current/fe_week_starts_on.html
---

# week_starts_on [fe_week_starts_on]

::::{note}
This setting is only used with the [period](/reference/filtertype_period.md) filtertype<br> when [period_type](/reference/fe_period_type.md) is `relative`.
::::


```yaml
 - filtertype: period
   source: name
   range_from: -1
   range_to: -1
   timestring: '%Y.%m.%d'
   unit: weeks
   week_starts_on: sunday
```

The value of this setting indicates whether weeks should be measured starting on `sunday` or `monday`.  Though Monday is the ISO standard, Sunday is frequently preferred.

This setting is only used when [unit](/reference/fe_unit.md) is set to `weeks`.

The default value for this setting is `sunday`.