Hello,
I'm using date processor on ingest pipeline, I've seen the documentation about the date processor, the syntax I wrote seems right, but the result is not.
here's my date example
05/11/2022, 7:03:52 AM
and here's my date processor
{
"date" : {
"field" : "timestamp",
"target_field" : "@timestamp",
"formats" : ["mm/dd/yyyy, h:mm:ss a"],
"timezone" : "UTC"
}
here's the error
{
"docs" : [
{
"error" : {
"root_cause" : [
{
"type" : "illegal_argument_exception",
"reason" : "unable to parse date [05/11/2022, 7:03:52 AM]"
}
],
"type" : "illegal_argument_exception",
"reason" : "unable to parse date [05/11/2022, 7:03:52 AM]",
"caused_by" : {
"type" : "illegal_argument_exception",
"reason" : "failed to parse date field [05/11/2022, 7:03:52 AM] with format [mm/dd/yyyy, h:mm:ss a]",
"caused_by" : {
"type" : "date_time_parse_exception",
"reason" : "Text '05/11/2022, 7:03:52 AM' could not be parsed at index 14"
}
}
}
}
]
}
anyone have any clue about this? I tried to trim the field first yet still experiencing same issue
any help is appreciated,
Thanks