# Setting timed-based does not working

**URL:** <https://discuss.elastic.co/t/setting-timed-based-does-not-working/59122>\
**Category:** Kibana\
**Created:** [August 28, 2016, 3:52pm UTC](https://discuss.elastic.co/t/setting-timed-based-does-not-working/59122 "2016-08-28T15:52:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![toshi78](https://avatars.discourse-cdn.com/v4/letter/t/b5e925/32.png) [@toshi78](https://discuss.elastic.co/u/toshi78)\
**Post date:** [August 28, 2016, 3:52pm UTC](https://discuss.elastic.co/t/setting-timed-based-does-not-working/59122/1 "2016-08-28T15:52:29Z")

</div>

Hello everyone !

I just started to work with ElasticSearch and Kibana since couple of time, and I still cannot set a date field as time-based when I configure my index pattern. When I choose my date field (named timestamp) on the _ **timefield name** _, I cannot Visualize any data on the _ **Discover** _ part.

However, when I uncheck the box named _ **Index contains time-based events** _, all data is available on _ **Discover** _ :

![](https://us1.discourse-cdn.com/elastic/original/2X/2/200f53241782bab0918b9346957927593d10e903.jpg)

Is there something wrong I've made or something I forgot ? There is the mapping I've made:

```
"index_test" : {
    "mappings": {
    "tr": {
        "_source": {
            "enabled":true
        },
        "properties" : {
            "id" : { "type" : "integer" },
            "volume" : { "type" : "integer" },
            "high" : { "type" : "float" },
            "low" : { "type" : "float" },
            "timestamp" : { "type" : "date", "format" : "yyyy-MM-dd HH:mm:ss" }
        }
    }
    }'
}

```

And there is the Python script I used to insert data into ES:

```
from elasticsearch import Elasticsearch

jsondata(json.dumps("{
    "low": "5.9400",
    "high": "5.9600",
    "id": "555",
    "volume": 1171,
    "timestamp": "2016-08-15 19:01:03"
    }"
)
ES_HOST = {"host" : "localhost", "port" : 9200}
es = Elasticsearch(hosts = [ES_HOST])

    es.create(index="index_test",
              doc_type="tr",
              body=jsondata
          )

```

Any tips about ?

---

<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:** [August 28, 2016, 10:04pm UTC](https://discuss.elastic.co/t/setting-timed-based-does-not-working/59122/2 "2016-08-28T22:04:55Z")

</div>

Did you set the timepicker accordingly?

---

<div class="post-metadata">

**Author:** ![toshi78](https://avatars.discourse-cdn.com/v4/letter/t/b5e925/32.png) [@toshi78](https://discuss.elastic.co/u/toshi78)\
**Post date:** [August 28, 2016, 10:54pm UTC](https://discuss.elastic.co/t/setting-timed-based-does-not-working/59122/3 "2016-08-28T22:54:43Z")

</div>

Oh... This was so simple ^^" I forgot to set the timestamp on right-top of Kibana interface...

Thank you anyway, I will try to find an harder question next time !

---

<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, 1:40pm UTC](https://discuss.elastic.co/t/setting-timed-based-does-not-working/59122/4 "2017-07-06T13:40:06Z")

</div>


