Thank you @flash1293 for your responses throughout this thread.
The issue was:
- the exported dashboard seems to contain an entry of the default index pattern, along with the visualizations. This caused conflict when the dashboard is imported.
- Some index patterns are not listed when using this api call
curl -X GET "http://localhost:5601/api/saved_objects/_find?type=index-pattern&search_fields=title" > $indx_patterns
I have to add page=10000 to get all the index patterns.
curl -s "${kibana_url}/api/saved_objects/_find?fields=title&fields=type&per_page=10000&type=index-pattern" > $indx_patterns
If you have time, I would appreciate your help in my other Kibana-vega issue
Thank you.