I've just started using the rest api to put documents into ElasticSearch having always used Logstash to do this in the past.
How do I get ES to recognise dates when I pass it a string or integer? I've tried both 13 digit "millis since epoc" (as string and integer) format and yyyyMMddTHHmmss.SSSZ (ISO 8601) format. Neither seem to get parsed.
Looking at documents that Logstash has successfully indexed, it seems to use the "millis since epoc" method, and I know those indexes are dynamically created. Submitting mappings for each index is not an option for me.
Any ideas? Thanks.