# Curator run only first action

**URL:** <https://discuss.elastic.co/t/curator-run-only-first-action/186857>\
**Category:** Elasticsearch\
**Tags:** curator\
**Created:** [June 21, 2019, 9:56am UTC](https://discuss.elastic.co/t/curator-run-only-first-action/186857 "2019-06-21T09:56:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lpouzac](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lpouzac/32/48517_2.png) [@lpouzac](https://discuss.elastic.co/u/lpouzac)\
**Post date:** [June 21, 2019, 9:56am UTC](https://discuss.elastic.co/t/curator-run-only-first-action/186857/1 "2019-06-21T09:56:17Z")

</div>

Hi,

When I run curator with multiple actions, only first action was executed. I use curator 5.7.6 and elasticsearch 7.1.0

`curator --config config.yml actions.yml`

Configuration file

```
---
actions:
  1:
    action: delete_indices
    description: 'Delete indices filebeat swarm staging'
    options:
      ignore_empty_list: True
      continue_if_exception: True
    filters:
      - filtertype: age
        source: creation_date
        direction: older
        unit: days
        unit_count: 15
      - filtertype: pattern
        kind: regex
        value: '^(filebeat-swarm-staging-).*$'

  2:
    action: delete_indices
    description: 'Delete indices filebeat swarm prod'
    options:
      ignore_empty_list: True
      continue_if_exception: True
    filters:
      - filtertype: age
        source: creation_date
        direction: older
        unit: days
        unit_count: 30
      - filtertype: pattern
        kind: regex
        value: '^(filebeat-swarm-prod-).*$'
  3:
    action: delete_indices
    description: 'Delete indices metricbeat'
    options:
      ignore_empty_list: True
      continue_if_exception: True
    filters:
      - filtertype: age
        source: creation_date
        direction: older
        unit: days
        unit_count: 15
      - filtertype: pattern
        kind: regex
        value: '^(metricbeat-).*$'

```

Output logs

`2019-06-21 11:27:20,679 INFO Preparing Action ID: test1, "delete_indices"`

Is it possible to have multiple actions in one file?

Regards,

---

<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:** [July 19, 2019, 9:56am UTC](https://discuss.elastic.co/t/curator-run-only-first-action/186857/2 "2019-07-19T09:56:23Z")

</div>

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