Dear Wazuh community, support team,
Our deployment consists of 3 Wazuh Server docker containers (v4.14.6) with an OpenSearch (v2.19.4) integration for logs indexing.
We are facing an error to generate and download reports from the saved searches. Although we are aware that this might be an issue more related to OpenSearch than Wazuh itself, we’d like to know if anyone ever got this problem and how it was fixed.
The error is reproduced below with an account that has administrative rights to exclude a permission issue.
We saved the search security_logs_last_24h which relates to all the entries contained in the index pattern security-auditlog*. The result is those 2 saved objects:

The saved search loads successfully in the dashboard:

When opening the search and going to Reporting à Generate and download à Generate CSV or Generate XLSX, we get the following error message:

While performing this action, those 2 failed API calls can be seen (multitenancy is NOT enabled):


And this, despite the fact that our saved object does have the same ID cd24f470-9566-11f1-9e17-8f5036b3726d that is reportedly not found, and is referencing well the security-auditlog object with the ID f99a1910-9564-11f1-9e17-8f5036b3726d.
Please see the attached file with the content of the saved object.
Do you have an idea what the issue might be?
Thank you a lot in advance,
Hello Olamilekan,
At first, thank you very much for your detailed answer.
I can confirm you that multitenancy is disabled on the dashboard container:
XXX@wazuhdashboard01:/etc/wazuh-dashboard# cat opensearch_dashboards.yml | grep multi
opensearch_security.multitenancy.enabled: false
XXX@wazuhdashboard01:/etc/wazuh-dashboard/local# cat opensearch_dashboards_local.yml | grep multi
opensearch_security.multitenancy.enabled: false
The index where the saved searches is .kibana_wazuh_1 instead of .kibana. You can find attached the outputs of the GET commands.
Is this a custom index or one that comes with a default Wazuh setup? And since the saved search works well when loading it, so is it only the reporting function that relies on the .kibana index ?
If so, we can probably try reindex the saved search from .kibana_wazuh_1 to .kibana using this request:
POST _reindex
{
"source": {
"index": ".kibana_wazuh_1",
"query": {
"term": {
"_id": "search: cd24f470-9566-11f1-9e17-8f5036b3726d"
}
}
},
"dest": {
"index": ".kibana"
}
}
But this is rather suboptimal. Is there any suggested way to fix it?
Have a nice day,
