# Storing and resolving URLs

**URL:** <https://discuss.elastic.co/t/storing-and-resolving-urls/37135>\
**Category:** Kibana\
**Created:** [December 14, 2015, 3:18pm UTC](https://discuss.elastic.co/t/storing-and-resolving-urls/37135 "2015-12-14T15:18:51Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![jjdepaul](https://avatars.discourse-cdn.com/v4/letter/j/e0b2c6/32.png) [@jjdepaul](https://discuss.elastic.co/u/jjdepaul)\
**Post date:** [December 14, 2015, 3:18pm UTC](https://discuss.elastic.co/t/storing-and-resolving-urls/37135/1 "2015-12-14T15:18:51Z")

</div>

Kibana 4.3 and ES 2.1, LS 2.0 and SH2.0

Is there a way to render small images in Kibana whose URLs are store/retrieved from ES?! Example - a small image url of a thumbnail is stored in one of the doucments. How could I get Kibana to render that image in search results instead of showing the URL string ?!

---

<div class="post-metadata">

**Author:** ![jjdepaul](https://avatars.discourse-cdn.com/v4/letter/j/e0b2c6/32.png) [@jjdepaul](https://discuss.elastic.co/u/jjdepaul)\
**Post date:** [December 14, 2015, 10:52pm UTC](https://discuss.elastic.co/t/storing-and-resolving-urls/37135/2 "2015-12-14T22:52:33Z")

</div>

I found the URL type in Kibana Settings - I'm trying to make it work with the default image that ships with Kibana. HOw to I assign a value ("go", "stop", etc) to the \*\*value \*\* variable so that it will render that go.png or stop.png images?

Does the value have to come from one of the fields in the document, or can a string value be assigned based on logic? If condition1, then "go.png", else "stop.png"?!

 ![](https://us1.discourse-cdn.com/elastic/original/2X/1/143ac99da5846ad116156abbb0d296692c7fd03b.png)

---

<div class="post-metadata">

**Author:** ![simianhacker](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/simianhacker/32/3383_2.png) [@simianhacker](https://discuss.elastic.co/u/simianhacker)\
**Post date:** [December 14, 2015, 11:56pm UTC](https://discuss.elastic.co/t/storing-and-resolving-urls/37135/3 "2015-12-14T23:56:19Z")

</div>

Based on your screen shot it looks like you're trying to use the scripted fields feature. Unfortunately that only works with numbers.

---

<div class="post-metadata">

**Author:** ![jjdepaul](https://avatars.discourse-cdn.com/v4/letter/j/e0b2c6/32.png) [@jjdepaul](https://discuss.elastic.co/u/jjdepaul)\
**Post date:** [December 15, 2015, 2:45pm UTC](https://discuss.elastic.co/t/storing-and-resolving-urls/37135/4 "2015-12-15T14:45:34Z")

</div>

Ok - I I've tried another approach. I used the URL formatter on the orderingCountry field. THe URL formatter template is this: /ui/public/stringify/icons/{{value}}.png

Which resolves to this in the Discover search results:  
 ![](https://us1.discourse-cdn.com/elastic/original/2X/a/aae397c0626f0300930f664358047218bb5bc787.png)

All good now - thx

---

<div class="post-metadata">

**Author:** ![simianhacker](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/simianhacker/32/3383_2.png) [@simianhacker](https://discuss.elastic.co/u/simianhacker)\
**Post date:** [December 16, 2015, 12:19am UTC](https://discuss.elastic.co/t/storing-and-resolving-urls/37135/5 "2015-12-16T00:19:17Z")

</div>

This can be done with a plugin... I will post an example back here tomorrow.

---

<div class="post-metadata">

**Author:** ![simianhacker](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/simianhacker/32/3383_2.png) [@simianhacker](https://discuss.elastic.co/u/simianhacker)\
**Post date:** [December 16, 2015, 8:39pm UTC](https://discuss.elastic.co/t/storing-and-resolving-urls/37135/6 "2015-12-16T20:39:47Z")

</div>

I didn't forget about you... I put together this example of an asset plugin that you can use.

> **[kreeware/kibana-cookbook](https://github.com/kreeware/kibana-cookbook/tree/master/asset-example)**
>
> kibana-cookbook - A collection of solutions and for creating dashboards and visualizations with Kibana

---

<div class="post-metadata">

**Author:** ![jjdepaul](https://avatars.discourse-cdn.com/v4/letter/j/e0b2c6/32.png) [@jjdepaul](https://discuss.elastic.co/u/jjdepaul)\
**Post date:** [December 16, 2015, 10:41pm UTC](https://discuss.elastic.co/t/storing-and-resolving-urls/37135/7 "2015-12-16T22:41:23Z")

</div>

Awesome - exactly what I was looking for - thank you. Will try it.

James DePaul

============================

IBM CIO Team - IC2E/SPRINT Project Architect

Denver, CO

Cel. (303) 715-8196

[jjdepaul@us.ibm.com](mailto:jjdepaul@us.ibm.com)

---

<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:** [July 6, 2017, 2:06pm UTC](https://discuss.elastic.co/t/storing-and-resolving-urls/37135/8 "2017-07-06T14:06:25Z")

</div>


