# Timestamp for global target

**URL:** <https://discuss.elastic.co/t/timestamp-for-global-target/309358>\
**Category:** Logstash\
**Created:** [July 11, 2022, 9:01pm UTC](https://discuss.elastic.co/t/timestamp-for-global-target/309358 "2022-07-11T21:01:29Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [July 12, 2022, 1:34am UTC](https://discuss.elastic.co/t/timestamp-for-global-target/309358/2 "2022-07-12T01:34:01Z")

</div>

Logstash events are independent from each other, only your first event has the date that you use as the `@timestamp` for the document, all the other events will get the auto-generated `@timestamp` from Logstash.

You need to treat your events as a multiline log, check [my answer in your other post](https://discuss.elastic.co/t/grok-for-data/309093/13).

---

_[View the full topic](https://discuss.elastic.co/t/timestamp-for-global-target/309358)._
