Zizi
December 7, 2016, 10:48am
1
I'm relatively new to programming and I'm experimenting with something new here. I was using kibana 4 with following plugin: https://github.com/kreeware/kibana-cookbook/tree/master/asset-example .
In kibana 4 I used this plugin to expose all images in the public folder. So I could access them with /plugins/assets/image.png
Now I upgraded to version 5 and the plugin isn't working anymore. I tried updating it myself but without much luck.
I did not found much info on how to write plugins for kibana 5. I tried to start with this https://github.com/elastic/generator-kibana-plugin . But I got problems with it.
If someone can easily do this, I'd like them to explain, I'd like to know how it works.
tsullivan
(Tim Sullivan)
December 7, 2016, 8:09pm
2
Hi Zizi,
There are a few things that would have to be changed in the steps and plugin installation to make asset-example
work again in 5.x.
Copy asset-example
to KIBANA/plugins/assets
Change the "version": "0.1.0",
line in KIBANA/plugins/assets/package.json
. It needs to match the exact version of Kibana, for example 5.0.2
.
Put your images into KIBANA/plugins/assets/public
You can still reference your images using http://localhost:5601/plugins/assets/image.png
or whatever
1 Like
Zizi
December 8, 2016, 8:09am
3
Alright that worked!
Many thanks. So I've to keep the version in the package.json updated.
system
(system)
Closed
January 5, 2017, 8:09am
4
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.