Filebeat Configuration
shatakshis-MacBook-Air:filebeat-6.2.4-darwin-x86_64 shatakshishukla$ vi filebeat.yml shatakshis-MacBook-Air:filebeat-6.2.4-darwin-x86_64 shatakshishukla$ sudo ./filebeat -e -c filebeat.yml -d "publish" Password: Exiting: error loading config file: config file ("filebeat.yml") must be owned by the beat user (uid=0) or root shatakshis-MacBook-Air:filebeat-6.2.4-darwin-x86_64 shatakshishukla$ chown 501 filebeat.yml shatakshis-MacBook-Air:filebeat-6.2.4-darwin-x86_64 shatakshishukla$ sudo ./filebeat -e -c filebeat.yml -d "publish" Exiting: error loading config file: config file ("filebeat.yml") must be owned by the beat user (uid=0) or root shatakshis-MacBook-Air:filebeat-6.2.4-darwin-x86_64 shatakshishukla$ chown 0 filebeat.yml chown: filebeat.yml: Operation not permitted shatakshis-MacBook-Air:filebeat-6.2.4-darwin-x86_64 shatakshishukla$