Skip to main content

Uninstall Kibana

Updated Dec 30, 2022 ·

Overview

To completely uninstall Kibana, you need to remove all related files, configurations, and packages from your system.

  1. Stop Kibana Service Before uninstalling Kibana, stop the Kibana service to ensure it is not running during the uninstallation process:

    sudo systemctl stop kibana
  2. Disable Kibana Service Disable Kibana from starting on boot:

    sudo systemctl disable kibana
  3. Uninstall Kibana Package Depending on the package manager used to install Kibana (e.g., apt, yum, or rpm), use the corresponding command to uninstall Kibana.

    • For Debian/Ubuntu-based systems (using apt):

      sudo apt-get remove --purge kibana
      sudo apt-get autoremove --purge
    • For Red Hat/CentOS-based systems (using yum or dnf):

      sudo yum remove kibana
      # or for newer distributions
      sudo dnf remove kibana
    • For RPM-based systems (using rpm):

      sudo rpm -e kibana
  4. Delete Kibana Configuration and Data Files Kibana may leave behind configuration files and data directories. To ensure a complete removal, delete these directories:

    • Delete Kibana configuration directory:

      sudo rm -rf /etc/kibana/
    • Delete Kibana data directory:

      sudo rm -rf /var/lib/kibana/
    • Delete Kibana logs directory:

      sudo rm -rf /var/log/kibana/
  5. Clean up Kibana User and Group (Optional) If Kibana created a user and group during installation, you can delete them as well:

    sudo deluser kibana
    sudo delgroup kibana
  6. Remove Kibana from System Services (Optional) If Kibana was manually added to system services, you may want to remove those files as well. Check for any lingering service files:

    sudo rm /etc/systemd/system/kibana.service
    sudo systemctl daemon-reload
  7. Verify Kibana is Completely Removed

    • Check if Kibana is still installed by running:

      kibana --version

      This should return a "command not found" message if Kibana was successfully removed.

    • Check that there are no Kibana-related processes running:

      ps aux | grep kibana
  8. Reboot the System (Optional) It’s a good practice to reboot your system to ensure that all changes are properly applied:

    sudo reboot

After these steps, Kibana should be completely uninstalled from your system.