# Timestamp mapping in CEF

**URL:** <https://discuss.elastic.co/t/timestamp-mapping-in-cef/56510>\
**Category:** Logstash\
**Created:** [July 27, 2016, 11:52am UTC](https://discuss.elastic.co/t/timestamp-mapping-in-cef/56510 "2016-07-27T11:52:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cabbage](https://avatars.discourse-cdn.com/v4/letter/c/f07891/32.png) [@Cabbage](https://discuss.elastic.co/u/Cabbage)\
**Post date:** [July 27, 2016, 11:52am UTC](https://discuss.elastic.co/t/timestamp-mapping-in-cef/56510/1 "2016-07-27T11:52:38Z")

</div>

Hi! I have a problem with mapping timestamp field.  
I have log with events like this

> CEF:0|SI|Audit|1.2|SECA0023|Report Started|3|rt=Jul 25 2016 11:20:28 msg=Report RSRZLLG0 Started duser=SYS shost= cs2=000 cs2Label=client destinationServiceName= dproc=RSRZLLG0 cat=AUW  
> CEF:0|SI|Audit|1.2|SECA0023|Report Started|3|rt=Jul 25 2016 11:24:35 msg=Report RSRZLLG0\_ACTUAL Started duser=SYS shost= cs2=000 cs2Label=client destinationServiceName= dproc=RSRZLLG0\_ACTUAL cat=AUW

So I use Logstash plugins Cef and Date for analyzyng this.  
Logstash configuration file looks like

```
input {
	stdin { }
	file {
		path => "/home/user/logs/*"
		codec => cef
		start_position => "beginning" } }
filter {
	date {
		match => ["rt", "MMMM DD YYYY HH:mm:ss"]
		target => ["rt"] } }
output {
	elasticsearch {
		hosts => ["172.16.2.123:9200"]
		index => "test" } }

```

It sends events Elastic but, I can't choose the filed "rt" as timestamp field in Kibana.  
So the question is - What I'm doing wrong? Thank you.

P.S. In Kibana all extension part fields _(rt, cat, msg)_ extracted like **cef\_ext.rt, cef\_ext.cat, cef\_ext.msg**

---

<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:** [July 30, 2016, 9:27am UTC](https://discuss.elastic.co/t/timestamp-mapping-in-cef/56510/2 "2016-07-30T09:27:07Z")

</div>

What's the contents of the `rt` field? What's the mapping of that field? Use Elasticsearch's get mapping API.

---

<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, 4:45am UTC](https://discuss.elastic.co/t/timestamp-mapping-in-cef/56510/3 "2017-07-06T04:45:47Z")

</div>


