Problem scenario
You want to try out he Kibana web UI. You are using Linux. How do you get Kibana to work?
Solution
Prerequisites
Install the ElasticStack. If you need assistance, see "How Do You Install the Elastic Stack on Any Type of Linux?"
Procedures
1. Install nginx. If you need assistance, see these postings:
How Do You Install Nginx on a Debian/Ubuntu Server?
How Do You Install Nginx on a CentOS/RHEL/Fedora Server?
2. Find kibana.yml and modify it (e.g., sudo vi /opt/kibana/config/kibana.yml). Uncomment out these two lines (which may not be near each other) if they are commented out:
server.port: 5601
server.host: "localhost"
3. Modify the default.conf file (e.g., /etc/nginx/conf.d/default.conf on a Red Hat derivative of Linux or /etc/nginx/sites-available/default on a Debian distribution of Linux). Replace the "location / { }" lines with these lines: 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;
}
4. Run these commands:
sudo systemctl stop kibana
sudo systemctl enable kibana
sudo systemctl start kibana
sudo systemctl stop nginx
sudo systemctl start nginx
5. Open a web browser. Go to the external IP address of the server. (If you need help determining this, from the back-end run curl icanhazip.com
if your Nginx server has internet access.)