Plugin index-pattern loading issues on multiple spaces

Hi All,

Our team is having trouble getting our plugin to load on multiple spaces. We have created an index-pattern for each space. Below is the configuration for the index-patterns saved in Elasticsearch.

Space 1
{
    "page": 1,
    "per_page": 20,
    "total": 1,
    "saved_objects": [
        {
            "type": "index-pattern",
            "id": "f7c83c95-fae5-4e9d-9f0a-9044b64dad0c",
            "namespaces": [
                "koat"
            ],
            "originId": "7ba4d7f0-6bdc-11eb-9964-a72532fd2883",
            "attributes": {
                "name": "p-sent*"
            },
            "references": [],
            "managed": false,
            "migrationVersion": {
                "index-pattern": "8.0.0"
            },
            "coreMigrationVersion": "8.8.0",
            "typeMigrationVersion": "8.0.0",
            "updated_at": "2023-10-20T16:30:39.569Z",
            "created_at": "2023-09-20T14:58:17.378Z",
            "version": "WzU0OTUwLDE3XQ==",
            "score": 0
        }
    ]
}

Space 2
{
    "page": 1,
    "per_page": 20,
    "total": 1,
    "saved_objects": [
        {
            "type": "index-pattern",
            "id": "84cad637-2177-469c-a295-93d99976bb8f",
            "namespaces": [
                "koat-2"
            ],
            "originId": "7ba4d7f0-6bdc-11eb-9964-a72532fd2883",
            "attributes": {
                "name": "p-sent*"
            },
            "references": [],
            "managed": false,
            "migrationVersion": {
                "index-pattern": "8.0.0"
            },
            "coreMigrationVersion": "8.8.0",
            "typeMigrationVersion": "8.0.0",
            "updated_at": "2023-10-25T14:55:36.884Z",
            "created_at": "2023-10-25T14:55:36.884Z",
            "version": "WzU2MDM0LDE3XQ==",
            "score": 0
        }
    ]
}

Regardless of which space we try to load the plugin on, it attempts to get the first index-pattern. We have checked our codebase and found no instance of an id being hardcoded anywhere. Could this possibly be related to user and role configurations? Thanks in advance.

Could you check and see if the defaultIndex advanced setting is set in each of these spaces to the same thing?

Hi Lukas,

It turns out that this was the precise issue as we had a default set in the original space and copied those settings over to the new space when we created it. Removing the defaults allowed the plugin to load. Thank you for your help.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.