Kibana Short URL API failing with external host error after upgrading to 8.18.3

Hello All,
We use ELK stack(Basic License) for reporting in one of our applications. Recently, we upgraded our ELK stack from 8.15.0 to 8.18.3, even though the upgrade completed successfully, we started facing issue with the "api/short_url" API of Kibana which we use in our application to shorten the Kibana URLs. We have ELK stack deployed on an AWS EC2 instance while application server is deployed on another EC2 instance.

Here is a sample request body for the API:

{
  "locatorId": "LEGACY_SHORT_URL_LOCATOR","params":{"url": "/app/visualize#/create?embed=true&type=histogram&indexPattern=sample_idx&_g=(refreshInterval:(display:Off,pause:!f,value:0),time:(from:now-6M,mode:quick,to:now))&_a=(filters:!(),linked:!f,query:(language:kuery,query:'active:true%20AND%20(fiscal_year:2025)'),uiState:(),vis:(aggs:!((enabled:!t,id:'1',params:...."}
}

Here is the response from the API:

{
  "statusCode": 400,
  "error": "Bad Request",
  "message": "Can not create a short URL for an external URL."
}

Is there any configurational change or code change that we can do to make the Short URL API still work the old way?

1 Like

Same issue here. Is that beeing fixed by updating to v9?