Ostr1969
(ברק א)
September 14, 2021, 5:49pm
1
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
or
file//C:/install/Pdfs/file.pdf
both are missing a colon
matw
(Matthias Wilhelm)
September 22, 2021, 6:36am
2
Sadly this is currently not possible, I've opened an issue for it, but closed it since it's a duplicate of
opened 08:14PM - 05 Mar 18 UTC
loe:hours
Team:AppServices
Feature:FieldFormatters
impact:low
**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 <a> 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
system
(system)
Closed
October 20, 2021, 6:37am
3
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.