Hi all,
I have a working Wazuh cluster consisting of:
Wazuh Indexer: 3 nodes
Wazuh Manager: 3 nodes
Version: 4.12 (OpenSearch 2.19)
Additionally, I have a running instance of the Llama 3 AI model via Ollama. All nodes are within the same LAN (192.168.11.0/24).
I am attempting to deploy Llama 3 using the OpenSearch Machine Learning plugin and map the deployed model to the OpenSearch Assistant chatbot.
Using Dev Tools, the deployment completed successfully. However, when testing the deployed model, I encountered the following error:
"Remote inference host name has private IP address"
After investigating, I found that OpenSearch blocks access to private IPs even if a DNS name is used.
Could you please advise on the recommended method from Wazuh for deploying local AI models in OpenSearch ML and mapping them to the OpenSearch Chatbot?
Best regards,
Hi Hasitha,
Thank you for your kind response.
I have followed all of the blogs you mentioned and successfully managed to run the Llama3 AI model on the Wazuh server using the provided script. In addition, I followed this blog:
🔗 Leveraging Claude Haiku in the Wazuh Dashboard for LLM-powered insights
This article explains how to connect an external AI model and integrate it with the Wazuh Dashboard through the OpenSearch Assistant Chatbot.
I am trying to achieve a similar setup—mapping our locally hosted Llama3 model to our locally hosted Wazuh cluster, and then directly integrating it into the Wazuh Dashboard via the OpenSearch Assistant Chatbot.
To do this, I enabled the OpenSearch ML plugins and OpenSearch Assistant Chatbot, and deployed the Llama3 model using Wazuh Dashboard Dev Tools. Deployment was successful, but when testing with the following request:
I received the error:
"Remote inference host name has private IP address: <Local-IP>"
Upon further research, I found that OpenSearch ML plugins block connections to private IP addresses (hardcoded restriction).
Could you please advise if there is any possible workaround to bypass this limitation? If not, what would be the best method recommended by Wazuh to connect a locally hosted AI model directly to the Wazuh Dashboard via the OpenSearch Assistant Chatbot?
Best regards,