I am trying to export everything from one Kibana instance, then import the exported json file into a new (clean) Kibana instance. When I do so, I get an import failure:
Error: Could not locate that search (id: QA-Authentication)
at SavedObject.self.applyESResp (http://localhost:5601/index.js?_b=7668:91145:54)
at wrappedCallback (http://localhost:5601/index.js?_b=7668:20893:81)
at http://localhost:5601/index.js?_b=7668:20979:26
at Scope.$eval (http://localhost:5601/index.js?_b=7668:22022:28)
at Scope.$digest (http://localhost:5601/index.js?_b=7668:21834:31)
at Scope.$apply (http://localhost:5601/index.js?_b=7668:22126:24)
at done (http://localhost:5601/index.js?_b=7668:17661:45)
at completeRequest (http://localhost:5601/index.js?_b=7668:17875:7)
at XMLHttpRequest.xhr.onreadystatechange (http://localhost:5601/index.js?_b=7668:17814:11)
Examination of the export json data shows a search object with the ID QA-Authentication (at line 62).
"_id": "QA-Authentication",
"_type": "search",
"_source": {
"title": "Authentication",
"description": "",
"hits": 0,
"columns": [
"host",
"message"
],
"sort": [
"@timestamp",
"asc"
],
"version": 1,
"kibanaSavedObjectMeta": {
"searchSourceJSON": "{\n \"index\": \"[logstash-]YYYY.MM.DD.HH\",\n \"query\": {\n \"query_string\": {\n \"query\": \"host:(stg AND 98) AND path:(csg.log cm.log) AND host:(qadragon) AND message:(LINFO) AND message:(c.p.p.c.s.a.CmAuthenticationRestService) AND message:(\\\"authenticate\\\")\",\n \"analyze_wildcard\": true\n }\n },\n \"highlight\": {\n \"pre_tags\": [\n \"@kibana-highlighted-field@\"\n ],\n \"post_tags\": [\n \"@/kibana-highlighted-field@\"\n ],\n \"fields\": {\n \"*\": {}\n },\n \"fragment_size\": 2147483647\n },\n \"filter\": []\n}"
}
}
},
The problem is pretty consistent.