Here is the pipeline :
PUT _ingest/pipeline/dateformat
{
"description" : "To change Date format",
"processors" : [
{
"date" : {
"field" : "EndDate",
"target_field" : "newEndDate",
"formats" : ["date_time"]
}
}
]
}
I tried to simulate and get this error
POST _ingest/pipeline/dateformat/_simulate
{
"docs":[
{
"_source":{
"EndDate":"2021-05-31 00:00:00"
}
}
]
}
{
"docs" : [
{
"error" : {
"root_cause" : [
{
"type" : "illegal_argument_exception",
"reason" : "unable to parse date [2021-05-31 00:00:00]"
}
],
"type" : "illegal_argument_exception",
"reason" : "unable to parse date [2021-05-31 00:00:00]",
"caused_by" : {
"type" : "illegal_argument_exception",
"reason" : "failed to parse date field [2021-05-31 00:00:00] with format [date_time]",
"caused_by" : {
"type" : "date_time_parse_exception",
"reason" : "Failed to parse with all enclosed parsers"
}
}
}
}
]
}
I am not sure what's happening here, the reason of this pipeline is to change the date format right ?
And also please suggest me any way to change the date format
