File: option_ignore_empty.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-- 775 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/option_ignore_empty.html
---

# ignore_empty_list [option_ignore_empty]

This setting must be either `True` or `False`.

```yaml
action: delete_indices
description: "Delete selected indices"
options:
  ignore_empty_list: True
filters:
- filtertype: ...
```

Depending on your indices, and how you’ve filtered them, an empty list may be presented to the action.  This results in an error condition.

When the ignore_empty_list option is set to `True`, the action will exit with an INFO level log message indicating such.  If ignore_empty_list is set to `False`, an ERROR level message will be logged, and Curator will exit with code 1.

The default value of this setting is `False`