# Add @timestamp using Python API

**URL:** https://discuss.elastic.co/t/add-timestamp-using-python-api/120890
**Category:** Elasticsearch
**Created:** [February 21, 2018, 4:10pm UTC](https://discuss.elastic.co/t/add-timestamp-using-python-api/120890 "2018-02-21T16:10:03Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![druzmieres](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/druzmieres/32/25828_2.png) [@druzmieres](https://discuss.elastic.co/u/druzmieres)
#### Post date: [February 21, 2018, 4:10pm UTC](https://discuss.elastic.co/t/add-timestamp-using-python-api/120890/1 "2018-02-21T16:10:03Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [March 21, 2018, 4:10pm UTC](https://discuss.elastic.co/t/add-timestamp-using-python-api/120890/2 "2018-03-21T16:10:13Z")

</div>

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