# In elasticsearch with logstash, 'doc' property in mapping option had been deprecated?

**URL:** <https://discuss.elastic.co/t/in-elasticsearch-with-logstash-doc-property-in-mapping-option-had-been-deprecated/219556>\
**Category:** Elasticsearch\
**Created:** [February 17, 2020, 2:47am UTC](https://discuss.elastic.co/t/in-elasticsearch-with-logstash-doc-property-in-mapping-option-had-been-deprecated/219556 "2020-02-17T02:47:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![teemoGod](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/teemogod/32/40817_2.png) [@teemoGod](https://discuss.elastic.co/u/teemoGod)\
**Post date:** [February 17, 2020, 2:47am UTC](https://discuss.elastic.co/t/in-elasticsearch-with-logstash-doc-property-in-mapping-option-had-been-deprecated/219556/1 "2020-02-17T02:47:20Z")

</div>

i upgraded my elasticsearch 6.7.1 to 7.5.2 and curator 5.6 to 5.8.1.

i used both logstash and fluentd.

in first, i used fluentd and curator's `create_index` was like this.

```auto
actions:
  1:
    action: create_index
    description: "create_index_fluentd"
    options:
      name: "fluentd_index_test"
      extra_settings:
        mappings:
          fluentd: # here
            properties: # actual properties start

```

and then, i changed fluentd to logstash, and curator config has been changed like this.

```auto
actions:
  1:
    action: create_index
    description: "create_index_logstash"
    options:
      name: "logstash_index_test"
      extra_settings:
        mappings:
          doc: # here
            properties: # actual properties start

```

and then i upgraded elasticsearch and curator, but above settings doesn't working with following errors.

```auto
ERROR Failed to complete action: create_index. <class 'curator.exceptions.FailedExecution'>: Index logstash_index_test already exists.

```

but kibana and elasticsearch api doesn't show 'logstash\_index\_test' index.

so i delete 'doc' or 'fluentd' in mappings option, and curator working.  
is this option has deprecated??

---

<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:** [February 17, 2020, 3:19am UTC](https://discuss.elastic.co/t/in-elasticsearch-with-logstash-doc-property-in-mapping-option-had-been-deprecated/219556/2 "2020-02-17T03:19:49Z")

</div>

That's not a Curator option. It's the mapping changes between Elasticsearch 6 and 7. Mapping types are deprecated.

---

<div class="post-metadata">

**Author:** ![teemoGod](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/teemogod/32/40817_2.png) [@teemoGod](https://discuss.elastic.co/u/teemoGod)\
**Post date:** [February 17, 2020, 3:26am UTC](https://discuss.elastic.co/t/in-elasticsearch-with-logstash-doc-property-in-mapping-option-had-been-deprecated/219556/3 "2020-02-17T03:26:56Z")

</div>

@theuntergeek thanks for your response 😃

i founded documents  
may be this?  
[https://www.elastic.co/guide/en/elasticsearch/reference/current/removal-of-types.html#removal-of-types](https://www.elastic.co/guide/en/elasticsearch/reference/current/removal-of-types.html#removal-of-types)

---

<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:** [February 17, 2020, 3:34am UTC](https://discuss.elastic.co/t/in-elasticsearch-with-logstash-doc-property-in-mapping-option-had-been-deprecated/219556/4 "2020-02-17T03:34:41Z")

</div>

Yes.

---

<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:** [March 16, 2020, 3:34am UTC](https://discuss.elastic.co/t/in-elasticsearch-with-logstash-doc-property-in-mapping-option-had-been-deprecated/219556/5 "2020-03-16T03:34:46Z")

</div>

Closed on March 16, 2020, 3:34am UTC

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