Apologies for the delayed response. Please allow me to address your queries sequentially.
If you encounter a “username or password is incorrect” error while accessing the Wazuh Dashboard, this does not impact index creation or log ingestion. Logs are ingested and indexed through certificate-based communication between Wazuh components and are not dependent on Dashboard user credentials. (reference document: https://documentation.wazuh.com/current/getting-started/architecture.html#component-communication ).
Additionally, could you please clarify why the securityadmin.sh script was executing. Is this for the LDAP configuration? Also, does the incorrect credentials issue occur for a specific user only, or does it affect all users, including the admin user, when accessing the Dashboard via a browser?
If you would like to reduce the retention period to 45 days, this can be configured via CLI, which is useful if Dashboard access is currently unavailable.
The following command creates an Index State Management (ISM) policy to automatically delete Wazuh indices older than 45 days. This policy can be applied to both existing and future indices, and it does not require Dashboard credentials.




Additionally, to help us assess the current status of your environment, could you please share the following details:
systemctl status wazuh-indexer
systemctl status wazuh-manager
systemctl status wazuh-dashboard
filebeat test output
I'm looking forward to your update.
Glad to hear that you’re now able to access the dashboard.
Regarding the retention policy, your newly created policy is correctly configured and will automatically delete indices 45 days after their creation.
For data recovery, you can follow the steps outlined in the documentation below: https://documentation.wazuh.com/current/migration-guide/restoring/wazuh-central-components.html#restoring-old-logs. This process restores data from the /var/ossec/logs/alerts directory on the Wazuh manager. Based on the data size, the restored logs will be forwarded to the indexer node, and the historical data will then be visible in the Wazuh dashboard.
Additionally, to identify the root cause of the Wazuh indexer or manager services going down, you can review the logs from the affected period using the following commands or you can share them here for analysis.
I hope this information is helpful. Please let us know if you have any further questions.