Create programable links with enabled custom filters to Kibana Dashboard

Hello,

my company is testing Kibana in order to check if the programme is usable for our business case.
We want to create programable links with enabled custom filters to Kibana Dashboard:

I know, there is the possibility to create permalinks:
Permalink

However, I want to create more than 10.000 links with enabled filters to Kibana Dashboard.
It will cost too much time to create these links through the provided option.

Therefore, I want to ask if it is possible if we can create these links in a programmable way, e.g. with Python.

With best regards

You could try writing a script that calls the shorten url api directly. However there are few caveats when it comes to permalinks in Kibana:

  1. Short urls are currently not "cleaned up", meaning once you create them, they remain in your .kibana index forever. So keep this in mind if you plan on creating large numbers of them. (You can, of course, delete them manually should you choose to do so).
  2. Kibana's URL parameters are still not officially considered a part of Kibana's APIs. While we have worked very hard not to break them, there remains a slight risk that short URLs you have created previously could change. (This is a risk no matter how you create short URLs, be it programmatically or via the UI).

We are actively planning a better solution for (2), but aside from waiting on that, writing a script to call the existing API directly sounds like it's probably your only option at the moment.

@lukeelmers @AClerk
Thank you for your reply!

I do not want to shorten URLs, I want to create URLs for the same dashboard with different filters. Is there anything planned to tackle this problem?

What are you thinking about this Python script?

In this case you add the filter to your dashboard first.
The filter and its value is part of the URL parameters.

You can change them and inject the values you want to filter for.

1 Like

thank you!
It worked!

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