# APM error on Kubernetes minikube local cluster

**URL:** <https://discuss.elastic.co/t/apm-error-on-kubernetes-minikube-local-cluster/326811>\
**Category:** APM\
**Tags:** server\
**Created:** [March 1, 2023, 11:45pm UTC](https://discuss.elastic.co/t/apm-error-on-kubernetes-minikube-local-cluster/326811 "2023-03-01T23:45:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![thiago.silva](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thiago.silva/32/117927_2.png) [@thiago.silva](https://discuss.elastic.co/u/thiago.silva)\
**Post date:** [March 1, 2023, 11:45pm UTC](https://discuss.elastic.co/t/apm-error-on-kubernetes-minikube-local-cluster/326811/1 "2023-03-01T23:45:50Z")

</div>

I encountered an issue while setting up APM server for Elasticsearch and Kibana. The error message indicates that APM server failed to import Kibana index patterns due to a 403 Forbidden error. I have tried troubleshooting by checking the permissions for APM server to access Elasticsearch and Kibana, but the issue persists. I am seeking assistance from the community to help me resolve this error and successfully set up APM server for my Elasticsearch and Kibana instance. Thank you for your help.

**ELK version** : 8.5.3

```auto
{"log.level":"error","@timestamp":"2023-03-01T23:40:42.418Z","log.origin":{"file.name":"instance/beat.go","file.line":1057},"message":"Exiting: error importing Kibana dashboards: fail to import the dashboards in Kibana: Error importing directory /usr/share/apm-server/kibana: failed to import Kibana index pattern: 1 error: error loading index pattern: returned 403 to import file: Unable to bulk_create index-pattern: %!w(<nil>). Response: {\"statusCode\":403,\"error\":\"Forbidden\",\"message\":\"Unable to bulk_create index-pattern\"}","service.name":"apm-server","ecs.version":"1.6.0"}
Exiting: error importing Kibana dashboards: fail to import the dashboards in Kibana: Error importing directory /usr/share/apm-server/kibana: failed to import Kibana index pattern: 1 error: error loading index pattern: returned 403 to import file: Unable to bulk_create index-pattern: %!w(<nil>). Response: {"statusCode":403,"error":"Forbidden","message":"Unable to bulk_create index-pattern"}

```

---

<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 22, 2023, 7:46pm UTC](https://discuss.elastic.co/t/apm-error-on-kubernetes-minikube-local-cluster/326811/2 "2023-03-22T19:46:50Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![simitt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/simitt/32/106406_2.png) [@simitt](https://discuss.elastic.co/u/simitt)\
**Post date:** [April 24, 2023, 3:33pm UTC](https://discuss.elastic.co/t/apm-error-on-kubernetes-minikube-local-cluster/326811/3 "2023-04-24T15:33:30Z")

</div>

Hi @thiago.silva , apologies for the very late reply, this fell through the cracks.

In case you still encounter this issue, could you provide some more information on

- how you configure apm-server
- how you start apm-server

By default the apm-server does not import any dashboards into ES in 8.x.
