# @timestamp in date\_nanos

**URL:** https://discuss.elastic.co/t/timestamp-in-date-nanos/263112
**Category:** Logstash
**Created:** [February 3, 2021, 11:17am UTC](https://discuss.elastic.co/t/timestamp-in-date-nanos/263112 "2021-02-03T11:17:19Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![ritusingh](https://avatars.discourse-cdn.com/v4/letter/r/ac91a4/32.png) [@ritusingh](https://discuss.elastic.co/u/ritusingh)
#### Post date: [February 3, 2021, 11:17am UTC](https://discuss.elastic.co/t/timestamp-in-date-nanos/263112/1 "2021-02-03T11:17:19Z")

</div>

Hi ,  
I am using ELK 7.7.0 and want to know that how can I change @timestamp to date\_nanos while sending logs from logstash to elasticsearch?  
I know that we can change format of @timestamp to date\_nanos , but it simply appends the zeroes. I need actual values rather than zeroes.

---

<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 3, 2021, 11:18am UTC](https://discuss.elastic.co/t/timestamp-in-date-nanos/263112/2 "2021-03-03T11:18:14Z")

</div>

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