# Preserve logs original creation sequence when timestamp is identical

**URL:** <https://discuss.elastic.co/t/preserve-logs-original-creation-sequence-when-timestamp-is-identical/294818>\
**Category:** Logstash\
**Created:** [January 19, 2022, 1:30pm UTC](https://discuss.elastic.co/t/preserve-logs-original-creation-sequence-when-timestamp-is-identical/294818 "2022-01-19T13:30:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![alon\_carmelly](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alon_carmelly/32/118670_2.png) [@alon\_carmelly](https://discuss.elastic.co/u/alon_carmelly)\
**Post date:** [January 19, 2022, 1:30pm UTC](https://discuss.elastic.co/t/preserve-logs-original-creation-sequence-when-timestamp-is-identical/294818/1 "2022-01-19T13:30:20Z")

</div>

Hi, I have logs with similar timestamp out of order: I understand logstash does not preserve creation order.  
I read that using dissect filter together with grok could solve the issue but can't find any examples.  
This is my current setup:

```auto
`if "GW" in [log][file][path] {`
` mutate { add_tag => "devices" }`
` date {`
` match => ["datetime" ,"yyyy-MM-dd HH:mm:ss.SSSSSS"]`
` timezone => "GMT"`
` target => "@timestamp"`
` }`

```

---

<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:** [February 16, 2022, 1:30pm UTC](https://discuss.elastic.co/t/preserve-logs-original-creation-sequence-when-timestamp-is-identical/294818/2 "2022-02-16T13:30:55Z")

</div>

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