Hi Paulo Fernandes,
Hope you are doing well. Thanks for using Wazuh!
As I can see in the screenshot you shared that JVM memory is not able to allocate that why it is not able to start. In order to start it please check these options below and restart it accordingly:
You can tune these options to increase the size of memory available for the indexer in the file: /etc/wazuh-indexer/jvm.options. There, add the number of Gigabytes of RAM you want to allocate to the Wazuh-indexer's heap. It is recommendable to set it to half of the available RAM with a maximum of 32GB. So for example, if you have 8GB of memory, you would allocate 4 as follows:
# Xms represents the initial size of total heap space
# Xmx represents the maximum size of total heap space
-Xms4g
-Xmx4g
Next, restart Wazuh-indexer:
systemctl daemon-reload
systemctl restart wazuh-indexer
For correct installation of Wazuh-Indexer, Wazuh-Dashboard & Wazuh-manager also please check out this: https://documentation.wazuh.com/current/installation-guide/
Please let me know if this solves your issue or if you need any further help.
Regards
Md. Nazmur Sakib
Hi Paulo Fernandes,
Sorry to hear that the issue is not resolved yet.
Yes, you can do a fresh install if you do not have any dependencies and if you do not spend more time troubleshooting.
But if you want we can also look into the issue.
For that I need you to send the status and current log of your wazuh-indexer after making changes in jvm option. Also, make sure not to keep empty space before the line:
-Xms4g
-Xmx4g
Empty space will cause misconfiguration as it is case-sensitive.
Restart the wazuh-indexer and wazuh-manager after changing.
systemctl restart wazuh-indexer
systemctl restart wazuh-manager
Check the status.
If you still see the error
Error opening log file '/var/log/wazuh-indexer/gc.log': No such file or directory
Create a gc.log file.
touch /var/log/wazuh-indexer/gc.log
chown wazuh-indexer:wazuh-indexer /var/log/wazuh-indexer/gc.log
chmod 644 /var/log/wazuh-indexer/gc.log
Restart the wazuh-indexer and wazuh-manager after changing.
systemctl restart wazuh-indexer
systemctl restart wazuh-manager
The problem you are having here is clearly for jvm.options. If you are doing a fresh install. I would recommend checking the java jdk version before installing if it is 9 or above.
java --version
Also sharing the installation document for your reference:
https://documentation.wazuh.com/current/installation-guide/wazuh-indexer/installation-assistant.html
Please let me know if this helps.
Regards
Hi Paulo Fernandes,
Can you try restarting the manager and dashboard and check if the you can access the user interface.
systemctl restart wazuh-manager
systemctl restart wazuh-dashboard
If not check if there is any error log in ossec
cat /var/ossec/logs/ossec.log | grep -i -E "error|warn"
tail /var/ossec/logs/ossec.log
Please let me know the findings.