Kibana Shorten URL

Hi Team ,

I am trying to generate the shorten url for dashboard , i have used the following

curl -vvv -u kibana:kibana -XPOST "http://192.168.50.90:5601/shorten" -H 'kbn-xsrf: true' -H 'Content-Type: application/json' -d'{
  "url": "/app/kibana#/dashboard/8deec040-f9f8-11e8-ae00-f5b8ad9e46a4?embed=true&_g=(refreshInterval%3A(display%3AOff%2Cpause%3A!f%2Cvalue%3A0)%2Ctime%3A(from%3Anow-90d%2Cmode%3Aquick%2Cto%3Anow))"
}'

I am always getting the following response

  • About to connect() to 192.168.50.90 port 5601 (#0)
  • Trying 192.168.50.90...
  • Connected to 192.168.50.90 (192.168.50.90) port 5601 (#0)
  • Server auth using Basic with user 'kibana'

POST /shorten HTTP/1.1
Authorization: Basic a2liYW5hOmtpYmFuYQ==
User-Agent: curl/7.29.0
Host: 192.168.50.90:5601
Accept: /
kbn-xsrf: true
Content-Type: application/json
Content-Length: 1451
Expect: 100-continue

  • Empty reply from server
  • Connection #0 to host 192.168.50.90 left intact
    curl: (52) Empty reply from server

Elastic and kibana version is 6.3.0

Hello,

I went through our docs and this is what I got:
https://www.elastic.co/guide/en/kibana/master/url-shortening-api-api-shorten-url.html

Are you using the correct parameters in your curl call? Can you please check using this example here?

POST api/shorten_url
{
  "url": "/app/kibana#/dashboard?_g=()&_a=(description:'',filters:!(),fullScreenMode:!f,options:(hidePanelTitles:!f,useMargins:!t),panels:!((embeddableConfig:(),gridData:(h:15,i:'1',w:24,x:0,y:0),id:'8f4d0c00-4c86-11e8-b3d7-01146121b73d',panelIndex:'1',type:visualization,version:'7.0.0-alpha1')),query:(language:lucene,query:''),timeRestore:!f,title:'New%20Dashboard',viewMode:edit)",
}

Thanks,
Bhavya

Yes , All the Parameters are passed correctly, what mentioned in the documentation

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