Hi,
I am trying to parse the 5 digits date 2022611 with a pattern yyyyMdd.
POST /_ingest/pipeline/_simulate
{
"pipeline" :
{
"description": "_description",
"processors": [
{
"date" : {
"target_field" : "timestamp",
"formats" : [ "yyyyMdd" ],
"field" : "ts"
}
}
]
},
"docs": [
{
"_index": "index",
"_id": "id",
"_source": {
"ts": "2022611"
}
}
]
}
However, I receive the following error:
{
"docs" : [
{
"error" : {
"root_cause" : [
{
"type" : "illegal_argument_exception",
"reason" : "unable to parse date [2022611]"
}
],
"type" : "illegal_argument_exception",
"reason" : "unable to parse date [2022611]",
"caused_by" : {
"type" : "illegal_argument_exception",
"reason" : "failed to parse date field [2022611] with format [yyyyMdd]",
"caused_by" : {
"type" : "date_time_parse_exception",
"reason" : "Text '2022611' could not be parsed at index 0"
}
}
}
}
]
}
What am I missing?
Thank you,
Vlad