Skip to content

If an ingest node changes the target index, the original index is still created.  #36545

@clement-tourriere

Description

@clement-tourriere

Elasticsearch version elasticsearch >= 6.5

Plugins installed: None

JVM version (11.0.1)

Date name processor creates prefixed index additionally to the date timed index.
This comportement has been introduced by this PR that creates the index before executing the pipeline: #32786

Steps to reproduce:

From a clean elasticsearch instance (from 6.5), just follow the example from date name processor documentation:

https://www.elastic.co/guide/en/elasticsearch/reference/current/date-index-name-processor.html

# Create the processor
curl -X PUT "localhost:9200/_ingest/pipeline/monthlyindex" -H 'Content-Type: application/json' -d'
{
  "description": "monthly date-time index naming",
  "processors" : [
    {
      "date_index_name" : {
        "field" : "date1",
        "index_name_prefix" : "myindex-",
        "date_rounding" : "M"
      }
    }
  ]
}
'

# Index a document

curl -X PUT "localhost:9200/myindex/_doc/1?pipeline=monthlyindex" -H 'Content-Type: application/json' -d'
{
  "date1" : "2016-04-25T12:02:01.789Z"
}
'


# my_index and myindex-2016-04-01 are created
curl -XGET "http://localhost:9200/_cat/indices?v"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions