# Link to local document in kibana discover

**URL:** <https://discuss.elastic.co/t/link-to-local-document-in-kibana-discover/284212>\
**Category:** Kibana\
**Created:** [September 14, 2021, 5:49pm UTC](https://discuss.elastic.co/t/link-to-local-document-in-kibana-discover/284212 "2021-09-14T17:49:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ostr1969](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ostr1969/32/70103_2.png) [@Ostr1969](https://discuss.elastic.co/u/Ostr1969)\
**Post date:** [September 14, 2021, 5:49pm UTC](https://discuss.elastic.co/t/link-to-local-document-in-kibana-discover/284212/1 "2021-09-14T17:49:57Z")

</div>

how can I get a working link for a local file ingested?.  
I have file.url and real.path  
when I put http://{{rawvalue}} at the link template  
I get  
[http://c/install/Pdfs/file.pdf](http://c/install/Pdfs/file.pdf)  
or  
file//C:/install/Pdfs/file.pdf  
both are missing a colon

---

<div class="post-metadata">

**Author:** ![matw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matw/32/13913_2.png) [@matw](https://discuss.elastic.co/u/matw)\
**Post date:** [September 22, 2021, 6:36am UTC](https://discuss.elastic.co/t/link-to-local-document-in-kibana-discover/284212/2 "2021-09-22T06:36:42Z")

</div>

Sadly this is currently not possible, I've opened an issue for it, but closed it since it's a duplicate of

> <https://github.com/elastic/kibana/issues/16983>
>
> \*\*Kibana version\*\*: 6.2.2
> 
> \*\*Elasticsearch version\*\*: 6.2.2
> 
> \*\*Server OS ver…sion\*\*: Windows Server 2016
> 
> \*\*Browser version\*\*: Chrome 64
> 
> \*\*Browser OS version\*\*: Windows 7
> 
> \*\*Original install method (e.g. download page, yum, from source, etc.)\*\*: Download page
> 
> \*\*Description of the problem including expected versus actual behavior\*\*: When there is a URL field that starts with file://, Kibana creates an &lt;a&gt; tag with href="http://myserver/app/file//\[etc\]" which is not usable.
> 
> \*\*Steps to reproduce\*\*:
> 1. Create a document with a field called "test" that has a value, "file://c/temp.txt."
> 2. Set the "test" field to be in the URL format
> 3. When viewing the document, try to click on the "test" link
> 
> This was also reported in the forums https://discuss.elastic.co/t/kibana-url-format-bug-file/121414 (the poster there said they would create an issue, but I haven't been able to find it).
> 
> I think the fix for this would just be to add "file://" to whitelistUrlSchemes in https://github.com/elastic/kibana/blob/d06ee13ab83baba86a36ffd69fe6277f845a034c/src/core\_plugins/kibana/common/field\_formats/types/url.js
> 
> Thanks!

You could follow this discussion, and what's always helpful, comment there to talk about you use case

Best,  
Matthias

---

<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:** [October 20, 2021, 6:37am UTC](https://discuss.elastic.co/t/link-to-local-document-in-kibana-discover/284212/3 "2021-10-20T06:37:42Z")

</div>

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