Hi,
If you can’t access the chat window, it’s likely due to either the Python script not running properly on the server or a network configuration issue.
Please ensure your remote server meets these requirements to run the LLM reliably:
Make sure ports 22 and 8000 are open and reachable from the Wazuh Manager.
On the Wazuh Manager, test connectivity to the remote server:
nc -vz 192.168.7.100 22
nc -vz 192.168.7.100 8000
Replace 192.168.7.100 with your remote server’s IP address.
Expected success output:
.Ncat: Connected to
192.168.7.100 :22.
.Ncat: Connected to
192.168.7.100 :8000.
If these fail, review your firewall/security group/routing settings.
Check if port 8000 is occupied on the remote server:
sudo lsof -iTCP:8000 -sTCP:LISTEN
- If another process is using port 8000, the script won’t be able to bind and the chat window won’t appear.
- Stop the conflicting process or change the script’s port.
The path /var/ossec/logs/threat_hunter.log won’t exist on a generic remote server (that path is specific to Wazuh installations).
Update the script’s log_file_path to a standard location, e.g.:
/var/log/threat_hunter.log
After changing the path, the script should start writing logs there.
On the remote server, start the script and point it to your Wazuh Manager IP:
python3 threat_hunter.py -H <WAZUH_SERVER_IP>
Replace <WAZUH_SERVER_IP> with your Wazuh Manager’s IP address.
Verify it’s now listening:
sudo lsof -iTCP:8000 -sTCP:LISTEN
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.