A complete end‑to‑end setup: collect Nginx, system & AD logs, visualize in Kibana, and alert on failed logins.
By installing Elasticsearch, Filebeat and Kibana on your server, this solution:
auth.log) and Windows ADPrecise traffic analytics and security metrics, all in one dashboard.
Real‑time audit of user logins, access changes, and failed authentication alerts.
sudo apt update && sudo apt upgrade -y
sudo apt install openjdk-11-jdk -y
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
sudo apt install apt-transport-https -y
echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" \
| sudo tee /etc/apt/sources.list.d/elastic-7.x.list
sudo apt update
sudo apt install elasticsearch -y
# In /etc/elasticsearch/jvm.options set -Xms350m and -Xmx350m
sudo systemctl enable elasticsearch
sudo systemctl start elasticsearch
sudo apt install filebeat -y
sudo filebeat modules enable nginx system
# Optional: sudo filebeat modules enable windows
sudo filebeat setup --index-management --pipelines --modules nginx system
sudo filebeat setup --dashboards
# In /etc/filebeat/filebeat.yml
output.elasticsearch:
hosts: ["localhost:9200"]
setup.kibana:
host: "localhost:5601"
sudo systemctl enable filebeat
sudo systemctl restart filebeat
sudo apt install kibana -y
# In /etc/kibana/kibana.yml set server.host: "0.0.0.0"
sudo systemctl enable kibana
sudo systemctl start kibana
sudo ufw allow 5601/tcp
filebeat-* and select @timestamp.event.dataset or tags: "failed_login".This live summary (updated daily) shows non‑sensitive Nginx metrics: