You are saying you want to change the structure of your data, by moving fields to the top-level, but you have not explained what the existing structure of your data is. We cannot answer a question that has not been asked.
Sorry Badger, But I am trying to pull list of users inside Kibana through user Api and store in an index to create visulization , for that I need fields
like
username, email, roles and full name
I am using curl command to pull the users list.
curl -X GET --cacert /usr/share/logstash/ca.pem -u elastic:xyz123 https://10.2.3.20:9200/_security/user
Getting below results from query
{"elastic":{"username":"elastic","roles":["superuser"],"full_name":null,"email":null,"metadata":{"_reserved":true},"enabled":true},"kibana":{"username":"kibana","roles":["kibana_system"],"full_name":null,"email":null,"metadata":{"_reserved":true,"_deprecated_reason":"Please use the [kibana_system] user instead.","_deprecated":true},"enabled":true},"kibana_system":{"username":"kibana_system","roles":["kibana_system"],"full_name":null,"email":null,"metadata":{"_reserved":true},"enabled":true}
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.