Please ensure your remote server meets these requirements to run the LLM reliably:
CPU: 4 cores
RAM: 16 GB
OS: Ubuntu 24.04
Make sure ports 22 and 8000 are open and reachable from the Wazuh Manager.
On the Wazuh Manager, test connectivity to the remote server:
Replace 192.168.7.100 with your remote server’s IP address.
Expected success output:
If the issue persist, please share:
The output of the connectivity checks (nc -vz),
The lsof output for port 8000, and
The contents (or errors) from /var/log/threat_hunter.log (if created),
so I can help diagnose further.
Apologies for the late response. If you are running Ollama on a remote server, then the threat_hunter.py script should also be placed on the remote server and executed there, not on the Wazuh server. The archives logs are accessed by the remote server through an SSH connection. Since the script is configured to run Ollama on the same server where the script is executed, please ensure it is set up and run on the remote server instead of the Wazuh manager, and then check if it works correctly.
Reminder: Ensure that you have updated the script with the ssh_username and ssh_password of the Wazuh manager server user created for SSH access, as defined in the documentation.
After configuring it, you can execute the script using the following command:
python3 threat_hunter.py -H <WAZUH_SERVER_IP>
Also, verify whether the threat_hunter.log file has been created. If it has, please share that as well.