Error importing Kibana dashboards

Hi, I'm new to Elastic & Kibana so this I expect is very much bad config but I can't figure out what I've gotten wrong with this.

Everything is in docker, I've a single-node deployment with transport security configured and using basic auth via the built-in accounts. Metric & filebeats are working fine except I can't get the dashboards to import via the setup.dashboard config in the .yml files. The error I get is the same from both beats containers and is below...

2021-01-06T18:34:16.981Z ERROR instance/beat.go:956 Exiting: Error importing Kibana dashboards: fail to import the dashboards in Kibana: Error importing directory /usr/share/metricbeat/kibana: failed to import Kibana index pattern: 1 error: error loading index pattern: returned 500 to import file: <nil>. Response: {"statusCode":500,"error":"Internal Server Error","message":"An internal server error occurred."}

I've attributed this topic against Kibana but this could be something wrong my config in metric/file beats?

Also I'm not confident I've correctly implemented transport security although everything is functioning normally from what I can tell and I'm not getting/seeing any errors other than the reason for this post?


seccomp.enabled: false

path.config: "/usr/share/metricbeat/config/" "/usr/share/metricbeat/data/"
keystore.path: "${path.config}/metricbeats.keystore"

monitoring.enabled: false
monitoring.cluster_uuid: "I5NPSd8MRuGLDRhSX5rRaw"

http.enabled: true localhost
http.port: 5066

  path: "${path.config}/modules/*.yml"
  reload.period: 10s
  reload.enabled: true

  protocol: "https"
  hosts: "**:9200"
  username: elastic
  password: "*password*"
  ssl.verification_mode: full
  ssl.certificate_authorities: "/usr/share/metricbeat/config/certs/ca.crt"

    enabled: false
    #index: metricbeat-*
    host: "**:5601"
    protocol: "http"
    path: ""
    username: "kibana_system"
    password: "*password*"

elasticsearch.yml: "blacknas" "elasticsearch"
bootstrap.system_call_filter: false
xpack.monitoring.collection.enabled: false
discovery.type: single-node true true certificate /usr/share/elasticsearch/config/certs/elasticsearch.key /usr/share/elasticsearch/config/certs/elasticsearch.crt /usr/share/elasticsearch/config/certs/ca/ca.crt true "/usr/share/elasticsearch/config/certs/http/elasticsearch/http.p12"

kibana.yml: kibana
server.port: 5601 /usr/share/kibana/config/
elasticsearch.hosts: "**:9200"
elasticsearch.username: "kibana_system"
elasticsearch.password: "*password*"
#monitoring.kibana.collection.enabled: false
elasticsearch.ssl.certificateAuthorities: "/usr/share/kibana/config/certs/elasticsearch-ca.pem"

Would appreicate any help etc so thanks in advance.


Welcome to our community! :smiley:

What do the Kibana logs show?

Thanks for the welcome!

I was just about to follow I found the cause of the issue to be the user account I defined in the beat .yml...I'd assumed the built-in kibana_system user would carry sufficient privileges for dashboard import but it doesn't, using the built-in elastic/superuser account works for the moment.

Sorry for the time waste.

1 Like

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