When you want to put kibana 4 export.json under git (or any VC system), you'll see that the file changes even if you did not touch searches, vizs or dashboards. The script below uses jq to keep kibana 4 objects (and object keys) in a constant order. Thus, no diffs if you left your kibana untouched. And more git friendly!
Here is the gist : https://gist.github.com/jpparis-orange/e79dbfae1cba54799b1476fb4ddfed93
Would it be good to have Kibana itself exporting objects with a constant order?
Once we say "our json order is deterministic", it's something we'd have to keep up long term, so while it does sound useful, I'm not sure it's something we'd want to implement. I suggest you add this as a feature request in the Kibana repo (https://github.com/elastic/kibana/issues) and tag it with discuss so other team members can weigh in as well.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.