I have used API to create ES indexes. Unfortunately Kibana Index Patterns doesn't get auto-generated when we do that. I have tried using the following API call
Add a single field object to the saved object missing searchable, aggregatable, or readFromDocValues and the field list will be generated next time a user with index pattern edit privileges loads the index pattern. - src/plugins/data/common/index_patterns/index_patterns/index_pattern.ts:171
It should be noted that we aim to directly address this use case in future releases.
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.