# Default @timestamp not overridden

**URL:** <https://discuss.elastic.co/t/default-timestamp-not-overridden/79725>\
**Category:** Logstash\
**Created:** [March 23, 2017, 10:07am UTC](https://discuss.elastic.co/t/default-timestamp-not-overridden/79725 "2017-03-23T10:07:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fabrizio\_Micheloni](https://avatars.discourse-cdn.com/v4/letter/f/c2a13f/32.png) [@Fabrizio\_Micheloni](https://discuss.elastic.co/u/Fabrizio_Micheloni)\
**Post date:** [March 23, 2017, 10:07am UTC](https://discuss.elastic.co/t/default-timestamp-not-overridden/79725/1 "2017-03-23T10:07:17Z")

</div>

Hi all!

I have the following scenario.

**Example of my log**

2017-03-22 16:24:49.710 | abc | def | ghi | 127.0.0.1 | | My message

I'm able to parse it properly with a grok filter and trying to override the default timestamp:

```
filter {
  date {
    match => ["time", "yyyy-MM-dd HH:mm:ss.SSS"]
    target => "@timestamp"
  }
  grok {
    match => { "message" => "%{TIMESTAMP_ISO8601:time} \| %{WORD:trackingId} \| %{WORD:request} \| %{WORD:session} \| %{IP:client} \| %{DATA:userId} \| %{GREEDYDATA:data}" }
  }
}

```

Apparently, the message is parsed properly by the grok filter but the @timestamp remains the same and it's value is not set to the time in my log!

What am I doing wrong?

Thank,

Nano

---

<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:** [March 23, 2017, 10:50am UTC](https://discuss.elastic.co/t/default-timestamp-not-overridden/79725/2 "2017-03-23T10:50:20Z")

</div>

Filters are evaluated in order so you need to put the date filter after the grok filter.

---

<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 20, 2017, 10:50am UTC](https://discuss.elastic.co/t/default-timestamp-not-overridden/79725/3 "2017-04-20T10:50:25Z")

</div>

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