# Wrong timestamp in kibana index

**URL:** <https://discuss.elastic.co/t/wrong-timestamp-in-kibana-index/284181>\
**Category:** Elasticsearch\
**Created:** [September 14, 2021, 12:24pm UTC](https://discuss.elastic.co/t/wrong-timestamp-in-kibana-index/284181 "2021-09-14T12:24:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tejas\_Bhosale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tejas_bhosale/32/78611_2.png) [@Tejas\_Bhosale](https://discuss.elastic.co/u/Tejas_Bhosale)\
**Post date:** [September 14, 2021, 12:24pm UTC](https://discuss.elastic.co/t/wrong-timestamp-in-kibana-index/284181/1 "2021-09-14T12:24:28Z")

</div>

I get worng time data in my index in kibana there is around lot of difference in @timestamp and log\_timestamp field.

grok filter which i am using

```auto
          grok {
            match => ["message" , '%{IP:remote_addr} - - \[%{HTTPDATE:log_timestamp}\] "%{IPORHOST:http_host}" "%{WORD:request_method} %{DATA:uri} HTTP/1.1" %{NUMBER:response} %{NUMBER:bytes} (?:%{DATA:http_refer}|-) %{QS:agent} "(?:%{IPV4:upstream_addr}|-)" (?:%{NUMBER:upstream_connect_time}|-) (?:%{NUMBER:upstream_header_time}|-) (?:%{NUMBER:upstream_response_time}|-) (?:%{NUMBER:request_time}|-)' ]
            overwrite => ["message"]
          }
         mutate {
           convert => ["response", "integer"]
           convert => ["bytes", "integer"]
           convert => ["responsetime", "float"]
           rename => ["agent", "filebeat_agent"]
         }
         geoip {
           source => "remote_addr"
           add_tag => ["nginx-geoip"]
         }
         date {
           match => ["timestamp" , "dd/MMM/YYYY:HH:mm:ss Z"]
           remove_field => ["timestamp"]
# target => "@timestamp"
         }
         useragent {
           source => "agent"
         }
  }
}

```

To push log from client i am using filebeat nginx module with some fields. See below attached image you can see time difference in index

 ![elk](https://us1.discourse-cdn.com/elastic/original/3X/7/d/7dde50aaf4f2e112b4302d1906dde3da2e1b047f.png)

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [September 14, 2021, 12:34pm UTC](https://discuss.elastic.co/t/wrong-timestamp-in-kibana-index/284181/2 "2021-09-14T12:34:23Z")

</div>

Is this your full configuration pipeline?

Your date filter is trying to match the field `timestamp`, but your `grok` does not create a field called `timestamp`, it creates a `log_timestamp`.

Have you tried using `log_timestamp` in your date filter?

---

<div class="post-metadata">

**Author:** ![Tejas\_Bhosale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tejas_bhosale/32/78611_2.png) [@Tejas\_Bhosale](https://discuss.elastic.co/u/Tejas_Bhosale)\
**Post date:** [September 15, 2021, 10:13am UTC](https://discuss.elastic.co/t/wrong-timestamp-in-kibana-index/284181/3 "2021-09-15T10:13:26Z")

</div>

Thanks it worked for me.  
Thanks for your help

---

<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:** [October 13, 2021, 10:14am UTC](https://discuss.elastic.co/t/wrong-timestamp-in-kibana-index/284181/4 "2021-10-13T10:14:20Z")

</div>

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