# Make @timestamp the same as Log's timestamp

**URL:** <https://discuss.elastic.co/t/make-timestamp-the-same-as-logs-timestamp/186980>\
**Category:** Logstash\
**Created:** [June 23, 2019, 4:38am UTC](https://discuss.elastic.co/t/make-timestamp-the-same-as-logs-timestamp/186980 "2019-06-23T04:38:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![WarriorHarb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warriorharb/32/43201_2.png) [@WarriorHarb](https://discuss.elastic.co/u/WarriorHarb)\
**Post date:** [June 23, 2019, 4:38am UTC](https://discuss.elastic.co/t/make-timestamp-the-same-as-logs-timestamp/186980/1 "2019-06-23T04:38:00Z")

</div>

Hello,  
I am parsing a log with this format :

> 2019-04-19 12:00:05.17 FCC7-APS01-B Collector[71] [Info] Publisher.TransmitterServiceAlivePolicy - Transmitter service is Alive.

I applied a grok filter :

> match =\>{  
> "message" =\>"%{TIMESTAMP\_ISO8601:Date}%{SPACE}%{GREEDYDATA:Message}"  
> }

Then as suggested in similar topics i applied the date filter :

> date {  
> match =\> ["Date" , "ISO8601"]  
> target =\> "@timestamp"  
> }

Yet i still don't get the @timestamp with the log's timestamp, instead it has the time of when it was parsed by Elastic.

Any help wil be apperciated .

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [June 23, 2019, 9:46am UTC](https://discuss.elastic.co/t/make-timestamp-the-same-as-logs-timestamp/186980/2 "2019-06-23T09:46:31Z")

</div>

I get

```
"@timestamp" => 2019-04-19T12:00:05.170Z,

```

with those filters.

---

<div class="post-metadata">

**Author:** ![WarriorHarb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warriorharb/32/43201_2.png) [@WarriorHarb](https://discuss.elastic.co/u/WarriorHarb)\
**Post date:** [June 23, 2019, 10:42am UTC](https://discuss.elastic.co/t/make-timestamp-the-same-as-logs-timestamp/186980/3 "2019-06-23T10:42:39Z")

</div>

when i delete the date part, i get the logs parsed but with the ES timestamp, when i add the date filter, filebeat keeps sending logs but i get nothing with kibana.  
any idea what's the problem in my code ?

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [June 23, 2019, 1:01pm UTC](https://discuss.elastic.co/t/make-timestamp-the-same-as-logs-timestamp/186980/4 "2019-06-23T13:01:56Z")

</div>

In Kibana, are you sure you have the date picker set to a range that include April?

---

<div class="post-metadata">

**Author:** ![WarriorHarb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warriorharb/32/43201_2.png) [@WarriorHarb](https://discuss.elastic.co/u/WarriorHarb)\
**Post date:** [June 23, 2019, 1:40pm UTC](https://discuss.elastic.co/t/make-timestamp-the-same-as-logs-timestamp/186980/5 "2019-06-23T13:40:56Z")

</div>

@Badger dude you're a life saviour !

---

<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:** [July 21, 2019, 1:40pm UTC](https://discuss.elastic.co/t/make-timestamp-the-same-as-logs-timestamp/186980/6 "2019-07-21T13:40:58Z")

</div>

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