Managing Kibana Services
This appendix describes how you can manage the Kibana service.
After you install Kibana using the delivered DPK, you can add a Kibana service, verify that the service is created, or delete the service.
Adding Kibana as a Service on Linux
To add a Kibana service:
Open a terminal window, running as root.
Change directory to
ELK_INSTALL
/setup:cd ELK_INSTALL/setup
Run this command to add the service:
./psft-kibana-service.sh --add --install_base_dir BASE_DIR
Use one of these methods to verify that the service was added:
The output of the following
ps
command must show a running Kibana process:ps -ef | grep kibana
Use the
systemctl
command:systemctl status kibana
This should give an output with the status "active (running)," as shown in the following sample:
kibana.service - Kibana Loaded: loaded (/etc/systemd/system/kibana.service; enabled;vendor preset: disabled) Active: active (running) since Tue 2020-09-01 23:05:38 PDT; 9s ago Main PID: 67149 (node) Tasks: 11 Memory: 111.7M CGroup: /system.slice/kibana.service
Verifying that the Kibana Service Starts Automatically
After you install the Kibana service and verify the installation, test to make sure the service starts automatically after you reboot the Linux server.
Reboot the Linux server.
Verify that the service has come up automatically.
systemctl status kibana
This should give an output with the status "active (running)," as shown in the following sample:
kibana.service - Kibana Loaded: loaded (/etc/systemd/system/kibana.service; enabled; vendorpreset: disabled) Active: active (running) since Tue 2020-09-01 23:05:38 PDT; 9s ago Main PID: 67149 (node) Tasks: 11 Memory: 111.7M CGroup: /system.slice/kibana.service
Removing the Kibana Service on Linux
To remove the Kibana service:
Open a terminal window, running as root.
Change directory to ELK_INSTALL/setup:
cd ELK_INSTALL/setup
Run this command to remove the service:
./psft-kibana-service.sh --delete
Use one of these methods to verify that the service was deleted:
The output of the following ps command should not include any Kibana process:
ps -ef | grep kibana
Use this systemctl command:
systemctl status kibana