Uninstalling Filebeat
Open a Terminal window.
Stop the Filebeat service using the following command:
sudo systemctl stop filebeatDisable the service to prevent it from starting on boot:
sudo systemctl disable filebeatUninstall the Filebeat package:
sudo apt-get purge filebeatRemove any residual files and directories:
sudo rm -rf /etc/filebeat && sudo rm -rf /var/lib/filebeat && sudo rm -rf /var/log/filebeat
Verifying the uninstall is complete
Run the following command and confirm no results are returned:
dpkg -l | grep filebeatRun the following command and confirm the service can no longer be found:
sudo systemctl status filebeat
And that's it! You've successfully uninstalled Filebeat. 🎉
