# Curator Actions File

**URL:** <https://discuss.elastic.co/t/curator-actions-file/208570>\
**Category:** Elasticsearch\
**Tags:** curator\
**Created:** [November 19, 2019, 7:47pm UTC](https://discuss.elastic.co/t/curator-actions-file/208570 "2019-11-19T19:47:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Elk\_huh](https://avatars.discourse-cdn.com/v4/letter/e/d26b3c/32.png) [@Elk\_huh](https://discuss.elastic.co/u/Elk_huh)\
**Post date:** [November 19, 2019, 7:47pm UTC](https://discuss.elastic.co/t/curator-actions-file/208570/1 "2019-11-19T19:47:18Z")

</div>

If i do just Action 1 of creating the snapshot works, but the second i throw in action 2 . it no longer works.  
Anyone see something i dont see ?

```
actions:
  1:
action: snapshot
description: >-
  Snapshot all indices
options:
  repository: s3
  disabled_action: False
  name:
  ignore_unavailable: True
  ignore_empty_list: True
  partial: False
  wait_for_completion: True
  skip_repo_fs_check: False
  timeout_override: 86400
  continue_if_exception: False
filters:
- filtertype: closed
  exclude: True
  2:
action: delete_snapshots
description: Delete selected snapshots
options:
  repository: s3
  disabled_action: False
  retry_interval: 120
  retry_count: 3
   filters:
   - filtertype: pattern
 kind: prefix
 value: curator
   - filtertype: age
 source: creation_date
 direction: older
 unit: days
 unit_count: 0
```

---

<div class="post-metadata">

**Author:** ![theuntergeek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/theuntergeek/32/44961_2.png) [@theuntergeek](https://discuss.elastic.co/u/theuntergeek)\
**Post date:** [November 19, 2019, 8:48pm UTC](https://discuss.elastic.co/t/curator-actions-file/208570/2 "2019-11-19T20:48:30Z")

</div>

Is this exactly what your YAML file looks like? It does not appear to be properly indented/formatted for parsing. Without an accurate representation of your YAML file, I can't investigate it properly.

---

<div class="post-metadata">

**Author:** ![Elk\_huh](https://avatars.discourse-cdn.com/v4/letter/e/d26b3c/32.png) [@Elk\_huh](https://discuss.elastic.co/u/Elk_huh)\
**Post date:** [November 19, 2019, 9:14pm UTC](https://discuss.elastic.co/t/curator-actions-file/208570/3 "2019-11-19T21:14:58Z")

</div>

```
actions:
  1:
    action: snapshot
    description: >-
      Snapshot all indices
    options:
      repository: s3
      disabled_action: False
      ignore_unavailable: True
      ignore_empty_list: True
      partial: False
      wait_for_completion: True
      timeout_override: 86400
    filters:
    - filtertype: closed
      exclude: True
  2:
    action: delete_snapshots
    description: >-
      Delete selected snapshots
    options:
      repository: s3
      disabled_action: False
      retry_interval: 120
      retry_count: 3
   filters:
   - filtertype: pattern
     kind: prefix
     value: curator
   - filtertype: age
     source: creation_date
     direction: older
     unit: days
     unit_count: 0

```

exact format

---

<div class="post-metadata">

**Author:** ![theuntergeek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/theuntergeek/32/44961_2.png) [@theuntergeek](https://discuss.elastic.co/u/theuntergeek)\
**Post date:** [November 26, 2019, 3:37pm UTC](https://discuss.elastic.co/t/curator-actions-file/208570/4 "2019-11-26T15:37:53Z")

</div>

So, you're really trying to delete all snapshots older than today?

What do you see if you run action 2 by itself _(you can accomplish this by setting `disabled_action: true` for action 1)_ using `--dry-run` and logging at DEBUG level?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 24, 2019, 3:37pm UTC](https://discuss.elastic.co/t/curator-actions-file/208570/5 "2019-12-24T15:37:56Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
