# Link to an image file in Kibana

**URL:** <https://discuss.elastic.co/t/link-to-an-image-file-in-kibana/220034>\
**Category:** Kibana\
**Created:** [February 19, 2020, 5:13pm UTC](https://discuss.elastic.co/t/link-to-an-image-file-in-kibana/220034 "2020-02-19T17:13:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![J.K](https://avatars.discourse-cdn.com/v4/letter/j/d07c76/32.png) [@J.K](https://discuss.elastic.co/u/J.K)\
**Post date:** [February 19, 2020, 5:13pm UTC](https://discuss.elastic.co/t/link-to-an-image-file-in-kibana/220034/1 "2020-02-19T17:13:06Z")

</div>

In Kibana Index Patterns there is a field that contains a link to an image.  
The image is saved on my local machine, so to open the image in the chrome explorer I have to put the url: "file://thePath/fileName.png".  
In Kibana I want to view the image, so clicking about it will open it in a new tab.  
I set the format of the field to URL, and the URT TEMPLATE to "file:{{rawValue}}".  
The issue: In Discover view there is an error ("Not Found"). I saw that the href of the image is: "[http://kibanaServerName:5601//file:\thePath\fileName.png](http://kibanaServerName:5601//file:%5CthePath%5CfileName.png)"  
Why the Kibana adds the **"[http://kibanaServerName:5601//](http://kibanaServerName:5601//)"** at the begining of the URL?  
How can I change this?

---

<div class="post-metadata">

**Author:** ![wylie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wylie/32/81794_2.png) [@wylie](https://discuss.elastic.co/u/wylie)\
**Post date:** [February 19, 2020, 5:45pm UTC](https://discuss.elastic.co/t/link-to-an-image-file-in-kibana/220034/2 "2020-02-19T17:45:29Z")

</div>

Don't you need to set the URL template to `file://{{rawValue}}`, not `file:{{rawValue}}`?

This could be a bug though, we only handle `http://` and `https://` URLs with special cases

---

<div class="post-metadata">

**Author:** ![J.K](https://avatars.discourse-cdn.com/v4/letter/j/d07c76/32.png) [@J.K](https://discuss.elastic.co/u/J.K)\
**Post date:** [February 23, 2020, 1:29pm UTC](https://discuss.elastic.co/t/link-to-an-image-file-in-kibana/220034/3 "2020-02-23T13:29:08Z")

</div>

It does'nt work also in template file://{{rawValue}}.

---

<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:** [March 22, 2020, 1:32pm UTC](https://discuss.elastic.co/t/link-to-an-image-file-in-kibana/220034/4 "2020-03-22T13:32:24Z")

</div>

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