i want to hide the extra fields that are showing to anonymous user, i want him to show only the fields that are used in the dashbaoard other then that hide the fileds.
i have added the fields that i wanted to show in the Elasticsearch grand access to specific fields roles > anonymous > Elasticsearch > Index privileges > Grant access to specific fields
When a user has several roles that specify field level permissions, the resulting field level permissions per data stream or index are the union of the individual role permissions.
... Document level security takes into account each role held by the user and combines each document level security query for a given data stream or index with an "OR". ...
So, you'd need to remove the staging* index from the first rule for the second take effect.
but i am not using that role for one i am using it for multiple dashbards and they all come from different index patterns. in that sense i have to create multiple roles ? for anonymous1 user for earch index to hide the fields.
As far as I understand this, having multiple roles or a single role with multiple rules is the same. Elasticsearch will combine all those rules, so if you have more than one that affects staging*, they will be unioned, and the fields will pass with the less restrictive rule.
Note how those rules have no order at all in the Kibana UI.
I'm going to transfer this post to the Elasticsearch forum since your fundamental problem is how Elasticsearch deals with field security, and Kibana is working as expected.
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.