Config file ownership and permissions- Filebeat

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$

shows operation denied

What is the question? The error message explains it pretty well:

 error loading config file: config file ("filebeat.yml") must be owned by the beat user (uid=0) or root 

Thanks for the consideration

It would be of great help if you could help me with this .

As it states in the error message, you need to change the owner of the file.

How ?

Best use chown

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.