Error initializing beat: error loading config file: stat /etc/filebeat/filebeat.yml: no such file or directory


#1

Hello,

I removed Elastic's Beats (filebeat & metricbeat package) by issuing apt-get remove filbeat metricbeat and removed directory rm -rf /etc/filebeat /etc/metricbeat as well.

I than tried to install it back by issuing apt-get install filebeat metricbeat, yet getting following error now:

# filebeat modules list
Error initializing beat: error loading config file: stat /etc/filebeat/filebeat.yml: no such file or directory
# 
# metricbeat modules list
Error initializing beat: error loading config file: stat /etc/metricbeat/metricbeat.yml: no such file or directory
# 

Please advise.


(Shaunak Kashyap) #2

Can you try apt-get purge filebeat metricbeat and then apt-get install filebeat metricbeat?