File: option_search_pattern.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 (25 lines) | stat: -rw-r--r-- 1,157 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
---
mapped_pages:
  - https://www.elastic.co/guide/en/elasticsearch/client/curator/current/option_search_pattern.html
---

# search_pattern [option_search_pattern]

::::{note}
This setting is only used by the [*Allocation*](/reference/allocation.md), [*Close*](/reference/close.md), [*Cold2Frozen*](/reference/cold2frozen.md), [*Delete Indices*](/reference/delete_indices.md), [*Forcemerge*](/reference/forcemerge.md), [*Index Settings*](/reference/index_settings.md), [*Open*](/reference/open.md), [*Replicas*](/reference/replicas.md), [*Shrink*](/reference/shrink.md), and [*Snapshot*](/reference/snapshot.md) actions.
::::


```yaml
action: delete_indices
description: "Delete selected indices"
options:
  search_pattern: 'index-*'
filters:
- filtertype: ...
```

The value of this option can be a comma-separated list of data streams, indices, and aliases used to limit the request. Supports wildcards (*). To target all data streams and indices, omit this parameter or use * or _all. If using wildcards it is highly recommended to encapsulate the entire search pattern in single quotes, e.g. `search_pattern: 'a*,b*,c*'`

The default value is `_all`.