# Error with bulk index operation when displaying in kibana

**URL:** https://discuss.elastic.co/t/error-with-bulk-index-operation-when-displaying-in-kibana/283325
**Category:** Kibana
**Created:** [September 4, 2021, 12:23am UTC](https://discuss.elastic.co/t/error-with-bulk-index-operation-when-displaying-in-kibana/283325 "2021-09-04T00:23:24Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![yrtqz](https://avatars.discourse-cdn.com/v4/letter/y/9de053/32.png) [@yrtqz](https://discuss.elastic.co/u/yrtqz)
#### Post date: [September 4, 2021, 12:23am UTC](https://discuss.elastic.co/t/error-with-bulk-index-operation-when-displaying-in-kibana/283325/1 "2021-09-04T00:23:25Z")

</div>

I have elasticsearch 7.10.2 and kibana 7.10.2 (technically opensearch) running. I import data into an existing index with a bulk index command. The response is a 201 back from elasticsearch. When i go to kibana, the dashboards are broken, showing Error then "bad request" when i mouse over them. going into the kibana logs, i see this in the logs ""message":"[search\_phase\_execution\_exception]: all shards failed"}". Additionally, I also see the following error: Error: Bad Request  
at Fetch.\_callee3$ ([https://192.168.49.2:30020/36473/bundles/core/core.entry.js:6:59575](https://192.168.49.2:30020/36473/bundles/core/core.entry.js:6:59575))  
at l ([https://192.168.49.2:30020/36473/bundles/osd-ui-shared-deps/osd-ui-shared-deps.js:380:982149](https://192.168.49.2:30020/36473/bundles/osd-ui-shared-deps/osd-ui-shared-deps.js:380:982149))  
at Generator.\_invoke ([https://192.168.49.2:30020/36473/bundles/osd-ui-shared-deps/osd-ui-shared-deps.js:380:981902](https://192.168.49.2:30020/36473/bundles/osd-ui-shared-deps/osd-ui-shared-deps.js:380:981902))  
at Generator.forEach.e. [as next] ([https://192.168.49.2:30020/36473/bundles/osd-ui-shared-deps/osd-ui-shared-deps.js:380:982506](https://192.168.49.2:30020/36473/bundles/osd-ui-shared-deps/osd-ui-shared-deps.js:380:982506))  
at fetch\_asyncGeneratorStep ([https://192.168.49.2:30020/36473/bundles/core/core.entry.js:6:52678](https://192.168.49.2:30020/36473/bundles/core/core.entry.js:6:52678))  
at \_next ([https://192.168.49.2:30020/36473/bundles/core/core.entry.js:6:52994](https://192.168.49.2:30020/36473/bundles/core/core.entry.js:6:52994)) I am unable to access the bulk imported data from my dashboard but other instances of this dashboard which were not using the bulk api to import data show the data fine. also, i do see the data in the discover tab for the index, so i know kibana is seeing the data in some form but the dashboard is not seeing it correctly. what could be the issue?

---

<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: [September 5, 2021, 10:24pm UTC](https://discuss.elastic.co/t/error-with-bulk-index-operation-when-displaying-in-kibana/283325/2 "2021-09-05T22:24:49Z")

</div>

You should look at upgrading, 7.14 is latest 🙂

What do your Elasticsearch logs show?

---

<div class="post-metadata">

### Author: ![yrtqz](https://avatars.discourse-cdn.com/v4/letter/y/9de053/32.png) [@yrtqz](https://discuss.elastic.co/u/yrtqz)
#### Post date: [September 6, 2021, 6:50pm UTC](https://discuss.elastic.co/t/error-with-bulk-index-operation-when-displaying-in-kibana/283325/3 "2021-09-06T18:50:32Z")

</div>

there are no errors in the elasticsearch logs, the errors are only on kibana (opensearch dashboard). unfortunately i'm unable to upgrade because i have to use opensearch, which is forked off ES 7.10.2, are there any bugs related to this that were fixed between 7.10.2 and 7.14.

---

<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: [September 6, 2021, 10:30pm UTC](https://discuss.elastic.co/t/error-with-bulk-index-operation-when-displaying-in-kibana/283325/4 "2021-09-06T22:30:05Z")

</div>

Without further information it's hard to say what the issue is.

If there's nothing in your logs, then what is the state of the indices in the system?

---

<div class="post-metadata">

### Author: ![yrtqz](https://avatars.discourse-cdn.com/v4/letter/y/9de053/32.png) [@yrtqz](https://discuss.elastic.co/u/yrtqz)
#### Post date: [September 7, 2021, 9:49am UTC](https://discuss.elastic.co/t/error-with-bulk-index-operation-when-displaying-in-kibana/283325/5 "2021-09-07T09:49:49Z")

</div>

i'll figure out how to get the index state, but like i said, the error seems to be in kibana's communication with elasticsearch. here are the errors from kibana:  
"type":"response","@timestamp":"2021-09-07T09:46:15Z","tags":,"pid":1,"method":"post","statusCode":400,"req":{"url":"/internal/search/opensearch","method":"post","headers":{"host":"192.168.49.2:30020","connection":"keep-alive","content-length":"757","user-agent":"Mozilla/5.0 (X11; Linux x86\_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36","osd-version":"1.0.0","content-type":"application/json","accept":"_/_","origin":"[https://192.168.49.2:30020](https://192.168.49.2:30020)","sec-fetch-site":"same-origin","sec-fetch-mode":"cors","sec-fetch-dest":"empty","referer":"[https://192.168.49.2:30020/app/dashboards","accept-encoding":"gzip](https://192.168.49.2:30020/app/dashboards%22,%22accept-encoding%22:%22gzip), deflate, br","accept-language":"en-US,en;q=0.9"},"remoteAddress":"172.17.0.1","userAgent":"Mozilla/5.0 (X11; Linux x86\_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36","referer":"[https://192.168.49.2:30020/app/dashboards"},"res":{"statusCode":400,"responseTime":1439,"contentLength":9},"message":"POST](https://192.168.49.2:30020/app/dashboards%22%7D,%22res%22:%7B%22statusCode%22:400,%22responseTime%22:1439,%22contentLength%22:9%7D,%22message%22:%22POST) /internal/search/opensearch 400 1439ms - 9.0B"}  
{"type":"log","@timestamp":"2021-09-07T09:46:17Z","tags":["error","opensearch","data"],"pid":1,"message":"[search\_phase\_execution\_exception]: all shards failed"}  
{"type":"response","@timestamp":"2021-09-07T09:46:16Z","tags":,"pid":1,"method":"post","statusCode":400,"req":{"url":"/internal/search/opensearch","method":"post","headers":{"host":"192.168.49.2:30020","connection":"keep-alive","content-length":"403","user-agent":"Mozilla/5.0 (X11; Linux x86\_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36","osd-version":"1.0.0","content-type":"application/json","accept":"_/_","origin":"[https://192.168.49.2:30020](https://192.168.49.2:30020)","sec-fetch-site":"same-origin","sec-fetch-mode":"cors","sec-fetch-dest":"empty","referer":"[https://192.168.49.2:30020/app/dashboards","accept-encoding":"gzip](https://192.168.49.2:30020/app/dashboards%22,%22accept-encoding%22:%22gzip), deflate, br","accept-language":"en-US,en;q=0.9"},"remoteAddress":"172.17.0.1","userAgent":"Mozilla/5.0 (X11; Linux x86\_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36","referer":"[https://192.168.49.2:30020/app/dashboards"},"res":{"statusCode":400,"responseTime":623,"contentLength":9},"message":"POST](https://192.168.49.2:30020/app/dashboards%22%7D,%22res%22:%7B%22statusCode%22:400,%22responseTime%22:623,%22contentLength%22:9%7D,%22message%22:%22POST) /internal/search/opensearch 400 623ms - 9.0B"}  
{"type":"log","@timestamp":"2021-09-07T09:46:17Z","tags":["error","opensearch","data"],"pid":1,"message":"[search\_phase\_execution\_exception]: all shards failed"}  
{"type":"response","@timestamp":"2021-09-07T09:46:16Z","tags":,"pid":1,"method":"post","statusCode":400,"req":{"url":"/internal/search/opensearch","method":"post","headers":{"host":"192.168.49.2:30020","connection":"keep-alive","content-length":"402","user-agent":"Mozilla/5.0 (X11; Linux x86\_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36","osd-version":"1.0.0","content-type":"application/json","accept":"_/_","origin":"[https://192.168.49.2:30020](https://192.168.49.2:30020)","sec-fetch-site":"same-origin","sec-fetch-mode":"cors","sec-fetch-dest":"empty","referer":"[https://192.168.49.2:30020/app/dashboards","accept-encoding":"gzip](https://192.168.49.2:30020/app/dashboards%22,%22accept-encoding%22:%22gzip), deflate, br","accept-language":"en-US,en;q=0.9"},"remoteAddress":"172.17.0.1","userAgent":"Mozilla/5.0 (X11; Linux x86\_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36","referer":"[https://192.168.49.2:30020/app/dashboards"},"res":{"statusCode":400,"responseTime":475,"contentLength":9},"message":"POST](https://192.168.49.2:30020/app/dashboards%22%7D,%22res%22:%7B%22statusCode%22:400,%22responseTime%22:475,%22contentLength%22:9%7D,%22message%22:%22POST) /internal/search/opensearch 400 475ms - 9.0B"}

---

<div class="post-metadata">

### Author: ![yrtqz](https://avatars.discourse-cdn.com/v4/letter/y/9de053/32.png) [@yrtqz](https://discuss.elastic.co/u/yrtqz)
#### Post date: [September 7, 2021, 9:57am UTC](https://discuss.elastic.co/t/error-with-bulk-index-operation-when-displaying-in-kibana/283325/6 "2021-09-07T09:57:13Z")

</div>

i'm not sure if this is what you meant for the index state, but when i get the index statistics, this is what i have  
"indices" : {  
"titan.ium-event-2021.09.03" : {  
"uuid" : "Dbgx5tW3TuWVP0UVTlMWvA",  
"primaries" : {  
"docs" : {  
"count" : 3,  
"deleted" : 0  
},  
"store" : {  
"size\_in\_bytes" : 35233,  
"reserved\_in\_bytes" : 0  
},  
"indexing" : {  
"index\_total" : 3,  
"index\_time\_in\_millis" : 7,  
"index\_current" : 0,  
"index\_failed" : 0,  
"delete\_total" : 0,  
"delete\_time\_in\_millis" : 0,  
"delete\_current" : 0,  
"noop\_update\_total" : 0,  
"is\_throttled" : false,  
"throttle\_time\_in\_millis" : 0  
},  
"get" : {  
"total" : 0,  
"time\_in\_millis" : 0,  
"exists\_total" : 0,  
"exists\_time\_in\_millis" : 0,  
"missing\_total" : 0,  
"missing\_time\_in\_millis" : 0,  
"current" : 0  
},  
"search" : {  
"open\_contexts" : 0,  
"query\_total" : 1,  
"query\_time\_in\_millis" : 116,  
"query\_current" : 0,  
"fetch\_total" : 1,  
"fetch\_time\_in\_millis" : 0,  
"fetch\_current" : 0,  
"scroll\_total" : 0,  
"scroll\_time\_in\_millis" : 0,  
"scroll\_current" : 0,  
"suggest\_total" : 0,  
"suggest\_time\_in\_millis" : 0,  
"suggest\_current" : 0  
},  
"merges" : {  
"current" : 0,  
"current\_docs" : 0,  
"current\_size\_in\_bytes" : 0,  
"total" : 0,  
"total\_time\_in\_millis" : 0,  
"total\_docs" : 0,  
"total\_size\_in\_bytes" : 0,  
"total\_stopped\_time\_in\_millis" : 0,  
"total\_throttled\_time\_in\_millis" : 0,  
"total\_auto\_throttle\_in\_bytes" : 20971520  
},  
"refresh" : {  
"total" : 7,  
"total\_time\_in\_millis" : 30,  
"external\_total" : 6,  
"external\_total\_time\_in\_millis" : 30,  
"listeners" : 0  
},  
"flush" : {  
"total" : 1,  
"periodic" : 0,  
"total\_time\_in\_millis" : 24  
},  
"warmer" : {  
"current" : 0,  
"total" : 5,  
"total\_time\_in\_millis" : 0  
},  
"query\_cache" : {  
"memory\_size\_in\_bytes" : 0,  
"total\_count" : 0,  
"hit\_count" : 0,  
"miss\_count" : 0,  
"cache\_size" : 0,  
"cache\_count" : 0,  
"evictions" : 0  
},  
"fielddata" : {  
"memory\_size\_in\_bytes" : 0,  
"evictions" : 0  
},  
"completion" : {  
"size\_in\_bytes" : 0  
},  
"segments" : {  
"count" : 3,  
"memory\_in\_bytes" : 16764,  
"terms\_memory\_in\_bytes" : 12960,  
"stored\_fields\_memory\_in\_bytes" : 1464,  
"term\_vectors\_memory\_in\_bytes" : 0,  
"norms\_memory\_in\_bytes" : 2112,  
"points\_memory\_in\_bytes" : 0,  
"doc\_values\_memory\_in\_bytes" : 228,  
"index\_writer\_memory\_in\_bytes" : 0,  
"version\_map\_memory\_in\_bytes" : 0,  
"fixed\_bit\_set\_memory\_in\_bytes" : 0,  
"max\_unsafe\_auto\_id\_timestamp" : -1,  
"file\_sizes" : { }  
},  
"translog" : {  
"operations" : 2,  
"size\_in\_bytes" : 1187,  
"uncommitted\_operations" : 2,  
"uncommitted\_size\_in\_bytes" : 1187,  
"earliest\_last\_modified\_age" : 37  
},  
"request\_cache" : {  
"memory\_size\_in\_bytes" : 0,  
"evictions" : 0,  
"hit\_count" : 0,  
"miss\_count" : 1  
},  
"recovery" : {  
"current\_as\_source" : 0,  
"current\_as\_target" : 0,  
"throttle\_time\_in\_millis" : 0  
}  
},  
"total" : {  
"docs" : {  
"count" : 3,  
"deleted" : 0  
},  
"store" : {  
"size\_in\_bytes" : 35233,  
"reserved\_in\_bytes" : 0  
},  
"indexing" : {  
"index\_total" : 3,  
"index\_time\_in\_millis" : 7,  
"index\_current" : 0,  
"index\_failed" : 0,  
"delete\_total" : 0,  
"delete\_time\_in\_millis" : 0,  
"delete\_current" : 0,  
"noop\_update\_total" : 0,  
"is\_throttled" : false,  
"throttle\_time\_in\_millis" : 0  
},  
"get" : {  
"total" : 0,  
"time\_in\_millis" : 0,  
"exists\_total" : 0,  
"exists\_time\_in\_millis" : 0,  
"missing\_total" : 0,  
"missing\_time\_in\_millis" : 0,  
"current" : 0  
},  
"search" : {  
"open\_contexts" : 0,  
"query\_total" : 1,  
"query\_time\_in\_millis" : 116,  
"query\_current" : 0,  
"fetch\_total" : 1,  
"fetch\_time\_in\_millis" : 0,  
"fetch\_current" : 0,  
"scroll\_total" : 0,  
"scroll\_time\_in\_millis" : 0,  
"scroll\_current" : 0,  
"suggest\_total" : 0,  
"suggest\_time\_in\_millis" : 0,  
"suggest\_current" : 0  
},  
"merges" : {  
"current" : 0,  
"current\_docs" : 0,  
"current\_size\_in\_bytes" : 0,  
"total" : 0,  
"total\_time\_in\_millis" : 0,  
"total\_docs" : 0,  
"total\_size\_in\_bytes" : 0,  
"total\_stopped\_time\_in\_millis" : 0,  
"total\_throttled\_time\_in\_millis" : 0,  
"total\_auto\_throttle\_in\_bytes" : 20971520  
},  
"refresh" : {  
"total" : 7,  
"total\_time\_in\_millis" : 30,  
"external\_total" : 6,  
"external\_total\_time\_in\_millis" : 30,  
"listeners" : 0  
},  
"flush" : {  
"total" : 1,  
"periodic" : 0,  
"total\_time\_in\_millis" : 24  
},  
"warmer" : {  
"current" : 0,  
"total" : 5,  
"total\_time\_in\_millis" : 0  
},  
"query\_cache" : {  
"memory\_size\_in\_bytes" : 0,  
"total\_count" : 0,  
"hit\_count" : 0,  
"miss\_count" : 0,  
"cache\_size" : 0,  
"cache\_count" : 0,  
"evictions" : 0  
},  
"fielddata" : {  
"memory\_size\_in\_bytes" : 0,  
"evictions" : 0  
},  
"completion" : {  
"size\_in\_bytes" : 0  
},  
"segments" : {  
"count" : 3,  
"memory\_in\_bytes" : 16764,  
"terms\_memory\_in\_bytes" : 12960,  
"stored\_fields\_memory\_in\_bytes" : 1464,  
"term\_vectors\_memory\_in\_bytes" : 0,  
"norms\_memory\_in\_bytes" : 2112,  
"points\_memory\_in\_bytes" : 0,  
"doc\_values\_memory\_in\_bytes" : 228,  
"index\_writer\_memory\_in\_bytes" : 0,  
"version\_map\_memory\_in\_bytes" : 0,  
"fixed\_bit\_set\_memory\_in\_bytes" : 0,  
"max\_unsafe\_auto\_id\_timestamp" : -1,  
"file\_sizes" : { }  
},  
"translog" : {  
"operations" : 2,  
"size\_in\_bytes" : 1187,  
"uncommitted\_operations" : 2,  
"uncommitted\_size\_in\_bytes" : 1187,  
"earliest\_last\_modified\_age" : 37  
},  
"request\_cache" : {  
"memory\_size\_in\_bytes" : 0,  
"evictions" : 0,  
"hit\_count" : 0,  
"miss\_count" : 1  
},  
"recovery" : {  
"current\_as\_source" : 0,  
"current\_as\_target" : 0,  
"throttle\_time\_in\_millis" : 0  
}  
}  
}

---

<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: [September 7, 2021, 10:20pm UTC](https://discuss.elastic.co/t/error-with-bulk-index-operation-when-displaying-in-kibana/283325/7 "2021-09-07T22:20:41Z")

</div>

Please format your code/logs/config using the `</>` button, or markdown style back ticks. It helps to make things easy to read which helps us help you 🙂

Just to be clear, you are using opensearch, which is not Elasticsearch. You would probably have better luck asking the developers of that sorry to say.

---

<div class="post-metadata">

### Author: ![yrtqz](https://avatars.discourse-cdn.com/v4/letter/y/9de053/32.png) [@yrtqz](https://discuss.elastic.co/u/yrtqz)
#### Post date: [September 8, 2021, 1:54pm UTC](https://discuss.elastic.co/t/error-with-bulk-index-operation-when-displaying-in-kibana/283325/8 "2021-09-08T13:54:29Z")

</div>

I will keep that in mind. Also, i figured out my issue, it was because i was running kibana and elasticsearch, but not logstash, and in my case, the index templates for kibana were created in logstash, so running logstash cleared the error.

---

<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: [September 8, 2021, 10:35pm UTC](https://discuss.elastic.co/t/error-with-bulk-index-operation-when-displaying-in-kibana/283325/9 "2021-09-08T22:35:03Z")

</div>

Not sure I am following how that is the core problem, but glad you got it sorted! 🙂

---

<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: [October 6, 2021, 10:35pm UTC](https://discuss.elastic.co/t/error-with-bulk-index-operation-when-displaying-in-kibana/283325/10 "2021-10-06T22:35:51Z")

</div>

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