Start and stop Kibana
The method for starting and stopping Kibana varies depending on how you installed it. If a password protected keystore is used, the environment variable KBN_KEYSTORE_PASSPHRASE_FILE
can be used to point to a file containing the password, the environment variable KEYSTORE_PASSWORD
can be defined, or you will be prompted to enter to enter the password on startup,
Archive packages (.tar.gz
) ¶
If you installed Kibana on Linux or Darwin with a .tar.gz
package, you can start and stop Kibana from the command line.
Run Kibana from the command line ¶
Kibana can be started from the command line as follows:
./bin/kibana
By default, Kibana runs in the foreground, prints its logs to the standard output (stdout
), and can be stopped by pressing Ctrl-C.
If this is the first time you’re starting Kibana, this command generates a unique link in your terminal to enroll your Kibana instance with Elasticsearch.
- In your terminal, click the generated link to open Kibana in your browser.
- In your browser, paste the enrollment token that was generated in the terminal when you started Elasticsearch, and then click the button to connect your Kibana instance with Elasticsearch.
- Log in to Kibana as the
elastic
user with the password that was generated when you started Elasticsearch.
Note
If you need to reset the password for the elastic
user or other built-in users, run the elasticsearch-reset-password
tool. To generate new enrollment tokens for Kibana or Elasticsearch nodes, run the elasticsearch-create-enrollment-token
tool. These tools are available in the Elasticsearch bin
directory.
Archive packages (.zip
) ¶
If you installed Kibana on Windows with a .zip
package, you can stop and start Kibana from the command line.
Run Kibana from the command line ¶
Kibana can be started from the command line as follows:
.\bin\kibana.bat
By default, Kibana runs in the foreground, prints its logs to STDOUT
, and can be stopped by pressing Ctrl-C.
If this is the first time you’re starting Kibana, this command generates a unique link in your terminal to enroll your Kibana instance with Elasticsearch.
- In your terminal, click the generated link to open Kibana in your browser.
- In your browser, paste the enrollment token that was generated in the terminal when you started Elasticsearch, and then click the button to connect your Kibana instance with Elasticsearch.
- Log in to Kibana as the
elastic
user with the password that was generated when you started Elasticsearch.
Note
If you need to reset the password for the elastic
user or other built-in users, run the elasticsearch-reset-password
tool. To generate new enrollment tokens for Kibana or Elasticsearch nodes, run the elasticsearch-create-enrollment-token
tool. These tools are available in the Elasticsearch bin
directory.
Debian and RPM packages ¶
Run Kibana with systemd
¶
To configure Kibana to start automatically when the system starts, run the following commands:
sudo /bin/systemctl daemon-reload
sudo /bin/systemctl enable kibana.service
Kibana can be started and stopped as follows:
sudo systemctl start kibana.service
sudo systemctl stop kibana.service
These commands provide no feedback as to whether Kibana was started successfully or not. Log information can be accessed via journalctl -u kibana.service
.