I have read the exact same question but the problem was automatically closed.
"When configuring an index pattern in Kibana, it's unable to fetch the field details of a particular index in Kibana, if I am using a predefined custom mapping when creating the index, and if i upload the data without predefined mapping it's working.
Index exists in elastic search and have set of fields.
I want to be able to create my own mapping with predefined data types for my object fields"
How do you know it's unable to fetch the field details?
- data types are unknown and no fields are visible for aggregations except te default ones _id, _source etc.
Are there errors in Kibana?
- no errors in Kibana
Are there errors in the Kibana log?
-no errors in Kibana log
Was the data loaded with one of our products like Logstash or a Beat?
- No, the index and default mapping with PUT request via Kibana console and the data objects via script with 'curl -H "Content-Type: application/json" -XPOST "https://domain_endpoint/index_name/_bulk" --data-binary "@example.json"';