Date format support

Hi ,

I am trying to inject "Tue Oct 03 07:29:52 2017" date format. But i am getting below error. But few reference says that supports are available for the format which i am trying here.

{
"error" : {
"root_cause" : [
{
"type" : "mapper_parsing_exception",
"reason" : "failed to parse [log.message.@timestamp]"
}
],
"type" : "mapper_parsing_exception",
"reason" : "failed to parse [log.message.@timestamp]",
"caused_by" : {
"type" : "illegal_argument_exception",
"reason" : "Invalid format: "Tue Oct 03 07:29:52 2017""
}
},
"status" : 400
}

thanks,
Subash

Do you have a date format setup in your elasticsearch mapping? You'll need to specify a custom mapping that will teach Elasticsearch how to parse that specific format, which you can do with the custom date format option on date type fields.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.