# Date filter - timestamp & @timestamp are diffrent

**URL:** <https://discuss.elastic.co/t/date-filter-timestamp-timestamp-are-diffrent/95028>\
**Category:** Logstash\
**Created:** [July 29, 2017, 2:34am UTC](https://discuss.elastic.co/t/date-filter-timestamp-timestamp-are-diffrent/95028 "2017-07-29T02:34:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ssasporta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ssasporta/32/13695_2.png) [@ssasporta](https://discuss.elastic.co/u/ssasporta)\
**Post date:** [July 29, 2017, 2:34am UTC](https://discuss.elastic.co/t/date-filter-timestamp-timestamp-are-diffrent/95028/1 "2017-07-29T02:34:51Z")

</div>

Hi,

The timestamp in the log is : `26/Jul/2017:00:00:00`

I defined a pattern: `HTTPDATE %{MONTHDAY}/%{MONTH}/%{YEAR}:%{TIME}`

In the grok I have it : `%{HTTPDATE:timestamp}`

And this is the filter I do:

```
        date {
              match => ["timestamp" , "dd/MMM/YYYY:HH:mm:ss"]
        }

```

The results in output:

```
  "timestamp" => "26/Jul/2017:00:00:00",

  "@timestamp" => 2017-07-25T21:00:00.000Z,

```

**Why isn't it the same?** Any idea?

Thanks  
Sharon.

---

<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:** [August 11, 2017, 6:17pm UTC](https://discuss.elastic.co/t/date-filter-timestamp-timestamp-are-diffrent/95028/2 "2017-08-11T18:17:15Z")

</div>

`timestamp` is local time and `@timestamp` is UTC.

---

<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 8, 2017, 6:18pm UTC](https://discuss.elastic.co/t/date-filter-timestamp-timestamp-are-diffrent/95028/3 "2017-09-08T18:18:14Z")

</div>

Closed on September 8, 2017, 6:18pm UTC

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