You can either install every component in the same server (Single-host architecture) or use several servers (Distributed architecture).
It is important to keep in mind Filebeat has to be installed in the same server where the Wazuh manager is placed.
You may check for further information in our documentation.
Indeed, you have to specify the IP address which your ElasticSearch server is bound to.
If you are deploying a single-host architecture you can set it to localhost.
Relevant configurations are:
/etc/filebeat/filebeat.yml:
output.elasticsearch.hosts: ["http://YOUR_ELASTIC_SERVER_IP:9200"] ( You have to replace “YOUR_ELASTIC_SERVER_IP” to the IP set in the elasticsearch.yml file. In case you are using localhost you can replace it to localhost)
/etc/elasticsearch/elasticsearch.yml:
network.host: YOUR_ELASTIC_SERVER_IP ( In case you are using localhost as you IP address you can keep this field commented) ( There are a few more relevant options to set to get elasticsearch working properly, you can check them here)
/etc/kibana/kibana.yml:
server.host: Kibana_IP (IP address to use to access to kibana, if you set it to “0.0.0.0” it will listen from every interface)
elasticsearch.hosts: ["http://YOUR_ELASTIC_SERVER_IP:9200"] ( IP Address to use to look for the ElasticSearch server, in case you are using localhost you can keep this field commented)
To access to kibana server via https you have to configure X-Pack features, by default you can access to Kibana by using “http://YOUR_ELASTIC_SERVER_IP:5601”
You may look for further information about how to configure X-Pack here.
Regards,
Daniel Moreno.
The problem may be due to the ElasticSearch setting specified is commented.
Change #network.host: 192.168.179.38 to network.host: 192.168.179.38 ( Just remove the # character )
Keep in mind settings as “node.name” and “cluster.initial_master_nodes” must be configured to get ElasticSearch working properly.
Every step is described in our documentation.
After configuring ElasticSearch you will need to restart it and execute the Filebeat command again.
I hope it helps!
Regards,
Daniel Moreno.
I use only one server where i deployed all the components for wazuh. i use one elasticsearch in wazuh server Could please check my server configuration . Sorry Daniel, but some things i can't understand)
systemctl status SERVICE
ping IPADDRESS