# Index not updated in Kibana with cURL post

**URL:** <https://discuss.elastic.co/t/index-not-updated-in-kibana-with-curl-post/232453>\
**Category:** Kibana\
**Created:** [May 13, 2020, 2:06pm UTC](https://discuss.elastic.co/t/index-not-updated-in-kibana-with-curl-post/232453 "2020-05-13T14:06:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gsaintmartin](https://avatars.discourse-cdn.com/v4/letter/g/e19b73/32.png) [@gsaintmartin](https://discuss.elastic.co/u/gsaintmartin)\
**Post date:** [May 13, 2020, 2:06pm UTC](https://discuss.elastic.co/t/index-not-updated-in-kibana-with-curl-post/232453/1 "2020-05-13T14:06:35Z")

</div>

Hello,

I am trying to create the index "indexname" in Kibana with the following command:  
curl -H 'Content-Type: application/x-ndjson' -XPOST 'localhost:9200/indexname/\_bulk?pretty' --data-binary @file.json  
Then I create the index pattern and when I assess it with “GET /\_cat/indices?v” I get:  
yellow open indexname uuid-uoZxtnXnYROA 1 1 100 0 12.5kb  
My index looks fine, isn’t it?  
Usually the first time I send the file to my index (which creates the index) it works well, BUT not always.  
Then I try to update the index with :  
curl -H 'Content-Type: application/x-ndjson' -XPOST 'localhost:9200/indexname/\_bulk?pretty' --data-binary @otherfile.json  
Two different things happen in Kibana :

- No more data are available in visualize or dashboard no matter the time range
- Sometimes there is only my previous data, but not my new updated one  
I also tried with “curl -H 'Content-Type: application/x-ndjson' -XPUT 'localhost:9200/indexname/\_bulk?pretty' --data-binary @otherfile.json” for the bad same result.  
More info:
- Running my Elastic Stack with Docker on Linux virtual machine
- Tried to delete and recreate my index several times
- My json file format:  
{"index":{"\_id":"1"}}  
{"firstName":"John","lastName":"Doe","age":60,"heartrate":70,"painrating":19,"date":"2020-05-13T09:10:14.325"}
- I choose “date” at Time Filter field name when I create my index  
Can you please help me? Thank you.

---

<div class="post-metadata">

**Author:** ![gsaintmartin](https://avatars.discourse-cdn.com/v4/letter/g/e19b73/32.png) [@gsaintmartin](https://discuss.elastic.co/u/gsaintmartin)\
**Post date:** [May 15, 2020, 9:18am UTC](https://discuss.elastic.co/t/index-not-updated-in-kibana-with-curl-post/232453/2 "2020-05-15T09:18:00Z")

</div>

Any idea? Can I have help please?

---

<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:** [June 12, 2020, 9:29am UTC](https://discuss.elastic.co/t/index-not-updated-in-kibana-with-curl-post/232453/3 "2020-06-12T09:29:47Z")

</div>

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