# How to do settting "is\_write\_index": true for alias in curator action

**URL:** <https://discuss.elastic.co/t/how-to-do-settting-is-write-index-true-for-alias-in-curator-action/228464>\
**Category:** Elasticsearch\
**Tags:** curator\
**Created:** [April 17, 2020, 7:49am UTC](https://discuss.elastic.co/t/how-to-do-settting-is-write-index-true-for-alias-in-curator-action/228464 "2020-04-17T07:49:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dragon9](https://avatars.discourse-cdn.com/v4/letter/d/7bcc69/32.png) [@Dragon9](https://discuss.elastic.co/u/Dragon9)\
**Post date:** [April 17, 2020, 7:49am UTC](https://discuss.elastic.co/t/how-to-do-settting-is-write-index-true-for-alias-in-curator-action/228464/1 "2020-04-17T07:49:30Z")

</div>

my use case is to rollover indices in every 4 hours .so i use curator for  
define alias and rollover for indices.  
so new indices is created but in new indices no data is written by logstash into it.  
by exploring i found that while creating alias this setting "is\_write\_index": true  
is must be define .but in curator how to define it

my curator action file looks like

```auto
actions:
      1:
        action: alias
        description: >-
         Alias indices from last week, with a prefix of kibana_sample_data_ecommerce to 'kibana_alias-000001',
         remove indices from the previous week.
        options:
          name: alias1
          warn_if_no_indices: False
          disable_action: False
        add:
          filters:
          - filtertype: pattern
            kind: prefix
            value: ram-
      2:
        action: rollover
        description: >-
         Rollover the index associated with alias 'aliasname', which should be in the
         format of prefix-000001 (or similar), or prefix-YYYY.MM.DD-1.
        options:
          disable_action: False
          name: alias1
          conditions:
            max_age: 10s

```

my logstash file is

```auto
input {
    file {
    path => "/var/log/containers/*.log"
    start_position => "beginning"
  }

   }
   filter{

      }

 output {
    elasticsearch {
        hosts => ["http://10.109.226.97:9200"]
        index => alias1
    }

  }

```

---

<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:** [April 17, 2020, 6:20pm UTC](https://discuss.elastic.co/t/how-to-do-settting-is-write-index-true-for-alias-in-curator-action/228464/2 "2020-04-17T18:20:25Z")

</div>

This is not a setting to set via Curator. It only needs to be set once for the rollover alias at initial index creation time.

If you need to set it for other existing indices, then that's what you'd use Curator for.

---

<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:** [May 15, 2020, 6:20pm UTC](https://discuss.elastic.co/t/how-to-do-settting-is-write-index-true-for-alias-in-curator-action/228464/3 "2020-05-15T18:20:27Z")

</div>

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