I tried SGS_ALL_ACCESS and CREATE_INDEX in sg_roles.yml:
PA_LOGSTASH_USER:
description: "my search guard role"
cluster_permissions:
- "cluster:monitor/main"
- "cluster:admin/xpack/monitoring/bulk"
- CREATE_INDEX
- SGS_ALL_ACCESS
- CLUSTER_MONITOR
- CLUSTER_COMPOSITE_OPS
- CLUSTER_MANAGE_INDEX_TEMPLATES
- CLUSTER_MANAGE_ILM
- CLUSTER_MANAGE_PIPELINES
index_permissions:
- index_patterns:
- "panos-*"
allowed_actions:
- SGS_READ
- SGS_WRITE
But I still got error in es:
No index-leve requestedTenant=null] Resolved [aliases=[], indices=[panos-threat], allIndices=[panos-threat], types=[*], originaldices:admin/create]] [RolesChecked [SGS_LOGSTASH, PA_LOGSTASH_USER, SGS_OWN_INDEX]]" }
logstash error:
no permissions for [indices:admin/create] and User [name=logstash, roles=[logstash], requestedTenant=null]