Mapper parsing exception for date type

I am trying to send a log with a date value of "yyyy-MM-dd'T'HH:mm:ss.SSSZ" results in an error of MapperParsingException.

Full error message:
Failed to index [1] messages. Please check the index error log in your web interface for the reason. Error: failure in bulk execution: [0]: index [graylog_0], type [message], id [9751fd11-7320-11e7-aff3-0242994e81cd], message [MapperParsingException[failed to parse [insertedDtm]]; nested: NumberFormatException[For input string: "2017-07-27T23:08:36.692Z"];]

I have tried creating custom index mappings with the following format:
curl -XPUT localhost:9200/_template/graylog -d ' { "template" : "graylog_*", "mappings" : { "message" : { "properties" : { "insertedDtm" : { "type" : "string", "format" : "yyyy-MM-dd'T'HH:mm:ss.SSSZ" } } } } }

and also tried to set the index's date detection to false:
curl -XPUT "http://localhost:9200/graylog" -d' { "mappings": { "insertedDtm": { "date_detection": false } } }'

Any help would be greatly appreciated.

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