# Migrating shortened urls

**URL:** <https://discuss.elastic.co/t/migrating-shortened-urls/185478>\
**Category:** Kibana\
**Created:** [June 12, 2019, 5:15pm UTC](https://discuss.elastic.co/t/migrating-shortened-urls/185478 "2019-06-12T17:15:22Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![elk11](https://avatars.discourse-cdn.com/v4/letter/e/45deac/32.png) [@elk11](https://discuss.elastic.co/u/elk11)\
**Post date:** [June 12, 2019, 5:15pm UTC](https://discuss.elastic.co/t/migrating-shortened-urls/185478/1 "2019-06-12T17:15:22Z")

</div>

Hi,

We recently did ELK upgrade from 5.x to 7.x. We had generated some shortened urls in the old cluster. Is there any way to make them work with the new cluster?

Thanks.

---

<div class="post-metadata">

**Author:** ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)\
**Post date:** [June 12, 2019, 7:27pm UTC](https://discuss.elastic.co/t/migrating-shortened-urls/185478/2 "2019-06-12T19:27:14Z")

</div>

Are the shortened URLs broken in 7.x? Could you provide an example URL and the response plus any kibana logs?

---

<div class="post-metadata">

**Author:** ![elk11](https://avatars.discourse-cdn.com/v4/letter/e/45deac/32.png) [@elk11](https://discuss.elastic.co/u/elk11)\
**Post date:** [June 13, 2019, 3:58pm UTC](https://discuss.elastic.co/t/migrating-shortened-urls/185478/3 "2019-06-13T15:58:58Z")

</div>

Thanks for the response @Nathan_Reese. Yes, they seem to be broken.

example url: [http://hostname:5601/goto/2345cd4fda3456a7599e17e6a59f4c7](http://hostname:5601/goto/2345cd4fda3456a7599e17e6a59f4c7)

response:

`{"statusCode":500,"error":"Internal Server Error","message":"An internal server error occurred"}`

kibana log shows:

`{"type":"error","@timestamp":"2019-06-13T15:53:20Z","tags":[],"pid":1,"level":"error","error":{"message":"Saved object [url/2345cd4fda3456a7599e17e6a59f4c7] not found","name":"Error","stack":"Error: Saved object [url/2345cd4fda3456a7599e17e6a59f4c7] not found\n at Object.createGenericNotFoundError (/usr/share/kibana/src/legacy/server/saved_objects/service/lib/errors.js:129:36)\n at SavedObjectsRepository.get (/usr/share/kibana/src/legacy/server/saved_objects/service/lib/repository.js:528:20)"},"url":{"protocol":null,"slashes":null,"auth":null,"host":null,"port":null,"hostname":null,"hash":null,"search":null,"query":{},"pathname":"/goto/2345cd4fda3456a7599e17e6a59f4c7","path":"/goto/2345cd4fda3456a7599e17e6a59f4c7","href":"/goto/2345cd4fda3456a7599e17e6a59f4c7"},"message":"Saved object [url/2345cd4fda3456a7599e17e6a59f4c7] not found"}`

---

<div class="post-metadata">

**Author:** ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)\
**Post date:** [June 13, 2019, 4:37pm UTC](https://discuss.elastic.co/t/migrating-shortened-urls/185478/4 "2019-06-13T16:37:01Z")

</div>

Does the saved object used in the short url still exist? Did you use the upgrade assistent to migrate from 5.x to 6.8 and from 6.8 to 7.x?

---

<div class="post-metadata">

**Author:** ![elk11](https://avatars.discourse-cdn.com/v4/letter/e/45deac/32.png) [@elk11](https://discuss.elastic.co/u/elk11)\
**Post date:** [June 13, 2019, 5:03pm UTC](https://discuss.elastic.co/t/migrating-shortened-urls/185478/5 "2019-06-13T17:03:49Z")

</div>

We didn't use upgrade assistant to upgrade. We directly upgraded from 5.x to 7.0 by reindexing data into new cluster.

And some of the short urls were generated from unsaved objects.

---

<div class="post-metadata">

**Author:** ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)\
**Post date:** [June 13, 2019, 5:50pm UTC](https://discuss.elastic.co/t/migrating-shortened-urls/185478/6 "2019-06-13T17:50:15Z")

</div>

Not using the upgrade assistant is likely causing your problems. The upgrade assistant safely migrates the .kibana index. Saved object formats changes from each major and the .kibana index mapping changed from major to major as Elasticsearch removed types from index.

---

<div class="post-metadata">

**Author:** ![elk11](https://avatars.discourse-cdn.com/v4/letter/e/45deac/32.png) [@elk11](https://discuss.elastic.co/u/elk11)\
**Post date:** [June 13, 2019, 6:14pm UTC](https://discuss.elastic.co/t/migrating-shortened-urls/185478/7 "2019-06-13T18:14:35Z")

</div>

Does .kibana index holds any information about unsaved short urls? Because the exported saved objects are working fine on the new cluster. But only the problem is, the short urls generated in old cluster aren't working in New cluster.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 11, 2019, 6:14pm UTC](https://discuss.elastic.co/t/migrating-shortened-urls/185478/8 "2019-07-11T18:14:42Z")

</div>

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