# Logstash 5.6 Date filter target setting not working

**URL:** <https://discuss.elastic.co/t/logstash-5-6-date-filter-target-setting-not-working/115180>\
**Category:** Logstash\
**Created:** [January 11, 2018, 9:57pm UTC](https://discuss.elastic.co/t/logstash-5-6-date-filter-target-setting-not-working/115180 "2018-01-11T21:57:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ajstark123](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@ajstark123](https://discuss.elastic.co/u/ajstark123)\
**Post date:** [January 11, 2018, 9:57pm UTC](https://discuss.elastic.co/t/logstash-5-6-date-filter-target-setting-not-working/115180/1 "2018-01-11T21:57:33Z")

</div>

We have a date field filebeat\_timestamp that has the dates in the following format: 2018-01-11T21:50:50.219Z.

We want to convert the date to this format: January 11 2018, 16:50:50.219 . We want to make sure that we remove the GMT.

We are using the following code. The target field never creates filebeat\_timestamp\_2. We tried placing filebeat\_timestamp as the target and that did not work either.

date {  
match =\> ["filebeat\_timestamp", "MMMM dd yyyy HH:mm:ss.SSSZZZ"]  
target =\> "filebeat\_timestamp\_2"  
}

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [January 16, 2018, 10:57am UTC](https://discuss.elastic.co/t/logstash-5-6-date-filter-target-setting-not-working/115180/2 "2018-01-16T10:57:45Z")

</div>

The date pattern in the `match` option describes the date format of the field that's being read (`filebeat_timestamp` in this case) so that it can be correctly parsed. It's not a way to configure the format of the date written to the field in the `target` option. The output format of the date filter isn't configurable.

---

<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:** [February 13, 2018, 10:58am UTC](https://discuss.elastic.co/t/logstash-5-6-date-filter-target-setting-not-working/115180/3 "2018-02-13T10:58:20Z")

</div>

Closed on February 13, 2018, 10:58am UTC

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