# Kibana 4 remote image plugin in kibana 5

**URL:** <https://discuss.elastic.co/t/kibana-4-remote-image-plugin-in-kibana-5/68282>\
**Category:** Kibana\
**Created:** [December 7, 2016, 10:48am UTC](https://discuss.elastic.co/t/kibana-4-remote-image-plugin-in-kibana-5/68282 "2016-12-07T10:48:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zizi](https://avatars.discourse-cdn.com/v4/letter/z/a698b9/32.png) [@Zizi](https://discuss.elastic.co/u/Zizi)\
**Post date:** [December 7, 2016, 10:48am UTC](https://discuss.elastic.co/t/kibana-4-remote-image-plugin-in-kibana-5/68282/1 "2016-12-07T10:48:42Z")

</div>

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](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](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.

---

<div class="post-metadata">

**Author:** ![tsullivan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tsullivan/32/31077_2.png) [@tsullivan](https://discuss.elastic.co/u/tsullivan)\
**Post date:** [December 7, 2016, 8:09pm UTC](https://discuss.elastic.co/t/kibana-4-remote-image-plugin-in-kibana-5/68282/2 "2016-12-07T20:09:29Z")

</div>

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.

1. Copy `asset-example` to `KIBANA/plugins/assets`
2. 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`.
3. Put your images into `KIBANA/plugins/assets/public`
4. You can still reference your images using `http://localhost:5601/plugins/assets/image.png` or whatever

---

<div class="post-metadata">

**Author:** ![Zizi](https://avatars.discourse-cdn.com/v4/letter/z/a698b9/32.png) [@Zizi](https://discuss.elastic.co/u/Zizi)\
**Post date:** [December 8, 2016, 8:09am UTC](https://discuss.elastic.co/t/kibana-4-remote-image-plugin-in-kibana-5/68282/3 "2016-12-08T08:09:05Z")

</div>

Alright that worked!

Many thanks. So I've to keep the version in the package.json updated.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 5, 2017, 8:09am UTC](https://discuss.elastic.co/t/kibana-4-remote-image-plugin-in-kibana-5/68282/4 "2017-01-05T08:09:36Z")

</div>

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