# Nanoseconds with Logstash and Elasticsearch

**URL:** https://discuss.elastic.co/t/nanoseconds-with-logstash-and-elasticsearch/282492
**Category:** Logstash
**Created:** [August 25, 2021, 1:47pm UTC](https://discuss.elastic.co/t/nanoseconds-with-logstash-and-elasticsearch/282492 "2021-08-25T13:47:01Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![AquaX](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aquax/32/92006_2.png) [@AquaX](https://discuss.elastic.co/u/AquaX)
#### Post date: [August 25, 2021, 2:16pm UTC](https://discuss.elastic.co/t/nanoseconds-with-logstash-and-elasticsearch/282492/2 "2021-08-25T14:16:07Z")

</div>

Check out this post:

> [@How to index nanoseconds precision events with Logstash (7.10) and type date\_nanos](https://discuss.elastic.co/t/how-to-index-nanoseconds-precision-events-with-logstash-7-10-and-type-date-nanos/262029):
>
> Problem statement Elasticsearch 7.10 supports timestamp with nanoseconds precision (type date\_nanos) Kibana 7.10 [visualises these timestamps](https://xeraa.net/blog/2019_date-nano-elasticsearch-kibana/) but Logstash [can't handle them yet](https://github.com/elastic/logstash/issues/10822) (precision above milliseconds is lost when applied to field @timestamp) Workaround I'll share here how I've managed to do it but I'm happy to hear better options. Step #1 Convert your nanoseconds timestamp from number to date (ignore this step if you already have your timestamp in this format) Logstash filter date …

---

_[View the full topic](https://discuss.elastic.co/t/nanoseconds-with-logstash-and-elasticsearch/282492)._
