# How to add @timestamp to records that have no time at all

**URL:** <https://discuss.elastic.co/t/how-to-add-timestamp-to-records-that-have-no-time-at-all/54886>\
**Category:** Logstash\
**Created:** [July 7, 2016, 2:00am UTC](https://discuss.elastic.co/t/how-to-add-timestamp-to-records-that-have-no-time-at-all/54886 "2016-07-07T02:00:28Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![zoplex](https://avatars.discourse-cdn.com/v4/letter/z/bc8723/32.png) [@zoplex](https://discuss.elastic.co/u/zoplex)\
**Post date:** [July 7, 2016, 2:00am UTC](https://discuss.elastic.co/t/how-to-add-timestamp-to-records-that-have-no-time-at-all/54886/1 "2016-07-07T02:00:28Z")

</div>

small percentage of incoming records have no time stamp ... how do I add that time stamp to the record - to make it equal to current run time?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [July 7, 2016, 2:01am UTC](https://discuss.elastic.co/t/how-to-add-timestamp-to-records-that-have-no-time-at-all/54886/2 "2016-07-07T02:01:21Z")

</div>

LS adds that automatically to the `@timestamp` field.

---

<div class="post-metadata">

**Author:** ![zoplex](https://avatars.discourse-cdn.com/v4/letter/z/bc8723/32.png) [@zoplex](https://discuss.elastic.co/u/zoplex)\
**Post date:** [July 7, 2016, 2:01am UTC](https://discuss.elastic.co/t/how-to-add-timestamp-to-records-that-have-no-time-at-all/54886/3 "2016-07-07T02:01:38Z")

</div>

... those records are already tagged in the first part of the logstash filtering with add\_tag with value "no\_timestamp"

---

<div class="post-metadata">

**Author:** ![zoplex](https://avatars.discourse-cdn.com/v4/letter/z/bc8723/32.png) [@zoplex](https://discuss.elastic.co/u/zoplex)\
**Post date:** [July 7, 2016, 2:02am UTC](https://discuss.elastic.co/t/how-to-add-timestamp-to-records-that-have-no-time-at-all/54886/4 "2016-07-07T02:02:18Z")

</div>

ok - so no need to explicitelly do that ...

---

<div class="post-metadata">

**Author:** ![zoplex](https://avatars.discourse-cdn.com/v4/letter/z/bc8723/32.png) [@zoplex](https://discuss.elastic.co/u/zoplex)\
**Post date:** [July 7, 2016, 2:09am UTC](https://discuss.elastic.co/t/how-to-add-timestamp-to-records-that-have-no-time-at-all/54886/5 "2016-07-07T02:09:57Z")

</div>

thanks

---

<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:** [July 6, 2017, 4:49am UTC](https://discuss.elastic.co/t/how-to-add-timestamp-to-records-that-have-no-time-at-all/54886/6 "2017-07-06T04:49:12Z")

</div>

Closed on July 6, 2017, 4:49am UTC


