Is it possible to create costum attributes while creating kibana index pattern?
The goal is to be able to detect an index created with a Kubernetes Operator (among the others created by the Kibana GUI)
{"message":"mapping set to strict, dynamic introduction of [createdByOperator:] within [index-pattern] is not allowed: [strict_dynamic_mapping_exception] mapping set to strict, dynamic introduction of [createdByOperator:] within [index-pattern] is not allowed","statusCode":400,"error":"Bad Request"}
To answer your query:
We create a Kubernetes Custom Resource which is kept by a Kubenetes Operator. The Operator creates the Kibana index pattern via the REST Api. Then if we get the kibana index Via RestAPI and if we have a specific tag in it, we are able to detect that it has been created progamatically and peform some action.
But if the kibana index pattern was created by the GUI then we are doing nothing.
This is the high level idea of why we are creating custom attributes.
Okay. So how can I do it?
Is there anything wrong in my command that I have mentioned above in the description?
If yes, what would be te right approach?
if no, then why the error(error mentioned in the issue description) and how can I resolve this error?
The error message is saying that strict mapping is applied so unknown fields can not be added to the saved object. What you are trying to do is not possible.
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.