OS Version: 1.2.0
I have created an index name: data
in global tenant. I want to make this data
index accessible to all index (Global Index pattern).
I have custom tenant test
, when I login to test
tenant, I need to create index pattern of data
index.
Snap: test
tenant
I want to create global index pattern which should be visible in all tenants, pls let me how to achieve.
pablo
January 17, 2023, 7:33pm
2
@divyank_1 When multitenancy is enabled, the OpenSearch Dashboards objects are created in the active Tenant. I’m not aware of the option that would create a single object in all tenants at once.
Thanks @pablo for acknowledgement, I have added it in opensearch-project:
opened 04:47AM - 05 Jan 23 UTC
enhancement
triaged
**Is your feature request related to a problem?**
Currently, we have multiple t… enants for example: `abc` , `xyz` , `ijk`. We are using `saved_object` api to create `index_pattern` by importing `ndson` file. We observed that tenant which was first created (`xyz`) is showing `index_pattern` when below api import ndjson file.
Only `xyz` tenant and `Global` showing the index pattern. But we want to show particular index pattern at global level (to all individual tenants as well).
API Request:
```
curl -XPOST -u <>:<> --insecure "https://<
>:<>/api/saved_objects/_import" -H "osd-xsrf: true" --form file=@"a.ndjson"
```
If we go with curl request by keeping importing ndjson file to each individual tenant , we have to perform multiple API request & no straight forward way to select tenants in api request. Even when new tenant gets created we will need to run individual API request.
Ref Link: https://github.com/opensearch-project/OpenSearch-Dashboards/issues/1723
**What solution would you like?**
I think just like `Global` Tenant, in security plugin if there is any way to make any particular index pattern which is currently present in `xyz` tenant, if we can make it `Global` as well for every tenants. same with `Vizualizations` & `Dashboards`. Some Viz & Dashboards may be used by all Tenants.
**What alternatives have you considered?**
Currently we are using saved_object api to import ndjson file to individual tenant, which is cumbersome.
**Do you have any additional context?**
Do let me know if Global Index pattern can be achieved in current version, may be I am missing some user roles configurations.
Ref link: https://forum.opensearch.org/t/create-global-index-pattern-accessible-to-all-tenants-in-opensearch/11971