Navigation to kibana discover logs from grafana fails

HI team,
I have a grafana dashboard with line graph. i want to navigate to kibana logs with corresponding time range provided by grafana. But kibana does nt show the logs on discover. it fails due to time value.
This one works:

 https://mykibana.org/app/discover#/?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))

When the time value is filled by grafana, using this data link:

https://mykibana.org/app/kibana#/discover?_g=(refreshInterval:(pause:!t,value:0),time:(from:${__from},to:${__to})) 

which generate an url like this for example based on chosen point:

https://mykibana.org/app/kibana#/discover?_g=(refreshInterval:(pause:!t,value:0),time:(from:1604002957536,to:1604002959093))

This one fails navigation and make it hard for logs analysis. I have seen this issue already on another topic Help required for Kibana link redirection from Grafana

but the resolution is not clear. Is there a fix or another way to manage this problem ?
Any help will be great !

Kibana's time URL parameter does not accept time in epoch format. Is there any way to convert the value to ISO-8601 format in Grafana?

Would you mind opening an issue at https://github.com/elastic/kibana/issues/new?template=Feature_request.md and describe your use case?

Hi nathan,
So far i dont find any other way to get this date format conversion on Grafana side. As i have to simply use the time variable provided by grafana in the url. Dont find any other way to convert this value to correct format.

https://mykibana.org/app/kibana#/discover?_g=(refreshInterval:(pause:!t,value:0),time:(from:${__from},to:${__to}))

If you have any other way of workaround. Please share with me.

Thanks alot.
sadish

Here is the github issue created https://github.com/elastic/kibana/issues/82227

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