# Date filter is not overwriting to @timestamp

**URL:** https://discuss.elastic.co/t/date-filter-is-not-overwriting-to-timestamp/111495
**Category:** Logstash
**Created:** [December 13, 2017, 7:08am UTC](https://discuss.elastic.co/t/date-filter-is-not-overwriting-to-timestamp/111495 "2017-12-13T07:08:37Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Balamurali](https://avatars.discourse-cdn.com/v4/letter/b/90db22/32.png) [@Balamurali](https://discuss.elastic.co/u/Balamurali)
#### Post date: [December 13, 2017, 7:08am UTC](https://discuss.elastic.co/t/date-filter-is-not-overwriting-to-timestamp/111495/1 "2017-12-13T07:08:38Z")

</div>

Hi all,

I 'm using logstash 6.0 version, unable to overwrite @timestamp using date filter.

**Below sample logs are**  
2017-12-11 01:04:56,195 INFO XXXYXYYXYXYXY  
2017-12-11 01:04:56,239 ERR XYEUUSSI

**Configurations are**  
_cat /etc/logstash/conf.d/patterns_

JBOSS\_TIME\_FORMAT %{YEAR}[/-]%{MONTHNUM}[/-]%{MONTHDAY} %{TIME}

_cat jboss.conf_

filter {  
grok {  
patterns\_dir =\> ["/etc/logstash/conf.d/patterns"]  
match =\> [  
"message", "%{JBOSS\_TIME\_FORMAT:Log\_Time} %{LOGLEVEL:Log\_level} %{GREEDYDATA:LOG\_MESSAGE}"  
]  
}

date {  
match =\> ["Log\_Time","yyyy-MM-dd HH:mm:ss,SSS"]  
}  
}

@Timestamp is not overwriting by date filter, Please help to debug on this.

Thanks in advance 🙂

---

<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: [December 13, 2017, 12:50pm UTC](https://discuss.elastic.co/t/date-filter-is-not-overwriting-to-timestamp/111495/2 "2017-12-13T12:50:40Z")

</div>

Show an example event produced by Logstash. Use a `stdout { codec => rubydebug }` output.

---

<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: [January 10, 2018, 12:50pm UTC](https://discuss.elastic.co/t/date-filter-is-not-overwriting-to-timestamp/111495/3 "2018-01-10T12:50:55Z")

</div>

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