I installed the ELK on single server node for the login dahboard i user nginx bases auth but i am unable to login on the dashboard , when i check the nginx error logs i am getting these.
root@ip-172-31-50-xxx:/home/ubuntu# sudo tail -f /var/log/nginx/error.log
2018/11/10 00:41:57 [error] 9727#9727: *1 user "admin": password mismatch, client: 94.209.200.140, server: , request: "GET / HTTP/1.1", host: "35.245.88.135"
2018/11/10 00:42:06 [error] 9727#9727: *1 user "admin": password mismatch, client: 94.209.200.140, server: , request: "GET / HTTP/1.1", host: "
2018/11/10 00:48:06 [error] 9727#9727: *4 user "admin": password mismatch, client: 94.209.200.140, server: , request: "GET / HTTP/1.1", host: "35.245.88.135"
2018/11/10 00:48:38 [alert] 9727#9727: *5 open socket #9 left in connection 4
2018/11/10 00:48:38 [alert] 9727#9727: aborting
Can up please help on this.
i installed ELK from this URL
for Ngnix auth i follow these steps.
sudo apt-get -y install nginx
echo "admin:openssl passwd -apr1 data@123pass
" | sudo tee -a /etc/nginx/htpasswd.kibana
sudo nano /etc/nginx/sites-available/default
/etc/nginx/sites-available/default
server {
listen 80;
server_name example.com;
auth_basic "Restricted Access";
auth_basic_user_file /etc/nginx/htpasswd.users;
location / {
proxy_pass http://localhost:5601;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
}
sudo service ngnix restart.