Want to use shorten URL functionality of Kibana to generate id of dashboard

Hello, everyone
I have this public URL that I want to show publicly but it has multiple parameters that can be seen in the URL so I wanted to be short .
I was going through Shorten URL | Kibana User Guide [6.7] | Elastic but can't do it for myself.

http://xx.xxx.xx.xxx:5601/s/adv_public/app/dashboards#/view/bc58c7d6-9073-4a25-9767-60f0ce81623f?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-1y%2Fd,to:now))

i am running command:

curl -u xxxxx:xxxxx -X POST "http://xx.xxx.xx.xxx:5601/api/shorten_url"
-H 'kbn-xsrf: true' -H 'Content-Type: application/json' -d'
{
"url": "http://xx.xxx.xx.xxx:5601/s/adv_public/app/dashboards#/view/bc58c7d6-9073-4a25-9767-60f0ce81623f?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-1y%2Fd,to:now))"
}' -k

getting response:
{"statusCode":404,"error":"Not Found","message":"Not Found"}

Anyone please help?

Please note that 6.7 is EOL and no longer supported, you should be looking to upgrade as a matter of urgency.

Per that doc page, did you try it without the domain in the url parameter?

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