Show url as image in Kibana

Hi,
I am working with Kibana 6.x
I am trying to use the fields formatter feature in Kibana to show a field as a URL.
The field name is thumbnail_path and it contains a full path to a jpg file
I have changed the field format like in the images below


However, the link I am getting keep adding http://localhost:5601/app/ at the begaining which causes the entire link to be wrong so instead of getting the value of the field as the target of the link I am getting http://localhost:5601/app/the-value-of-the-field

is there anyway to override this behavior? is there a way to show this thumbnail directly in the discover using the URL formatter and type image instead of link?
Any help regarding this is highly appreciated!

1 Like

Hi @M.alsioufi,

Hmm, actually {{rawValue}} as URL template for a field with absolute link to the image should work for both Image and Link. Can you share the example document?

Best,
Oleg

Thanks for your replay @azasypkin

The value of the field is a path like "E:\some\path\the-value-of-the-field.jpg" Kibana shows this value as a link but when I click on it, it opens a new tab with http://localhost:5601/app/the-value-of-the-field.jpg.


Ah, unfortunately Kibana doesn't support that kind of local/filesystem links.

Best,
Oleg

if I serve these files with an http server and provide the value like : "http:\some_ip\some\path\the-value-of-the-field.jpg" would that work?

if I serve these files with an http server and provide the value like : "http:\some_ip\some\path\the-value-of-the-field.jpg" would that work?

Yeah, that should work assuming you have a valid HTTP link, e.g. http://some-ip/picture.jpg.

1 Like

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