Failed to parse date error


(Geoffrey) #1

Hi,

I am running a python script using the Elasticsearch client to insert a document into an existing index.

My documents have a datefield called "@timestamp" with the following format:

'@timestamp': '2018-03-07T00:00:17+0000',

My mapping is as follows:

'@timestamp': {'type': 'date'}

Yet I keep getting the following error when I tried to insert the document:

TransportError(400, 'mapper_parsing_exception', 'failed to parse [@timestamp]')

What am I doing wrong? I tried formatting the date as a timestamp and as a datetime object, but neither worked.


(system) #2

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