# Date Filter Question

**URL:** https://discuss.elastic.co/t/date-filter-question/244816
**Category:** Logstash
**Created:** [August 13, 2020, 7:41am UTC](https://discuss.elastic.co/t/date-filter-question/244816 "2020-08-13T07:41:48Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![kvtang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kvtang/32/83160_2.png) [@kvtang](https://discuss.elastic.co/u/kvtang)
#### Post date: [August 13, 2020, 7:41am UTC](https://discuss.elastic.co/t/date-filter-question/244816/1 "2020-08-13T07:41:49Z")

</div>

Hi all,

Currently I have a use case where I have to do some calculation on the time, therefore I need to use date filter plugin in order to parse dates from field.  
But I dont want to use that date or timestamp as the logstash timestamp for the event as it is not correct.

Any idea how I can fix this?

Thanks.

---

<div class="post-metadata">

### Author: ![Jenni](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jenni/32/29684_2.png) [@Jenni](https://discuss.elastic.co/u/Jenni)
#### Post date: [August 13, 2020, 8:00am UTC](https://discuss.elastic.co/t/date-filter-question/244816/2 "2020-08-13T08:00:18Z")

</div>

You can just set the [target](https://www.elastic.co/guide/en/logstash/current/plugins-filters-date.html#plugins-filters-date-target) field of the filter to something other than `@timestamp`, e.g. `target => "[@metadata][temp_ts]"`. Then you'll have a field with the result that won't appear in your output.

---

<div class="post-metadata">

### Author: ![kvtang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kvtang/32/83160_2.png) [@kvtang](https://discuss.elastic.co/u/kvtang)
#### Post date: [August 13, 2020, 8:08am UTC](https://discuss.elastic.co/t/date-filter-question/244816/3 "2020-08-13T08:08:26Z")

</div>

Ah yes how could I miss that!?  
Thank you so much!!

---

<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: [September 10, 2020, 8:08am UTC](https://discuss.elastic.co/t/date-filter-question/244816/4 "2020-09-10T08:08:32Z")

</div>

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