Using port 443 to access kibanan (solution)

Continuing the discussion from How to use port 443 to access Kibana. legacy-multitenancy error:

sorry for the delay in my answer.

solution

setcap 'CAP_NET_BIND_SERVICE=+eip' /usr/share/kibana/node/bin/node

then change the port after daemon-reload

then

nano /etc/systemd/system/kibana.service

[Unit]
Description=Kibana

[Service]
Type=simple
User=root
Group=kibana
# Load env vars from /etc/default/ and /etc/sysconfig/ if they exist.
# Prefixing the path with '-' makes it try to load, but if the file doesn't
# exist, it continues onward.
EnvironmentFile=-/etc/default/kibana
EnvironmentFile=-/etc/sysconfig/kibana
#ExecStart=/usr/share/kibana/bin/kibana "-c /etc/kibana/kibana.yml --allow-root"

or 
ExecStart=/usr/share/kibana/bin/kibana --allow-root --logging.dest="/var/log/kibana/kibana.log" --pid.file="/run/kibana/kibana.pid"




Restart=on-failure
RestartSec=3
StartLimitBurst=3
StartLimitInterval=60
WorkingDirectory=/

[Install]
WantedBy=multi-user.target

restart start your kibana service

kibana should start at 433

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.