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/setupRun this command to add the service:
./psft-kibana-service.sh --add --install_base_dir BASE_DIRUse one of these methods to verify that the service was added:
The output of the following
pscommand must show a running Kibana process:ps -ef | grep kibanaUse the
systemctlcommand:systemctl status kibanaThis 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 kibanaThis 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/setupRun this command to remove the service:
./psft-kibana-service.sh --deleteUse 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 kibanaUse this systemctl command:
systemctl status kibana