On The New Log Server, We Will Start by Installing Elk Stack
On The New Log Server, We Will Start by Installing Elk Stack
systemctl daemon-reload
systemctl enable elasticsearch.service
systemctl start elasticsearch.service
curl "http://localhost:9200/?pretty"
curl
https://raw.githubusercontent.com/wazuh/wazuh/3.7/extensions/elasticse
arch/wazuh-elastic6-template-alerts.json | curl -X PUT
"http://localhost:9200/_template/wazuh" -H 'Content-Type:
application/json' -d @-
Install Logstash
apt-get install logstash=1:6.5.4-1
curl -so /etc/logstash/conf.d/01-wazuh.conf
https://raw.githubusercontent.com/wazuh/wazuh/3.7/extensions/logstash/
01-wazuh-local.conf
systemctl daemon-reload
systemctl enable logstash.service
systemctl start logstash.service
Install Kibana
apt-get install kibana=6.5.4
systemctl daemon-reload
systemctl enable kibana.service
systemctl start kibana.service
cd wazuh-*
./install.sh
cd wazuh-*
make -C src clean
make -C src clean-deps
If you are asked what kind of installation you want, type in manager
Once installed, check the status to see if it is running
curl -s -o install_api.sh
https://raw.githubusercontent.com/wazuh/wazuh-
api/v3.10.2/install_api.sh
cd /var/ossec/api/configuration/auth
FOLusername / YOURpassword
You will need to add two agents. One of the Ubuntu Web Server and one for the
Windows 2016 Server
The Windows agent will require you to download the .msi file and enter the IP of the log
server and the key that was created
Adding Ubuntu Agent