Hello,
Since migration to 4.x I am struggling with below error. Cannot access Wazuh as it does not go thru health check. I was able make it work quite randomly on some versions after fighting with it a lot and never knew what was the reason. This is migrated from pre 4.x.
I set it up manually using all in one documentation with elasticsearch basic licence. The weird thing is that template and pattern is there (created by filebeat) - for some reason wazuh app just doesn't see it.

Also I have some weird browser side errors:
wazuh.plugin.js:2 POST
https://server/api/saved_objects/index-pattern/wazuh-alerts-* 409 (Conflict)
Error: Minified React error #31; visit
https://reactjs.org/docs/error-decoder.html?invariant=31&args[]=TypeError%3A%20Cannot%20read%20property%20'id'%20of%20undefined&args[]= for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
GET
https://server/api/saved_objects/index-pattern 404 (Not Found)
Kibana is revere proxied with nginx, but after disabling it and using kibana alone it is completelly the same.
cat /var/log/filebeat/filebeat | grep -i -E "error|warn" and cat /var/log/elasticsearch/elasticsearch.log | grep -i -E "error|warn" are empty
Will be very grateful for helping with this.