Hello,
If it is not a fresh installation, we assume that was working properly before the error, so it is not a "deployment issue".
Since it is a timeout, probably there a performance/configuration issue in your indexer (wazuh-indexer, elasticsearch or opensearch). For that reason, I would like to do the following checks:
1. Checking the indexer
You can use the credentials that you use for the dashboard login.
Also, you can do the queries from the dashboard. Go to Menu > Management > Dev tools. I attached a screenshot.
2. Checking the index pattern
In the dashboard, go to Menu > Management > Stack management > Index pattern > wazuh-alerts-*. Attached is another screenshot.
How many fields do you have? Is there any warning?
What version of Wazuh are you running?
I hope it helps.