Article Directory
A, Kibana WEB safety certification
I describe the architecture: a host, played on two docker container
docker0: elasticsearch + Kibana 172.17.0.2
docker1: Logstash + LNMP deployment discuz forum
Note: Logstash Collection access logs, as well as log and mysql database system kernel log .
We now need to do a reverse proxy add access controls on the host, to achieve the login without a password Kibana login password!
1, is mounted on the host nginx
2, modify configuration files nginx
server {
listen 5602;
server_name localhost;
location / {
auth_basic "ELK Kibana Monitor Center";
auth_basic_user_file /usr/local/nginx/html/.htpasswd;
proxy_pass http://172.17.0.2:5601;
}
}
htpasswd -c /usr/local/nginx/html/.htpasswd admin
Restart nginx, turn off the firewall. My host port 80, 5601, respectively, to port mapping and kibana the forum. So now I can not use the two ports.
I started to think forums and kibana can access, indicating that the firewall should be closed, it is not true, it has opened the port mapping the firewall.
3, 5602 through port access kibana
Access Control Settings success! !
Two, Kibana visual analysis log
1, visual graphical analysis of the log building
there are other graphics can build, try yourself!
2, the instrument panel
Note: The dashboard can be seen from the above that a number of visual analysis of the log graphic formed, more convenient, more comprehensive analysis of the log!