# @timestamp field is missing in dead letter queue

**URL:** <https://discuss.elastic.co/t/timestamp-field-is-missing-in-dead-letter-queue/223749>\
**Category:** Logstash\
**Created:** [March 16, 2020, 11:56am UTC](https://discuss.elastic.co/t/timestamp-field-is-missing-in-dead-letter-queue/223749 "2020-03-16T11:56:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![darkwarrior](https://avatars.discourse-cdn.com/v4/letter/d/3bc359/32.png) [@darkwarrior](https://discuss.elastic.co/u/darkwarrior)\
**Post date:** [March 16, 2020, 11:56am UTC](https://discuss.elastic.co/t/timestamp-field-is-missing-in-dead-letter-queue/223749/1 "2020-03-16T11:56:05Z")

</div>

Hello everyone,

1. I am using dead letter queue and based on some filters I want to index all the processed events to ES.
2. In output section of dlq I am using, **index =\> "index-prod-l%{+YYYYMMdd}**" to create dynamic indices based on date and time.
3. but when I ran this I got error =\> [**FATAL**][logstash.runner] An unexpected error occurred! {:error=\>#\< **LogStash::Error: timestamp field is missing** \>, :backtrace=\>["org/logstash/ext/JrubyEventExtLibrary.java:177:in `sprintf'", ... and hence logstash got terminated.
4. At the same time same index-name logic works with **main** pipeline and creates new indices on ES on daily basis.
5. and when I change index name logic as **index =\> "index-1"** in dlq conf, the index got created on ES and processed events also got indexed on ES.
6. so is there a way to check if @timestamp is present or not and if not is there a way to add it in the event?
7. logstash version =\> 6.5.4, elasticsearch version =\> 6.6.0. and kibana version =\> 6.6.1  
Thanks in advance!

---

<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:** [April 13, 2020, 11:56am UTC](https://discuss.elastic.co/t/timestamp-field-is-missing-in-dead-letter-queue/223749/2 "2020-04-13T11:56:19Z")

</div>

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