Kibana 4.1.11 export/import

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.

There's a known issue about that;

I think you can proceed if you try importing the whole set again. You'll get warnings for each thing that already exists. You can pick either to replace or not, it shouldn't matter. But in the end, all the objects should be there and work.

NOTE: Exporting saved objects does not export the index pattern. So you would have to manually create the index pattern(s) first on the new clean Kibana instance.

Regards,
Lee

Thanks Lee, I was able to get things working. Good tip about the index
patterns not being exported.
Sean

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