What can be the issue? below some commands, let me know...
/var/ossec/bin/wazuh-control status
wazuh-clusterd not running...
wazuh-modulesd is running...
wazuh-monitord is running...
wazuh-logcollector is running...
wazuh-remoted is running...
wazuh-syscheckd is running...
wazuh-analysisd is running...
wazuh-maild not running...
wazuh-execd is running...
wazuh-db is running...
wazuh-authd is running...
wazuh-agentlessd not running...
wazuh-integratord is running...
wazuh-dbd not running...
wazuh-csyslogd not running...
wazuh-apid is running...
2025/03/06 18:37:06 indexer-connector: WARNING: IndexerConnector initialization failed for index 'wazuh-states-vulnerabilities-wazuh-1', retrying until the connection is successful.
2025/03/06 19:39:03 indexer-connector: WARNING: IndexerConnector initialization failed for index 'wazuh-states-vulnerabilities-wazuh-1', retrying until the connection is successful.
filebeat test output
elasticsearch: https://127.0.0.1:9200...
parse url... OK
connection...
parse host... OK
dns lookup... OK
addresses: 127.0.0.1
dial up... OK
TLS...
security: server's certificate chain verification is enabled
handshake... OK
TLS version: TLSv1.3
dial up... OK
talk to server... OK
version: 7.10.2
cat /usr/share/wazuh-dashboard/data/wazuh/logs/wazuhapp.log | grep -i -E "error|warn"
{"data":{"config":{"data":"{}","method":"get","params":{},"url":"https://127.0.0.1:55000/manager/stats/analysisd"},"message":"connect ECONNREFUSED 127.0.0.1:55000","stack":"Error: connect ECONNREFUSED 127.0.0.1:55000\n at Function.AxiosError.from (/usr/share/wazuh-dashboard/plugins/wazuh/node_modules/axios/lib/core/AxiosError.js:89:14)\n at RedirectableRequest.handleRequestError (/usr/share/wazuh-dashboard/plugins/wazuh/node_modules/axios/lib/adapters/http.js:606:25)\n at RedirectableRequest.emit (node:events:513:28)\n at RedirectableRequest.emit (node:domain:489:12)\n at ClientRequest.eventHandlers.<computed> (/usr/share/wazuh-dashboard/plugins/wazuh/node_modules/follow-redirects/index.js:14:24)\n at ClientRequest.emit (node:events:513:28)\n at ClientRequest.emit (node:domain:489:12)\n at TLSSocket.socketErrorListener (node:_http_client:502:9)\n at TLSSocket.emit (node:events:513:28)\n at TLSSocket.emit (node:domain:489:12)\n at emitErrorNT (node:internal/streams/destroy:151:8)\n at emitErrorCloseNT (node:internal/streams/destroy:116:3)\n at processTicksAndRejections (node:internal/process/task_queues:82:21)"},"date":"2025-03-06T20:50:00.506Z","level":"info","location":"Cron-scheduler"}
{"data":{"config":{"data":"{}","method":"get","params":{},"url":"https://127.0.0.1:55000/manager/stats/remoted"},"message":"Request failed with status code 500","stack":"AxiosError: Request failed with status code 500\n at settle (/usr/share/wazuh-dashboard/plugins/wazuh/node_modules/axios/lib/core/settle.js:19:12)\n at IncomingMessage.handleStreamEnd (/usr/share/wazuh-dashboard/plugins/wazuh/node_modules/axios/lib/adapters/http.js:585:11)\n at IncomingMessage.emit (node:events:525:35)\n at IncomingMessage.emit (node:domain:489:12)\n at endReadableNT (node:internal/streams/readable:1359:12)\n at processTicksAndRejections (node:internal/process/task_queues:82:21)"},"date":"2025-03-06T20:56:11.256Z","level":"info","location":"Cron-scheduler"}
{"data":{"config":{"data":"{}","method":"get","params":{},"url":"https://127.0.0.1:55000/manager/stats/analysisd"},"message":"Request failed with status code 500","stack":"AxiosError: Request failed with status code 500\n at settle (/usr/share/wazuh-dashboard/plugins/wazuh/node_modules/axios/lib/core/settle.js:19:12)\n at IncomingMessage.handleStreamEnd (/usr/share/wazuh-dashboard/plugins/wazuh/node_modules/axios/lib/adapters/http.js:585:11)\n at IncomingMessage.emit (node:events:525:35)\n at IncomingMessage.emit (node:domain:489:12)\n at endReadableNT (node:internal/streams/readable:1359:12)\n at processTicksAndRejections (node:internal/process/task_queues:82:21)"},"date":"2025-03-06T20:56:11.273Z","level":"info","location":"Cron-scheduler"}
{"data":{"config":{"data":"{}","method":"get","params":{},"url":"https://127.0.0.1:55000/manager/stats/analysisd"},"message":"Request failed with status code 500","stack":"AxiosError: Request failed with status code 500\n at settle (/usr/share/wazuh-dashboard/plugins/wazuh/node_modules/axios/lib/core/settle.js:19:12)\n at IncomingMessage.handleStreamEnd (/usr/share/wazuh-dashboard/plugins/wazuh/node_modules/axios/lib/adapters/http.js:585:11)\n at IncomingMessage.emit (node:events:525:35)\n at IncomingMessage.emit (node:domain:489:12)\n at endReadableNT (node:internal/streams/readable:1359:12)\n at processTicksAndRejections (node:internal/process/task_queues:82:21)"},"date":"2025-03-06T21:00:14.680Z","level":"info","location":"Cron-scheduler"}
{"data":{"config":{"data":"{}","method":"get","params":{},"url":"https://127.0.0.1:55000/manager/stats/remoted"},"message":"Request failed with status code 500","stack":"AxiosError: Request failed with status code 500\n at settle (/usr/share/wazuh-dashboard/plugins/wazuh/node_modules/axios/lib/core/settle.js:19:12)\n at IncomingMessage.handleStreamEnd (/usr/share/wazuh-dashboard/plugins/wazuh/node_modules/axios/lib/adapters/http.js:585:11)\n at IncomingMessage.emit (node:events:525:35)\n at IncomingMessage.emit (node:domain:489:12)\n at endReadableNT (node:internal/streams/readable:1359:12)\n at processTicksAndRejections (node:internal/process/task_queues:82:21)"},"date":"2025-03-06T21:00:14.985Z","level":"info","location":"Cron-scheduler"}
{"date":"2025-03-06T21:00:15.625Z","level":"error","location":"monitoring:getApiInfo","message":"Request failed with status code 500"}
journalctl -u wazuh-dashboard | grep -iE "err|warn"
Mar 06 19:39:48 hostname opensearch-dashboards[14441]: {"type":"log","@timestamp":"2025-03-06T22:39:48Z","tags":["error","opensearch","data"],"pid":14441,"message":"[search_phase_execution_exception]: all shards failed"}
Mar 06 19:39:50 hostname opensearch-dashboards[14441]: {"type":"log","@timestamp":"2025-03-06T22:39:50Z","tags":["error","opensearch","data"],"pid":14441,"message":"[search_phase_execution_exception]: all shards failed"}
Mar 06 19:39:53 hostname opensearch-dashboards[14441]: {"type":"log","@timestamp":"2025-03-06T22:39:53Z","tags":["error","opensearch","data"],"pid":14441,"message":"[search_phase_execution_exception]: all shards failed"}
Mar 06 19:40:23 hostname opensearch-dashboards[17090]: {"type":"log","@timestamp":"2025-03-06T22:40:23Z","tags":["error","opensearch","data"],"pid":17090,"message":"[resource_already_exists_exception]: index [.kibana_2/31x7bynDQLySiE1AypNv5Q] already exists"}
Mar 06 19:40:23 hostname opensearch-dashboards[17090]: {"type":"log","@timestamp":"2025-03-06T22:40:23Z","tags":["warning","savedobjects-service"],"pid":17090,"message":"Unable to connect to OpenSearch. Error: resource_already_exists_exception: [resource_already_exists_exception] Reason: index [.kibana_2/31x7bynDQLySiE1AypNv5Q] already exists"}
Mar 06 19:40:23 hostname opensearch-dashboards[17090]: {"type":"log","@timestamp":"2025-03-06T22:40:23Z","tags":["warning","savedobjects-service"],"pid":17090,"message":"Another OpenSearch Dashboards instance appears to be migrating the index. Waiting for that migration to complete. If no other OpenSearch Dashboards instance is attempting migrations, you can get past this message by deleting index .kibana_2 and restarting OpenSearchDashboards."}
Mar 06 19:42:30 hostname opensearch-dashboards[17959]: {"type":"log","@timestamp":"2025-03-06T22:42:30Z","tags":["error","opensearch","data"],"pid":17959,"message":"[resource_already_exists_exception]: index [.kibana_2/31x7bynDQLySiE1AypNv5Q] already exists"}
Mar 06 19:42:30 hostname opensearch-dashboards[17959]: {"type":"log","@timestamp":"2025-03-06T22:42:30Z","tags":["warning","savedobjects-service"],"pid":17959,"message":"Unable to connect to OpenSearch. Error: resource_already_exists_exception: [resource_already_exists_exception] Reason: index [.kibana_2/31x7bynDQLySiE1AypNv5Q] already exists"}
Mar 06 19:42:30 hostname opensearch-dashboards[17959]: {"type":"log","@timestamp":"2025-03-06T22:42:30Z","tags":["warning","savedobjects-service"],"pid":17959,"message":"Another OpenSearch Dashboards instance appears to be migrating the index. Waiting for that migration to complete. If no other OpenSearch Dashboards instance is attempting migrations, you can get past this message by deleting index .kibana_2 and restarting OpenSearchDashboards."}