# Set @timestamp value

**URL:** https://discuss.elastic.co/t/set-timestamp-value/91958
**Category:** Logstash
**Created:** [July 5, 2017, 4:17pm UTC](https://discuss.elastic.co/t/set-timestamp-value/91958 "2017-07-05T16:17:58Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Roque\_Moyano](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/roque_moyano/32/116329_2.png) [@Roque\_Moyano](https://discuss.elastic.co/u/Roque_Moyano)
#### Post date: [July 5, 2017, 4:17pm UTC](https://discuss.elastic.co/t/set-timestamp-value/91958/1 "2017-07-05T16:17:58Z")

</div>

Hi , I have a situation , I need to send a lot of "old" logs to our ELK stack , I was doing some tests , and I realized that when logstash send the logs to elasticsearch it is seting the @timestamp field with the current date. So I can't use the date filter from kibana dashboard. I know that I can set another field with the old date logs , but is there any way to :

- set timestamp field with the logs date value or
- tell to kibana to search the date logs in a new field instead of @timestamp in order to use the date filter from kibana dashboard.

thanks in advance.

---

<div class="post-metadata">

### Author: ![Charles.w](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/charles.w/32/15486_2.png) [@Charles.w](https://discuss.elastic.co/u/Charles.w)
#### Post date: [July 5, 2017, 5:22pm UTC](https://discuss.elastic.co/t/set-timestamp-value/91958/2 "2017-07-05T17:22:26Z")

</div>

Hi,

You can use [the date filter plugin](https://www.elastic.co/guide/en/logstash/current/plugins-filters-date.html) to parse the timestamp found within your logs and replace the default @timestamp value.

Best regards,

Charles Casadei.

---

<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: [August 2, 2017, 5:22pm UTC](https://discuss.elastic.co/t/set-timestamp-value/91958/3 "2017-08-02T17:22:43Z")

</div>

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