Kibana import visualization fails - 7.8 to 7.7

is there a bug.

I am trying to export import via UI from kibana
output is from 7.8 and import is gone a happen to 7.7.

it fails with error the "file could not be processed"

and when I try same exact ndjson file import to 7.8 it works.

where can I see any error messages? I don't see anything on kibana.log or on elasticsearch log

Can you please set logging.verbose: logo cloud ece to True and check the logs for more output of Kibana and ES? Logs would be really helpful.

Thanks
Rashmi

Hi Rashmi,
I enable the log on kibana, this is what I got.

{"type":"response","@timestamp":"2020-07-13T12:19:43Z","tags":[],"pid":17234,"method":"post","statusCode":422,"req":{"url":"/api/saved_objects/_import?overwrite=true","method":"post","headers":{"host":"elkm01:5601","connection":"keep-alive","content-length":"3940","kbn-version":"7.7.0","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36","content-type":"multipart/form-data; boundary=----WebKitFormBoundaryH54cc8uKo9kcApgh","accept":"*/*","origin":"http://elkm01:5601","referer":"http://elkm01:5601/app/kibana","accept-encoding":"gzip, deflate","accept-language":"en-US,en;q=0.9"},"remoteAddress":"10.10.65.146","userAgent":"10.10.65.146","referer":"http://elkm01:5601/app/kibana"},"res":{"statusCode":422,"responseTime":137,"contentLength":9},"message":"POST /api/saved_objects/_import?overwrite=true 422 137ms - 9.0B"}

ndjson file has
{"visualization":"7.8.0"}

if I change that to 7.7.0 and then try import it works

if I change that back to 7.8.0 it fails.

This is the expected behavior - technically you can't import saved objects from a more recent version into an older version. This is the case because newer versions might have changed the internal format (or even added new features) and the old Kibana has no way of knowing how to handle them.

Manually editing the file by changing the migration version works in this case because there were no breaking format changes in 7.8, but it won't work in all cases and is not supported for this reason.

good to know reason and solution. basically I design my dashboard on 7.8 and wanted to move to test for user on 7.7. I now know how to do it.

I created an issue here https://github.com/elastic/kibana/issues/71436 to make the behavior more clear and document it better.

1 Like

thank you very much

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