Issue with Date with Python importing data into Elastic

Hey I have a quick issue regarding using python to connect to elastic. When I go to import data as a date field, its giving me a time error due to time format, but Ive tried everything, including datestamp instead of just date, making sure it matches verbatim with the input data, and Ive completely exhausted all efforts. The current code snippet:

"<REDACTED>": {"type": "date", "format": "date_optional_time||strict_date_optional_time||yyyy-MM-dd'T'HH:mm:ss||yyyy-MM-dd HH:mm:ss||yyyy-MM-dd HH:mm:ss aa||yyyy-MM-dd HH:mm:ss||M/dd/yyyy HH:mm:ss aa||MM/dd/yyyy HH:mm:ss||MM/dd/yyyy HH:mm:ss aa||yyyy-MM-dd||epoch_millis"}

Error reports: Preview of Field's value: '2021-03-27 22:46:08'

That corresponds with the 4th date time format, but it fails to adopt it, even alone as a singular format.

Data file the data is importing from is .csv format if that helps any.

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