The chronology when I wanted to try to login to wazuh dashboard, there were several errors in index pattern and API version with results as below
- Check alerts index pattern
INFO: Index pattern id in cookie: yes [wazuh-alerts-*]
INFO: Getting list of valid index patterns...
ERROR: Request failed with status code 500
- Check API version
INFO: Current API in cookie: [default]
INFO: Getting API version data...
ERROR: Error: An internal server error occurred.
Currently when I want to access the dashboard page it produces the error below
- Wazuh dashboard server is not ready yet
And the status of wazuh-indexer is as follows:
org.opensearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:104)
org.opensearch.cli.Command.mainWithoutErrorHandling(Command.java:138)
org.opensearch.cli.Command.main(Command.java:101)
org.opensearch.bootstrap.OpenSearch.main(OpenSearch.java:138)
org.opensearch.bootstrap.OpenSearch.main(OpenSearch.java:104)
May 20 07:20:28 tik systemd-entrypoint[2133178]: For complete error details, refer to the log at /var/log/wazuh-indexer/wazuh-indexer-cluster.log
systemd[1]: wazuh-indexer.service: Main process exited, code=exited, status=1/FAILURE
systemd[1]: wazuh-indexer.service: Failed with result 'exit-code'.
systemd[1]: Failed to start wazuh-indexer.service - wazuh-indexer.
systemd[1]: wazuh-indexer.service: Consumed 5,670s CPU time..
How to solve it?