# Data sent with curl into elastisearch are invisible in Kibana

**URL:** <https://discuss.elastic.co/t/data-sent-with-curl-into-elastisearch-are-invisible-in-kibana/110868>\
**Category:** Kibana\
**Created:** [December 8, 2017, 3:24pm UTC](https://discuss.elastic.co/t/data-sent-with-curl-into-elastisearch-are-invisible-in-kibana/110868 "2017-12-08T15:24:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adesfire](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adesfire/32/24765_2.png) [@Adesfire](https://discuss.elastic.co/u/Adesfire)\
**Post date:** [December 8, 2017, 3:24pm UTC](https://discuss.elastic.co/t/data-sent-with-curl-into-elastisearch-are-invisible-in-kibana/110868/1 "2017-12-08T15:24:30Z")

</div>

Hello there,  
I'm putting data using a simple curl command (JSON format) then I get this successful message :  
`{"_index":"home","_type":"doc","_id":"ox61NmABZ5bRYuBijg0_","_version":1,"result":"created","_shards":{"total":2,"successful":1,"failed":0},"_seq_no":18651,"_primary_term":1}`

But I can't found my data on the discover tab of Kibana. My index shows my fields correctly but no lines appear...

This is how I configured my index :

```
    PUT home
    {
      "mappings": {
        "doc": {
          "properties": {
            "date": {
              "type": "date" 
            }
          }
        }
      }
    }

```

And this is my test curl command :  
`curl -X POST -H "Content-Type: application/json" -H "Cache-Control: no-cache" -d "{\"message\" : \"Mesures\", \"temperature\" : 24.8, \"humidity\" : 20.2}" "http://localhost:9200/home/doc/"`

Any idea on where i made a mistake ?

Thanks !

---

<div class="post-metadata">

**Author:** ![cjcenizal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cjcenizal/32/11216_2.png) [@cjcenizal](https://discuss.elastic.co/u/cjcenizal)\
**Post date:** [December 8, 2017, 5:22pm UTC](https://discuss.elastic.co/t/data-sent-with-curl-into-elastisearch-are-invisible-in-kibana/110868/2 "2017-12-08T17:22:29Z")

</div>

Hi there,

You need to add a date field to the document you're indexing, e.g.:

```auto
curl -X POST -H "Content-Type: application/json" -H "Cache-Control: no-cache" -d "{\"date\": \"2017-12-08\",\"message\" : \"Mesures\", \"temperature\" : 24.8, \"humidity\" : 20.2}" "http://localhost:9200/home/doc/"

```

Then you need to create an index pattern under Management \> Index patterns. You can name the pattern something like "home\*" (the \* is a wildcard so it can match multiple indices which begin with "home" though you only have one in this example) and then choose "date" for the Time Filter field name. Then you'll be able to go to Discover, select this index pattern, and when you set the time range in the top right corner so that it encompasses this document's date, you'll see it show up in the table.

See [https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-date-format.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-date-format.html) for more information on the date format in Elasticsearch.

Does this help?

Thanks,  
CJ

---

<div class="post-metadata">

**Author:** ![Adesfire](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adesfire/32/24765_2.png) [@Adesfire](https://discuss.elastic.co/u/Adesfire)\
**Post date:** [December 11, 2017, 7:48pm UTC](https://discuss.elastic.co/t/data-sent-with-curl-into-elastisearch-are-invisible-in-kibana/110868/3 "2017-12-11T19:48:13Z")

</div>

Hi Cjcenizal !  
Ok, I guessed that the date was applied automatically!

I had many problems to find the correct format, at the end I used the epoch time-based.... it's working now!

Thanks you very much!

---

<div class="post-metadata">

**Author:** ![cjcenizal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cjcenizal/32/11216_2.png) [@cjcenizal](https://discuss.elastic.co/u/cjcenizal)\
**Post date:** [December 11, 2017, 8:07pm UTC](https://discuss.elastic.co/t/data-sent-with-curl-into-elastisearch-are-invisible-in-kibana/110868/4 "2017-12-11T20:07:41Z")

</div>

I'm glad you got it working! You're very welcome.

---

<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:** [January 8, 2018, 8:08pm UTC](https://discuss.elastic.co/t/data-sent-with-curl-into-elastisearch-are-invisible-in-kibana/110868/5 "2018-01-08T20:08:05Z")

</div>

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