# Help required for Kibana link redirection from Grafana

**URL:** <https://discuss.elastic.co/t/help-required-for-kibana-link-redirection-from-grafana/191126>\
**Category:** Kibana\
**Created:** [July 18, 2019, 5:08am UTC](https://discuss.elastic.co/t/help-required-for-kibana-link-redirection-from-grafana/191126 "2019-07-18T05:08:08Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![akhisar](https://avatars.discourse-cdn.com/v4/letter/a/f9ae1b/32.png) [@akhisar](https://discuss.elastic.co/u/akhisar)\
**Post date:** [July 18, 2019, 5:08am UTC](https://discuss.elastic.co/t/help-required-for-kibana-link-redirection-from-grafana/191126/1 "2019-07-18T05:08:08Z")

</div>

Hello Experts,

I have a grafana dashboard with elastcsearch as data source showing the log ERROR/WARN "status by Group Panel". This panel provide a provision to redirect to the metric URL. I have used the below URL for this:

[https://xyz.com:5601/app/kibana#/discover?\_g=(refreshInterval:(pause:!t,value:0),time:(from:$\_\_from,mode:absolute,to:$\_\_to)](https://xyz.com:5601/app/kibana#/discover?_g=(refreshInterval:(pause:!t,value:0),time:(from:%24 __from,mode:absolute,to:%24__ to)))&\_a=(columns:!(\_source),index:'ee4e2a20-9679-11e9-9de9-c5ddf50151ac',interval:auto,query:(language:kuery,query:'kubernetes.namespace\_name.keyword%20:%20%22$namespace%22%20AND%20kubernetes.labels.app.keyword%20:%22$app%22%20AND%20log\_level.keyword%20:%20%22WARN%22'),sort:!('@timestamp',desc))

Now the issue is that $\_\_from and $\_\_to are grafana inbuilt variable for the range which are in epoch timing. When redirected to kibana they do become proper time format but kibana hangs in searching screen. I think it is more to do with the html link but any help here would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![Marius\_Dragomir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_dragomir/32/42087_2.png) [@Marius\_Dragomir](https://discuss.elastic.co/u/Marius_Dragomir)\
**Post date:** [July 18, 2019, 5:30pm UTC](https://discuss.elastic.co/t/help-required-for-kibana-link-redirection-from-grafana/191126/2 "2019-07-18T17:30:17Z")

</div>

I think this is more of a question for the Grafana community than the Kibana community, but i'll leave it open in case somebody else has some experience with this scenario and can help.

---

<div class="post-metadata">

**Author:** ![akhisar](https://avatars.discourse-cdn.com/v4/letter/a/f9ae1b/32.png) [@akhisar](https://discuss.elastic.co/u/akhisar)\
**Post date:** [July 19, 2019, 4:32am UTC](https://discuss.elastic.co/t/help-required-for-kibana-link-redirection-from-grafana/191126/3 "2019-07-19T04:32:43Z")

</div>

Hello Marius,

Thanks for the response, could you please confirm from Kibana end if Epoch time is supported in the "time:" section of the URL because I see that the time gets converted to ISO8601 format but then it hangs on the search.

---

<div class="post-metadata">

**Author:** ![gabriel\_carrera](https://avatars.discourse-cdn.com/v4/letter/g/bcef8e/32.png) [@gabriel\_carrera](https://discuss.elastic.co/u/gabriel_carrera)\
**Post date:** [August 12, 2019, 1:22pm UTC](https://discuss.elastic.co/t/help-required-for-kibana-link-redirection-from-grafana/191126/4 "2019-08-12T13:22:45Z")

</div>

Hello,

The URL that Akhil proposed expands the \_\_from and \_\_to variables to epoch timestamps in milliseconds, like:  
`_g=(refreshInterval:(display:Off,pause:!f,value:0),time:(from:1565562502541,mode:absolute,to:1565605702542))`  
I have tried it too and I see the same result:

- it translates the dates in the time range selector
- the search gets stuck
- no error is reported

@Marius_Dragomir, could you please help letting us know what would be the correct way of creating the URL so that we can use milliseconds timestamps for the range selector?

@akhisar did you find a workaround?

Thank you both for your help.

Regards,  
Gabriel

---

<div class="post-metadata">

**Author:** ![akhisar](https://avatars.discourse-cdn.com/v4/letter/a/f9ae1b/32.png) [@akhisar](https://discuss.elastic.co/u/akhisar)\
**Post date:** [August 16, 2019, 4:36am UTC](https://discuss.elastic.co/t/help-required-for-kibana-link-redirection-from-grafana/191126/5 "2019-08-16T04:36:03Z")

</div>

Hello Gabriel,

Yes, for the time being I have used a dirty hack to extract time value from the time key of elasticsearch itself by extracting the top single values by arranging them in ascending and descending order followed by hiding this variables on Grafana. However this workaround need refresh of the dashboards to work properly.

---

<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:** [September 13, 2019, 4:36am UTC](https://discuss.elastic.co/t/help-required-for-kibana-link-redirection-from-grafana/191126/6 "2019-09-13T04:36:04Z")

</div>

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