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

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.

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.

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.

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??

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

@theuntergeek thanks for your response :smiley:

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

Yes.

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