# Kibana discover url link click naviagte to custom url

**URL:** <https://discuss.elastic.co/t/kibana-discover-url-link-click-naviagte-to-custom-url/329171>\
**Category:** Kibana\
**Created:** [April 3, 2023, 7:50am UTC](https://discuss.elastic.co/t/kibana-discover-url-link-click-naviagte-to-custom-url/329171 "2023-04-03T07:50:57Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![PRASHANT\_MEHTA](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/prashant_mehta/32/101764_2.png) [@PRASHANT\_MEHTA](https://discuss.elastic.co/u/PRASHANT_MEHTA)\
**Post date:** [April 3, 2023, 7:50am UTC](https://discuss.elastic.co/t/kibana-discover-url-link-click-naviagte-to-custom-url/329171/1 "2023-04-03T07:50:57Z")

</div>

Hello All,

![image](https://us1.discourse-cdn.com/elastic/original/3X/a/8/a8fab600a2ea96bc5e28e97865b9297460715100.png)

Above is how my data looks like in old implementation.Now I'm using jdbc plugin in logstash to parse this data and send to elastic index.Now the data in table is simple value.  
Now I would like to click on this and navigate to my own custom url.  
ex click:-\>5oE13....AC6-\>route to [http://customweb:9800/custom/home](http://customweb:9800/custom/home).

I would also like the url customweb and port 9800 should be configured from some configuration so that everytime user dont need to do it manually in url template.  
Note can't use env variable in os for some purpose.

Any suggestion would be helpful.

ELK 7.9.1

---

<div class="post-metadata">

**Author:** ![jughosta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jughosta/32/107160_2.png) [@jughosta](https://discuss.elastic.co/u/jughosta)\
**Post date:** [April 3, 2023, 12:07pm UTC](https://discuss.elastic.co/t/kibana-discover-url-link-click-naviagte-to-custom-url/329171/2 "2023-04-03T12:07:47Z")

</div>

Hi @PRASHANT_MEHTA,

This can be achieved by defining an URL field formatter for a field:

> **[Manage index pattern data fields | Kibana Guide \[7.17\] | Elastic](https://www.elastic.co/guide/en/kibana/7.17/managing-index-patterns.html)**
>
> Kibana provides you with several options to share \*Discover\* saved searches, dashboards, \*Visualize Library\* visualizations, and \*Canvas\* workpads with others, or on a website.

Navigate to Stack Management \> Index Patterns page. Press "Edit" for your field and configure an URL formatter.

---

<div class="post-metadata">

**Author:** ![PRASHANT\_MEHTA](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/prashant_mehta/32/101764_2.png) [@PRASHANT\_MEHTA](https://discuss.elastic.co/u/PRASHANT_MEHTA)\
**Post date:** [April 3, 2023, 12:32pm UTC](https://discuss.elastic.co/t/kibana-discover-url-link-click-naviagte-to-custom-url/329171/3 "2023-04-03T12:32:30Z")

</div>

Hello @jughosta ,

Thanx for you your time to look into this and for guidance.I'm aware of above solution , but challenge I see here:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/c/f/cfd53d61aa4eea9d382447adc1460619b3212357.png)

[http://abc:8089/cis-web-ui/#/jobmanager](http://abc:8089/cis-web-ui/#/jobmanager)

In elastic document it should just show abc as hyperlink and on click of this route to:

[http://abc:8089/cis-web-ui/#/jobmanager](http://abc:8089/cis-web-ui/#/jobmanager)

Here my requirement is to configure this url dynamically, so that user don't need to come to kibana everytime to change the host(abc) and port(8089).I'm trying to find a way to manage this through some configuration and not getting it how to do it.

My deployment of elk is automatic i.e through installer and user will never come to kibana to do such cahnges if host and port is to be updated.This should be updated through some configuration setup.

Can you help further to resolve or suggestion.

---

<div class="post-metadata">

**Author:** ![jughosta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jughosta/32/107160_2.png) [@jughosta](https://discuss.elastic.co/u/jughosta)\
**Post date:** [April 3, 2023, 2:02pm UTC](https://discuss.elastic.co/t/kibana-discover-url-link-click-naviagte-to-custom-url/329171/4 "2023-04-03T14:02:26Z")

</div>

> [@PRASHANT\_MEHTA](#):
>
> In elastic document it should just show abc as hyperlink and on click of this route to

The URL template input is used to configure a link href. Make sure to add `{{value}}` to it too.  
The Label template input below is to set a custom label for such link. Try to save with `{{value}}` as Label template.

> [@PRASHANT\_MEHTA](#):
>
> Here my requirement is to configure this url dynamically

There is an option to dynamically update field formatters via API

> **[Create index pattern API | Kibana Guide \[master\] | Elastic](https://www.elastic.co/guide/en/kibana/master/index-patterns-api-create.html)**

---

<div class="post-metadata">

**Author:** ![PRASHANT\_MEHTA](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/prashant_mehta/32/101764_2.png) [@PRASHANT\_MEHTA](https://discuss.elastic.co/u/PRASHANT_MEHTA)\
**Post date:** [April 3, 2023, 2:21pm UTC](https://discuss.elastic.co/t/kibana-discover-url-link-click-naviagte-to-custom-url/329171/5 "2023-04-03T14:21:46Z")

</div>

Ok,still I don't see the solution to this.  
I simply need to update the host and port for entire url through some config.  
If you understood me correctly ,my intention is to dynamically create a url based on some config wherein the host and port in url template is to be updated through some config define.  
I'm not sure how one can do it with above link shared.

Kibana at times really dosen't help in such small requirements.  
I will try to do this with code implementation.Write a script,define variables for host and port,construct url and send to  
elastic index.This may work.

Again appreciate your time on this.

Many Thanx.

---

<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:** [May 1, 2023, 2:22pm UTC](https://discuss.elastic.co/t/kibana-discover-url-link-click-naviagte-to-custom-url/329171/6 "2023-05-01T14:22:23Z")

</div>

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