Date and time not accepting in json in version 6.7.2

Hi,
simply this i am sening to elasticsearch its working.
{"type":"req","timestamp":"2019-05-21","service_id":"7SO4VAT14dvGUn3WyGxG"}

But if i am using
from datetime import datetime
t = datetime.now()
{"type":"req","timestamp":str(t),"service_id":"7SO4VAT14dvGUn3WyGxG"}
Its not working. either not working epoch time.
If i giving 2019-05-21 12:11:23 its also not working.

are you maybe just missing ticks around the timestamp value, as this is supposed to be sent as a string?

--Alex

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