# Kibana 8.6.2-1 cannot create APM indices on ElasticSearch 8.6.2-1

**URL:** <https://discuss.elastic.co/t/kibana-8-6-2-1-cannot-create-apm-indices-on-elasticsearch-8-6-2-1/325877>\
**Category:** APM\
**Tags:** ui\
**Created:** [February 18, 2023, 4:18am UTC](https://discuss.elastic.co/t/kibana-8-6-2-1-cannot-create-apm-indices-on-elasticsearch-8-6-2-1/325877 "2023-02-18T04:18:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Christopher\_Cheng](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christopher_cheng/32/117417_2.png) [@Christopher\_Cheng](https://discuss.elastic.co/u/Christopher_Cheng)\
**Post date:** [February 18, 2023, 4:18am UTC](https://discuss.elastic.co/t/kibana-8-6-2-1-cannot-create-apm-indices-on-elasticsearch-8-6-2-1/325877/1 "2023-02-18T04:18:08Z")

</div>

I have installed a fresh CentOS 7, Elasticsearch 8.6.2-1, Kibana 8.6.2-1, APM 8.6.2-1

After I logged in to Kibana with the user "elastic" (superuser), I went to  
"Observability" \> "APM" \> "Services" \> "Settings" \> "Indices" and then click on "Apply Chnages", it says  
"Indices could not be applied. Something went wrong when applying inidices. Error: bad request"

I checked the log "/var/log/messages" and the following is the error

```auto
Feb 18 02:19:25 localhost kibana: [2023-02-18T02:19:25.459+08:00][ERROR][plugins.apm] Error: Invalid value undefined supplied to : merge/0: { body: Partial<{ sourcemap: string, error: string, onboarding: string, span: string, transaction: string, metric: string }> }/body: Partial<{ sourcemap: string, error: string, onboarding: string, span: string, transaction: string, metric: string }>
Feb 18 02:19:25 localhost kibana: at decodeRequestParams (/usr/share/kibana/node_modules/@kbn/server-route-repository/target_node/src/decode_request_params.js:31:25)
Feb 18 02:19:25 localhost kibana: at /usr/share/kibana/x-pack/plugins/apm/server/routes/apm_routes/register_apm_server_routes.js:78:80
Feb 18 02:19:25 localhost kibana: at /usr/share/kibana/node_modules/@kbn/core-http-context-server-internal/target_node/src/context_container.js:57:16
Feb 18 02:19:25 localhost kibana: at Router.handle (/usr/share/kibana/node_modules/@kbn/core-http-router-server-internal/target_node/src/router.js:141:36)
Feb 18 02:19:25 localhost kibana: at handler (/usr/share/kibana/node_modules/@kbn/core-http-router-server-internal/target_node/src/router.js:107:61)
Feb 18 02:19:25 localhost kibana: at exports.Manager.execute (/usr/share/kibana/node_modules/@hapi/hapi/lib/toolkit.js:57:29)
Feb 18 02:19:25 localhost kibana: at Object.internals.handler (/usr/share/kibana/node_modules/@hapi/hapi/lib/handler.js:46:48)
Feb 18 02:19:25 localhost kibana: at exports.execute (/usr/share/kibana/node_modules/@hapi/hapi/lib/handler.js:31:36)
Feb 18 02:19:25 localhost kibana: at Request._lifecycle (/usr/share/kibana/node_modules/@hapi/hapi/lib/request.js:371:68)
Feb 18 02:19:25 localhost kibana: at runMicrotasks (<anonymous>)
Feb 18 02:19:25 localhost kibana: at processTicksAndRejections (node:internal/process/task_queues:96:5)
Feb 18 02:19:25 localhost kibana: at Request._execute (/usr/share/kibana/node_modules/@hapi/hapi/lib/request.js:281:9)

```

is there anything I have done wrong?

---

<div class="post-metadata">

**Author:** ![gbamparop](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gbamparop/32/95936_2.png) [@gbamparop](https://discuss.elastic.co/u/gbamparop)\
**Post date:** [February 20, 2023, 4:40pm UTC](https://discuss.elastic.co/t/kibana-8-6-2-1-cannot-create-apm-indices-on-elasticsearch-8-6-2-1/325877/2 "2023-02-20T16:40:48Z")

</div>

Hi @Christopher_Cheng,

Thank you for reporting this, I have created an [issue](https://github.com/elastic/kibana/issues/151644) in Kibana.

This should only be an issue when trying to save the form for the first time, or after refreshing the page while all indices are empty.

As a workaround you could write some characters in one of the fields, remove them and then apply the changes.

Thanks,  
Giorgos

---

<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:** [March 13, 2023, 12:41pm UTC](https://discuss.elastic.co/t/kibana-8-6-2-1-cannot-create-apm-indices-on-elasticsearch-8-6-2-1/325877/3 "2023-03-13T12:41:36Z")

</div>

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