I can change the top menu bar and remove some options in kibana-4

I installed kibana-4 on my Linux machine. My requirement is that I want to remove settings such as saving search fields on my kibana homepage, and I want to change the top kibana panel of my own individual menu. here is a snapshot of what i want to do. enter image description here

+8
html elasticsearch kibana kibana-4 elasticsearch-plugin
source share
4 answers

Kibana 4 has not yet been documented. You may need to dig into the code to understand how everything works.

You can use the URL parameter 'embed = true | false 'to show or not the entire toolbar. This is useful when embedding kibana in an iframe, so parameters are entered externally and users cannot change the settings.

An example of displaying a control panel with the name "demo" without a toolbar:

 http://<hostname>/#/dashboard/demo?embed=true&_g=(time:(from:now-90d,mode:quick,to:now),title:demo) 

You can then create your own menus and control the iframe that Kibana embeds.

Hope this helps.

+13
source share

It is very simple to do, but it is not externally, so you will need to change the code to do this.
I will explain, but keep in mind that this is correct for April 2015 (the code changes quickly in the kibana repository)

Top menu bar
Each page is called a β€œplugin” in kibana terminology.
The code base has a directory called "plugins" and there you will find directories for "Discover", "Visualize", "Dashboard" and "Settings".
Each of these directories has an index.js file in it. Find the part that registers this plugin in the registry.
It should look something like this:

 var apps = require('registry/apps'); apps.register(function DashboardAppModule() { return { id: 'dashboard', name: 'Dashboard', order: 2 }; }); 

You can comment on this and it should no longer appear on the menu.


Side menu (next to the search bar)
Go to plugins/discover/index.html . There you will find html that displays this menu. It looks something like this:

 <kbn-tooltip text="Save Search" placement="bottom" append-to-body="1"> <button ng-click="configTemplate.toggle('save')"><i class="fa fa-save"></i></button> </kbn-tooltip> <kbn-tooltip text="Load Saved Search" placement="bottom" append-to-body="1"> <button ng-click="configTemplate.toggle('load')"><i class="fa fa-folder-open-o"></i></button> </kbn-tooltip> <kbn-tooltip text="Settings" placement="bottom" append-to-body="1"> <button ng-click="configTemplate.toggle('config')"><i class="fa fa-gear"></i></button> </kbn-tooltip> 

You can simply comment on it or delete it, and you will no longer see these buttons.



Notes
If all you want to do is display the dashboard on the monitor, then you should use the embed function. Click the "share" button while viewing the toolbar, and you will get a fragment that allows you to display the panel in an iframe.
Removing the menu, as I explained, will not prevent someone from accessing these pages / endpoints in the system. This should not be done as a precaution if you want to display the control panel from the outside, but do not want users to play with your data!

+3
source share

You can use an iframe, available with the share option in kiban.

0
source share

If it helps someone. I also had a similar problem when the new kiban-4 in the embedding displayed the kibana search bar, which I found distracting when we embed diagrams in our own analytic dashboards. Therefore, I can remove the search bar by changing the embed code as follows:

Currently, when you copy the paste code from Kibana, you get:

 <iframe src="https://your-es-url.com/_plugin/kibana/?embed&#/dashboard/My-Dashboard?_g=(refreshInterval:(display:Off,pause:!f,section:0,value:0),time:(from:now-24h,mode:quick,to:now))&_a=(filters:!(),panels:!((col:1,id:'Unprocessed-Stock-Calls-(Status-%3C-3)',row:1,size_x:12,size_y:4,type:visualization),query:(query_string:(analyze_wildcard:!t,query:'*')),title:'My%20Dashboard')" height="600" width="800"></iframe> 

This displays the kibana search bar by default. But you can simply change the order of embedding the code as follows, where you move the update interval to the end, it stops displaying the search bar, and the visualization loads beautifully.

 <iframe src="https://your-es-url.com/_plugin/kibana/#/dashboard/My-Dashboard?embed&_a=(filters:!(),panels:!((col:1,id:'Unprocessed-Stock-Calls-(Status-%3C-3)',row:1,size_x:12,size_y:4,type:visualization),query:(query_string:(analyze_wildcard:!t,query:'*')),title:'My%20Dashboard')&_g=(refreshInterval:(display:Off,pause:!f,section:0,value:0),time:(from:now-24h,mode:quick,to:now))" height="600" width="800"></iframe> 
0
source share

All Articles