# Custom timestamp

**URL:** <https://discuss.elastic.co/t/custom-timestamp/29188>\
**Category:** Kibana\
**Created:** [September 13, 2015, 11:03am UTC](https://discuss.elastic.co/t/custom-timestamp/29188 "2015-09-13T11:03:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![scaarup](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/scaarup/32/4615_2.png) [@scaarup](https://discuss.elastic.co/u/scaarup)\
**Post date:** [September 13, 2015, 11:03am UTC](https://discuss.elastic.co/t/custom-timestamp/29188/1 "2015-09-13T11:03:38Z")

</div>

Hi guys. I would like kibana to use my timestamp which are in the logfiles fed from logstash.

My logstash conf looks like:

filter {  
if [type] == "dibslog" {  
grok {  
match =\> { "message" =\> "%{DIBSLOG}" }  
remove\_field =\> ["message"]  
}  
mutate {  
add\_field =\> { "syslogtimestamp" =\> "%{month} %{day} %{time}" }  
}  
geoip {  
source =\> "clientip"  
target =\> "geoip"  
database =\> "/etc/logstash/GeoLiteCity.dat"  
add\_field =\> ["[geoip][coordinates]", "%{[geoip][longitude]}" ]  
add\_field =\> ["[geoip][coordinates]", "%{[geoip][latitude]}" ]  
}  
mutate {  
remove\_field =\> ["month","day","time","host","offset","file"]  
}  
date {  
match =\> ["syslogtimestamp", "MMM dd HH:mm:ss", "MMM d HH:mm:ss"]  
}  
}  
}

And I actually have the field in Kibana with my syslogtimestamp - example: "Sep 13 13:01:07".

But during kibana's index pattern configuration, Kibana does not show syslogtimestamp on the list of time-fields...

I have added syslogtimestamp to the list of metaFields, but that didn't help.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [September 13, 2015, 11:19am UTC](https://discuss.elastic.co/t/custom-timestamp/29188/2 "2015-09-13T11:19:52Z")

</div>

What does the mapping for that field look like in ES?

---

<div class="post-metadata">

**Author:** ![scaarup](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/scaarup/32/4615_2.png) [@scaarup](https://discuss.elastic.co/u/scaarup)\
**Post date:** [September 13, 2015, 11:48am UTC](https://discuss.elastic.co/t/custom-timestamp/29188/3 "2015-09-13T11:48:53Z")

</div>

It is a string, unfortunately...

---

<div class="post-metadata">

**Author:** ![scaarup](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/scaarup/32/4615_2.png) [@scaarup](https://discuss.elastic.co/u/scaarup)\
**Post date:** [September 13, 2015, 2:23pm UTC](https://discuss.elastic.co/t/custom-timestamp/29188/4 "2015-09-13T14:23:46Z")

</div>

Okay, it is actually working. I have just misunderstood how. It actually updates a different field, @timestamp, which render my own, syslogtimestamp, useless. Fine as it is.

---

<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 6, 2017, 2:13pm UTC](https://discuss.elastic.co/t/custom-timestamp/29188/5 "2017-07-06T14:13:09Z")

</div>


