I’m trying to create diferent index patterns with curl command in different tenants using the -H “securitytenant” header to specify the tenant, but all index-patterns are created in global tenant. I need to configure something more in the curl call? I’m using ODFE 1.9.0
I had the same experience as you! Basically if Kibana(/Opendistro) does not get its headers correctly it will default to the default tenant ( for me it was my private tenant), correct me if I’m wrong.
If I recall correctly I’m guessing that kbn-xsrf is supposed to be a string and not a boolean, if that does not fix your issue the content-type looks a bit different than mine.
However when I connect to kibana (opendistro) the new created index pattern is no where to be find in the index-pattern dashboard both with the global and the admin tenant
So I have not been thinking about this in the last 5 months, but IMHO your curl does not match the suggestion that I wrote last time.
The url seems to me to be wrong, you probably want it to be /api/saved_objects/index-pattern/logger-*
I also believe that you want want -H 'kbn-xsrf: "true"' is should apparently be a string ( at least according to my last comment)
I also suggested -H '"Content-Type: application/json;"' but that is probably unnecessary.
I think that the user-agent is unnecessary since it will probably be more confusing than beneficial for you.
Please let us if it fixes your issue AND let us know what fixes your issue, so that the next person have an easier time.
Cheers.
(edited: to remove the port number so that nobody copy paste it)
I wanted to follow up on this as I have hit exactly the same issue (with ODFE 1.12).
Was any solution found to this (ie being able to create an index pattern through the Kibana API via the global_tenant, so the pattern is visible to all).