Add @timestamp using Python API

I wrote a script that loads files to ES using the Python API (helpers.parallel_bulk). But, when the same files are sent using Logstash, there's a field called "@timestamp".

I'd like to add the same field using the API but I don't want to modify the mappings in any way.

Is there a way to do it?

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