Metricbeat - Can't import dashboards?


Has anyone else ran into an issue where you can’t import dashboards during the setup of beats? I’ve tried with both filebeat/metricbeat.

[[email protected] bin]# metricbeat setup
Loaded index template
Loading dashboards (Kibana must be running and reachable)
Exiting: Failed to import index-pattern: Failed to load directory /usr/share/metricbeat/kibana/6/index-pattern:
  error loading /usr/share/metricbeat/kibana/6/index-pattern/metricbeat.json: parsing kibana response: invalid character '<' looking for beginning of value. Response: <script> window.location = '/' </script>

Here’s the setup for the user in the

  - name: "::METRICBEAT::"
    auth_key_unix: metricbeat:<<redacted>>
    actions: ["*"]
    verbosity: error

It manages to import the index template fine which is odd.

(Simone Scarduzio) #2

If you have ROR Kibana plugin installed, the API to upload the dashboard to Kibana (not to ES) will be protected by the login prompt. So you probably want to either:

  • Temporarily to whitelist the Kibana API paths
  • Temporarily remove the ROR plugin
  • Spin a disposable fresh Kibana instance on another port (without plugins) and point the metricbeat importer to it. And then get rid of it.