- Set vx.max_map_count according to Elasticsearch docs
sudo sysctl -w vm.max_map_count=262144- Set the variables in
.envfile - Use
docker-compose-elasticstack.ymlto deploy the Elasticsearch + Kibana in the monitoring server
sudo docker compose -f docker-compose-elasticstack.yml up -d- Download the CA certificate, and Elasticsearch PEM certificate and key
sudo docker exec es01 tar cvzf /tmp/certs.tar.gz /usr/share/elasticsearch/config/certs/ca/ca.crt /usr/share/elasticsearch/config/certs/es01/es01.crt /usr/share/elasticsearch/config/certs/es01/es01.key
sudo docker cp es01:/tmp/certs.tar.gz .
sudo docker exec es01 rm -f /tmp/certs.tar.gz- Download
Dockerfile,docker-compose-lazypot.yml,nginx,startup.shandrun.sh - Upload
certs.tar.gz - Use the
run.shBash script to run suricata + nginx + filebeat + auditbeat:
chmod +x ./run.sh
chmod +x ./startup.sh
sudo ./run.sh- Follow interactive configuration:
If setting up filebeat fails, may be due to Elasticsearch not fully deployed, wait a few minutes and run
run.shagain
- Log in to Kibana to see Suricata logs uploaded to Elasticsearch

