How to make our customised dashboard as default da

2019-03-27 15:22发布

问题:

I have modified my dashboard and tried saving it as home and I get the below message

Home Set This page has been set as your default Kibana dashboard

Still I am not able to load the modified dashboard as default dashboard, please suggest me on how to do it.

回答1:

For Kibana 4. Create dashboard with name "Default".

Change default_app_id in kibana/config/kibana.yml.

# The default application to load.
default_app_id: "dashboard/Default"

And then restart kibana to apply changes

service kibana restart


回答2:

With kibana 4.4.2 it's OK with

kibana.defaultAppId: "dashboard/all.dashboard"

With a dashboard named all.dashboard



回答3:

If you don't want to see dashboard as a first thing when you open that is still being resolved as you can see here: https://github.com/elastic/kibana/pull/7626

What I did is hacked our local kibana, currently dashboard route resolver looks like this (found in %kibana_installation_path%\src\core_plugins\kibana\public\dashboard):

.when('/dashboard', {
  template: indexTemplate,
  resolve: {
    dash: function (savedDashboards, config) {
      return savedDashboards.get();
    }
  }
})

I just changed savedDashboards.get() -> savedDashboards.get('System-overview') where System-overview is name of our dashboard (you can see it in url when you open your dashboard)

if you don't want to compile that change you will have to change it directly in the minified file which can be found here:

%kibana_installation_path%\optimize\bundles\kibana.bundle.js


回答4:

I have found the solution to show default dashboard in kibana :-

Steps :-

  1. Copy id of the dashboard. For that go to your dashboard which you want to show as a default. At top right corner - click on SHARE after that you will see a link url something like :- http://localhost:5601/app/kibana#/dashboard/b55f44a0-4a78-11e7-8976-bcua7acbj?_g=() From the url copy id after dashboard/ like in this url id is :- b55f44a0-4a78-11e7-8976-bcua7acbj

  2. Go to kibana/config/kibana.yml file and change :- kibana.defaultAppId: "discover" to kibana.defaultAppId: "dashboard/b55f44a0-4a78-11e7-8976-bcua7acbj"

  3. Now restart kibana.service :- "sudo systemctl restart kibana.service"

And it is done :)