I can't start packetbeat service in Ubuntu 18.04. It runs perfectly If I start the service exactly after it is installed. But if I stop it or restart it in order to make some changes in packetbeat.yml and then try to start it again, I get the following error:
Thank you for your desire to help me! Finally, I have succeeded in making the service to start. After I have unpacked the packetbeat deb file, I tried to start it, but I forgot to install libpacap. After I have installed libpcap, I still had the error I posted in the picture. After a lot of trials, I have found the solution. I have ran sudo packetbeat test config -e. This last command has saved my life. It printed an error where it was written what command should I run in order to make it start (it was: sudo chmod go-w packetbeat.yml, because I had previously ran sudo chmod 777 packetbeat.yml in order to have the possibility to edit this configuration file). Best luck!
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.