-
Notifications
You must be signed in to change notification settings - Fork 25.8k
If an ingest node changes the target index, the original index is still created. #36545
Copy link
Copy link
Closed
Closed
Copy link
Labels
:Distributed/Ingest NodeExecution or management of Ingest PipelinesExecution or management of Ingest Pipelines>bugv6.5.0
Description
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"
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
:Distributed/Ingest NodeExecution or management of Ingest PipelinesExecution or management of Ingest Pipelines>bugv6.5.0
Type
Fields
Give feedbackNo fields configured for issues without a type.