# EKK stack and Timestamps

**URL:** https://discuss.elastic.co/t/ekk-stack-and-timestamps/126451
**Category:** Kibana
**Created:** [April 2, 2018, 5:14pm UTC](https://discuss.elastic.co/t/ekk-stack-and-timestamps/126451 "2018-04-02T17:14:03Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![luciddr34m3r](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/luciddr34m3r/32/29478_2.png) [@luciddr34m3r](https://discuss.elastic.co/u/luciddr34m3r)
#### Post date: [April 2, 2018, 5:14pm UTC](https://discuss.elastic.co/t/ekk-stack-and-timestamps/126451/1 "2018-04-02T17:14:03Z")

</div>

Hey there,

I'm sending syslog data to Elasticsearch through an AWS Kinesis Firehose. I send a json object of parsed syslog information. I convert the timestamp to epoch and add it as an additional field named "date". I set the index mapping for date to be interpreted as a date type with format epoch\_second, but once a record is sent through the firehose, it creates a mapping conflict and Kibana says the field is a number, not a date.

Any ideas on what I'm doing wrong?

---

<div class="post-metadata">

### Author: ![jbudz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jbudz/32/45922_2.png) [@jbudz](https://discuss.elastic.co/u/jbudz)
#### Post date: [April 2, 2018, 6:50pm UTC](https://discuss.elastic.co/t/ekk-stack-and-timestamps/126451/2 "2018-04-02T18:50:21Z")

</div>

Are there any old indices with the field mapped as a number that still match the index pattern?

Kibana's index pattern page will use the [field capalities](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-field-caps.html) api behind the scenes, and then stores a copy of the response in the .kibana index. Sometimes this needs to be refreshed by clicking the refresh button in Kibana. Trying that may help too.

---

<div class="post-metadata">

### Author: ![luciddr34m3r](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/luciddr34m3r/32/29478_2.png) [@luciddr34m3r](https://discuss.elastic.co/u/luciddr34m3r)
#### Post date: [April 2, 2018, 7:34pm UTC](https://discuss.elastic.co/t/ekk-stack-and-timestamps/126451/3 "2018-04-02T19:34:39Z")

</div>

No. I run the following in the console:

```
DELETE _all

PUT iptables

PUT iptables/_mapping/iptables
{
  "iptables": {
    "properties": {
      "date": {
        "type": "date"
      }
    }
  }
}

```

And then Firehose is set to put objects of type 'iptables' into the 'iptables' index.

Date is an epoch timestamp in seconds, but it doesn't seem to matter if I set it or not. I've tried it every way I can think of.

If I don't create an index first, Kibana says the documents have no time data. The json objects look like this:

```
{
  "_index": "iptables-2018-04-02",
  "_type": "iptables",
  "_id": "49581617944237641073795881024580975589499732442392559618.0",
  "_score": 1,
  "_source": {
    "processid": null,
    "hostname": "REDACTED",
    "ipt_src": "REDACTED",
    "ipt_dpt": "22",
    "ipt_spt": "60690",
    "timestamp": "Apr 2 17:20:36",
    "ipt_proto": "TCP",
    "ipt_dst": "REDACTED",
    "program": "kernel",
    "date": 1522689636,
    "message": "REDACTED ",
    "type": "ipt",
    "ipt_ttl": "33"
  }
}
```

---

<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: [April 30, 2018, 7:35pm UTC](https://discuss.elastic.co/t/ekk-stack-and-timestamps/126451/4 "2018-04-30T19:35:20Z")

</div>

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