# Elasticsearch rejects records without timestamp

**URL:** <https://discuss.elastic.co/t/elasticsearch-rejects-records-without-timestamp/54879>\
**Category:** Elasticsearch\
**Created:** [July 6, 2016, 11:31pm UTC](https://discuss.elastic.co/t/elasticsearch-rejects-records-without-timestamp/54879 "2016-07-06T23:31:23Z")\
**Posts on this page:** 4\
**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 6, 2016, 11:31pm UTC](https://discuss.elastic.co/t/elasticsearch-rejects-records-without-timestamp/54879/1 "2016-07-06T23:31:23Z")

</div>

I am loading log records from mysql log files - into [filebeat-]YYYY.MM.DD indexes (through the logstash and related filters) - most of the records are coming in but some are rejected due to missing time stamp - which happens as not all records from mysql log files have time stamps - most do but not all ...

What is the best way to get these records in - should the index be different or should the records be modified in logstash filters to append timestmap or ..?

Thanks,

---

<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 6, 2016, 11:49pm UTC](https://discuss.elastic.co/t/elasticsearch-rejects-records-without-timestamp/54879/2 "2016-07-06T23:49:47Z")

</div>

> [@zoplex](#):
>
> should the records be modified in logstash filters to append timestmap

Ideally, yes.

---

<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, 12:14am UTC](https://discuss.elastic.co/t/elasticsearch-rejects-records-without-timestamp/54879/3 "2016-07-07T00:14:08Z")

</div>

Thank you

---

<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 5, 2017, 10:37pm UTC](https://discuss.elastic.co/t/elasticsearch-rejects-records-without-timestamp/54879/4 "2017-07-05T22:37:30Z")

</div>


