# Create links to each log

**URL:** <https://discuss.elastic.co/t/create-links-to-each-log/328626>\
**Category:** Kibana\
**Tags:** kql-kibana-query-language\
**Created:** [March 27, 2023, 2:35pm UTC](https://discuss.elastic.co/t/create-links-to-each-log/328626 "2023-03-27T14:35:28Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![bekk777](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bekk777/32/101315_2.png) [@bekk777](https://discuss.elastic.co/u/bekk777)\
**Post date:** [March 27, 2023, 2:35pm UTC](https://discuss.elastic.co/t/create-links-to-each-log/328626/1 "2023-03-27T14:35:29Z")

</div>

Hi,  
I have been struggling with this issue for many days. I ask you to help. How to create your own links for each log, let's say, through \_doc \_id. Since each \_doc has a unique \_id, right? Is it possible to generate links based on the document \_id?  
Thanks for your response.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [March 27, 2023, 10:27pm UTC](https://discuss.elastic.co/t/create-links-to-each-log/328626/2 "2023-03-27T22:27:50Z")

</div>

Links to where exactly?

---

<div class="post-metadata">

**Author:** ![bekk777](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bekk777/32/101315_2.png) [@bekk777](https://discuss.elastic.co/u/bekk777)\
**Post date:** [March 28, 2023, 6:55am UTC](https://discuss.elastic.co/t/create-links-to-each-log/328626/3 "2023-03-28T06:55:23Z")

</div>

Hi Mark Walkom,  
Thank you for replying,  
Link to exactly each log.  
Example: Now I have a link log with a timestamp, which means when you click on a link for 5 minutes, you can watch this log, but after 5 minutes, you have to change the time. It is not comfortable. Is it possible that they can make links for each log to use single documents view? Whenever you click on this link, you will land on this log.  
Thanks for your response.

---

<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:** [March 28, 2023, 12:44pm UTC](https://discuss.elastic.co/t/create-links-to-each-log/328626/4 "2023-03-28T12:44:56Z")

</div>

Hello @bekk777 ,

If I understood you correct, you need to click on some log timestamp that you need as hyperlink and on click of that you'd like to land on that log?

I guess this is not supported by elastic default table visual. I also needed same functionality sometime back. I used **Enhanced data table plugin** , using it you would require to send your data from backend as hyperlink and the data is able to parse html content.  
ex:  
`<a href="ww.linkto log.com/logPath/root">28-03-2023</a>`  
Something like this.  
This kind of functionality in kibana tables are highly desired.

---

<div class="post-metadata">

**Author:** ![bekk777](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bekk777/32/101315_2.png) [@bekk777](https://discuss.elastic.co/u/bekk777)\
**Post date:** [March 28, 2023, 2:08pm UTC](https://discuss.elastic.co/t/create-links-to-each-log/328626/5 "2023-03-28T14:08:06Z")

</div>

Hi PRASHANT\_MEHTA  
Thanks for answering.  
I can say yes and no 😁 😀. Let me try to explain again: Now I have a link that was made from the Discovery panel ----\> Share ----\> Permalinks -----\> Short-URL ----\> Copy the Link and send this together via an alert, and so that if you click this link (Always the same link) before five minutes expires log come to Elasticsearch, then you can't find this one, so you have to change the time on the panel Discovery. Hard to explain 😬 🙄. I just want to know if it is possible to generate a link based on the document id in Kibana.  
Thanks for response.

---

<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:** [March 28, 2023, 3:08pm UTC](https://discuss.elastic.co/t/create-links-to-each-log/328626/6 "2023-03-28T15:08:38Z")

</div>

Ok,For your last statement:  
I just want to know if it is possible to generate a link based on the document id in Kibana?

Index pattern-\>scripted field:

```auto
if (doc['requestId.keyword'].size() > 0) {
  def requestId = doc['requestId.keyword'].value;
  return "<a href='http://abc:5089/ui/#/pagemanager;requestId=" + requestId + "'>" + requestId + "</a>";
} else {
  return "";
}

```

---

<div class="post-metadata">

**Author:** ![bekk777](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bekk777/32/101315_2.png) [@bekk777](https://discuss.elastic.co/u/bekk777)\
**Post date:** [March 28, 2023, 3:10pm UTC](https://discuss.elastic.co/t/create-links-to-each-log/328626/7 "2023-03-28T15:10:48Z")

</div>

> [@PRASHANT\_MEHTA](#):
>
> Enhanced data table plugin

Thank you, I will try today.

---

<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:** [April 25, 2023, 3:11pm UTC](https://discuss.elastic.co/t/create-links-to-each-log/328626/8 "2023-04-25T15:11:02Z")

</div>

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